Repository navigation
ci(#6664): Equivalence E2E shards run only what ground-truth cannot; db2 planned from its inputs - #6669
Conversation
…db2 job planned from its inputs The shards re-ran all of tests/cobol_mainframe, which the required ground-truth job already runs. Measured from junit of one run of each on the same commit (40225533892, 40225536142): 7126 of the 7822 tests the shards ran also passed in ground-truth (1810 s); the 696 that ran only in the shards (3177 s) are in 46 files. tests/tools/equivalence_e2e_select.py picks files that read EQUIVALENCE_E2E or whose skip reasons name a tool the shards provide (Docker / oracle image / JDK / Maven / jar): 84 files, every shard-only test kept, 188 s of duplicates left. The shards split 3 ways over measured seconds (tests/equivalence_e2e_durations.json; .test_durations weighs these tests ~0 s because ground-truth records it with them skipped) and upload their times so the file can be refreshed. The db2 job (one runner, ~21 min) now runs on a PR only when a changed file is an input of the five Db2 files: their import closure (ast, computed by the planner), the equivalence cases they name, shared harness data, a non-Python file under gitgalaxy/, or the job's own files. Replay of the last 80 merged PRs: 21 runs instead of 45. Push, nightly and manual runs run everything; Main Watch now watches Equivalence E2E. Also drops the temporary junit-upload measurement steps. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6669 @ 02ba96f: 1 failed check(s) == full-suite part 2/3 (failure) -- real |
…3813 lint) test_source_reads.py forbids lossy errors= decodes; the selector runs after the install, so it reads through gitgalaxy.core.source_text like the #5954 guard. Selection unchanged (same 84 files). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
CI shepherd: the head of this PR (9e5bafe) is not the one a maintainer labelled |
|
No description provided. |
Closes #6664.
equivalence-e2e.ymlis not a required check, so its wall time never holds a merge. Its cost is the runners it takes from the ~20-job pool the required checks queue on (docs/ci.md #5132). This PR makes two cuts.1. Shards: only the files whose result can differ from ground-truth's
The 4 shards re-ran all of
tests/cobol_mainframe/, which the requiredground-truthjob already runs. I compared junit outcomes from one run of each workflow on the same commit (E2E run 40225533892, ground-truth run 40225536142, both from a since-dropped measurement commit):The 696 sit in 46 files. 41 of them read
EQUIVALENCE_E2E. The other 5 are skipped in ground-truth with reasons like "no JDK 17" or a missing jar, without reading the variable.tests/tools/equivalence_e2e_select.pyselects a file when it reads the variable or a skip reason names a tool the shards provide (Docker / GnuCOBOL / oracle image / JDK / Maven / jar). That gives 84 files, keeps all 696 shard-only tests, and leaves 188 s of duplicates. Shard test time drops from about 4988 s to 3365 s.tests/equivalence_e2e_durations.json..test_durationsis recorded by ground-truth, where these tests skip, so it weighs them ~0 s. (The 40 porting-loop tests record 0.0 s there against ~1450 s measured.) The shards now upload their times for refreshing the file; the command is in docs/ci_env_gated_tests.md.test_env_gated_tests_run_in_ci_5954.pyexpands the selector when it reads the shard pytest line, so its coverage proof still holds. A new test pins the 5 JDK-only files in the selection and keeps two known pure-duplicate files out.2.
db2job: planned from its inputsThe job takes one runner for ~21 min. On a PR it now runs only when a changed file is an input of the five Db2 files (
equivalence_e2e_plan.db2_input):aston every plan (198 modules, 1.7 s), plus thetests/toolsscripts they run as subprocesses;tests/equivalence/;gitgalaxy/(fail open);Replaying the last 80 merged PRs: 21 runs instead of 45. The job failed 10 times, all between 2026-10-24 22:18Z and 2026-10-25 02:10Z. Those were its bring-up, and the samples I checked were the since-fixed corpus fetch. It has failed in none of its last 58 PR runs, and the required
detcheck re-proves the Db2 det ports on every PR. Push, nightly and manual runs always run it. Main Watch now watches Equivalence E2E, so a red nightly opensci-red-main.Verification
400 tests across the changed areas and the workflow linters pass locally: planner, CI coverage gap: EQUIVALENCE_E2E / CICS_CRUCIBLE_PATH-gated tests never run in any workflow #5954 guard, main-watch, post-merge dispatch, tested-tree, draft gate, shard-split pin, ci_retry, install pins and others. The ruff audit shows no new findings, and format is clean.
I checked that the durations file's 3704 node ids match what pytest collects for the selection; the 4 untimed tests are the
--deselected ones.Measured on CI: a branch dispatch of the new layout (run 40228310629) passed: plan, 3 shards,
db2and the aggregate check all green. Shard cost against the before-run (40225533892), both full manual runs:About 35% fewer shard runner-minutes and one fewer runner; the measured durations even out the shard sizes. The
db2job ran in that dispatch (manual runs always do); the PR-side saving there is from the planner (21 of 80 replayed PRs instead of 45).Local
audit_check.pylists 17 mypy findings, all in files this PR doesn't touch (detector.py,galaxyscope.py,cobol_to_javaforges). That looks like a different local mypy version; CI'smypy-auditis authoritative.Reviewer decisions
🤖 Generated with Claude Code