Skip to content

Key each key-commits result by its place in the list, so a repeated commit keeps both measurements - #2494

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
key-commits-repeat
Nov 16, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
key-commits-repeat

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Fixes #2488.

benchmark_key_commits.sh wrote each result as $results/<entry>.json, so a list naming one commit twice measured it twice and kept only the second. That is the documented way to measure the runner's spread in the same run as a change. The 2.8.0 pair (#2489) lost its control this way.

A result is now keyed by its position in the list, in the script and in combine_key_commits.py. A commit named more than once gets a column per occurrence, headed 842e8e951 (1), 842e8e951 (2).

Measured with a stub dotnet on the PATH that builds nothing and writes a different measurement on each run (1, 2, 3, 4), with the list 842e8e951, 27aba15f0, 842e8e951, 27aba15f0:

column 1 column 2 column 3 column 4
master's scripts 300 400 300 400
this branch 100 200 300 400

Nothing else reads the results directory: the workflow reads only key-commits.md. An entry with a slash in it, such as origin/master, could not be written as a result file before, and can now.

🤖 Generated with Claude Code

…ommit keeps both measurements

Naming the same commit twice, interleaved with the change, is how the runner's spread is
measured in one run. The results were keyed by the entry, so the second measurement overwrote
the first and the table showed the later one in both columns. A result is now keyed by its
position, and a repeated commit's columns are marked (1), (2).

With a stub dotnet that writes a different measurement per run and the list 842e8e9,
27aba15, 842e8e9, 27aba15: master's scripts give 300 400 300 400, this branch 100 200
300 400.

Fixes #2488

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.91%. Comparing base (50e8d58) to head (bcc542d).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2494   +/-   ##
=======================================
  Coverage   86.90%   86.91%           
=======================================
  Files         336      336           
  Lines       73567    73567           
  Branches    21411    21411           
=======================================
+ Hits        63935    63939    +4     
+ Misses       5181     5179    -2     
+ Partials     4451     4449    -2     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.42% <ø> (+<0.01%) ⬆️
fsharp 32.79% <ø> (ø)
interactive 40.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Rafael-SOWNet
Rafael-SOWNet merged commit 8aefdb3 into master Nov 16, 2026
31 of 32 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the key-commits-repeat branch November 16, 2026 15:38
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

The key-commits benchmark overwrites a repeated commit's first measurement

1 participant