-
Notifications
You must be signed in to change notification settings - Fork 235
New state: integrate new state tests into CI #3043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
3d5210f
ba5f986
86579be
601ca4d
1c63f0b
62f2146
09d6758
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,14 +13,16 @@ concurrency: | |
|
|
||
| jobs: | ||
| test: | ||
| name: Run Tests | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, ubuntu-arm64-4-core] | ||
| juno_new_state: [false, true] | ||
| runs-on: ${{ matrix.os }} | ||
| name: Run Tests${{ matrix.juno_new_state && ' [New State]' || '' }} | ||
| env: | ||
| VM_DEBUG: true | ||
| JUNO_NEW_STATE: ${{ matrix.juno_new_state }} | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - name: Set up go | ||
|
|
@@ -69,3 +71,4 @@ jobs: | |
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| fail_ci_if_error: true | ||
| files: coverage/coverage.old.out,coverage/coverage.new.out | ||
| flags: ${{ matrix.juno_new_state && 'new-state' || 'old-state' }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both matrix variants upload the same two files — Aligned with the suggestion above: upload one file per matrix run (e.g., |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important — matrix axis is redundant and corrupts coverage on
ubuntu-latest.On
ubuntu-latestthe test step runsmake test-cover, which already executes both modes back-to-back:Two problems flow from this:
juno_new_state: [false, true], ubuntu-latest now runs the full coverage matrix twice — 4 full test passes instead of 2 — for the same artifacts.coverage.old.outwhenmatrix.juno_new_state=true. The first line oftest-coverdoes not unsetJUNO_NEW_STATE, so it inheritstruefrom the job env. The "old" coverage file then actually contains new-state coverage. Theflags: new-stateupload below will therefore include genuine new-state data, but theflags: old-stateupload contains the correct mix — and both runs still upload the same two files, so the codecov flag split is mostly cosmetic.Suggested fix — pick one:
make testhonorsJUNO_NEW_STATEcorrectly), and keepmake test-coverrunning once on ubuntu-latest with one Codecov upload per file/flag.make test-coverto honorJUNO_NEW_STATE(single pass producing one file), then the matrix axis drives both modes uniformly and each upload carries the right flag.