Repository navigation
perf(l5): compile only the program per mutant, time in-process proofs from the unmutated port (Part of #8599) - #8637
Merged
Merged
Conversation
…oofs from the unmutated port (Part of #8599) - mutation.mutant_sources: a mutant's javac check compiles the port's program files (every one: a mutated constant is inlined into its callers) against the baseline's compiled runtime, not the 51-file cobolrt copy as well. The overlay manifest lists only what was compiled (overlay adoption drops the baseline classes of every listed source; the fallback's single-file compile listed all of them). - mutation.calibrate / direct_limit: each in-process worker first runs the unmutated port, which must survive (else the worker falls back to separate runs); 5 x the slowest such run, at least 30 s, at most the old limit, bounds an in-process proof. A looping mutant held its worker for 300 s or more (201 timeouts in the ledgers). nyx, fast+one-jvm, --jobs 2: cbsa-updcust --sample 60 141 s -> 94 s (javac 41 -> 14 s); carddemo-readcust --sample 80 600 s -> 312 s (javac 53 -> 15 s, the timeout 300 -> 61 s). 140 of 140 verdicts identical to origin/main in the same mode and seed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 of 7 tasks
squid-protocol
marked this pull request as ready for review
November 18, 2026 23:44
1 task done
…TF-8 (test_java_subprocess_utf8 guard) Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 task done
This was referenced Nov 19, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8599 (L5 speed). Two cuts to the per-case and per-mutant cost of
det_mutation.py/mutation.pyruns.Summary
mutation.mutant_sources). Each mutant used to compile every.javafile of the port, the 51-file cobolrt copy too (UPDCUST: 13,776 lines for a 752-line program). Mutants are cut fromservice/*.java, the runtime never refers to the program, and the baseline's compiled runtime is on the classpath, so only the program's files are compiled. All of them, not only the mutated one, because javac inlines a mutatedstatic finalconstant into its callers. The overlay manifest now lists only what was compiled. Overlay adoption drops the baseline classes of every source the manifest lists, and the fallback's single-file compile used to list them all, which would have dropped the runtime's classes.mutation.calibrate,direct_limit). Each in-process worker first runs the unmutated port with an empty overlay. That run must survive; otherwise the worker falls back to separate runs, which also makes it a tripwire for the in-process runner. The limit is 5 × the slowest worker's run, at least 30 s, at most the oldmax(300, 3 × baseline). A looping mutant used to hold a worker for 300 s or more, and the committed ledgers contain 201 such timeouts. Timeout and killed are both "caught", so a verdict can change only for a mutant that would survive but runs past 5 × T0.docs/language_status/mutation_testing.md: phase timings and the validation.Measured
nyx (load ~2), fast+one-jvm,
--jobs 2,GITGALAXY_LICENSE_KEY=COMMUNITY_FREE_TIER(as in CI):--sample 60 --seed 1, main--sample 80 --seed 3, main* The translate drop is
equivalence_cachebeing warm, not this PR. It also means #8599's "skip re-translating" item is mostly covered already: a warm translate costs about 5 s.On a dev box without the license env var, each tool start sleeps 5 s, three times per case (UPDCUST: 175 s instead of 141 s). CI already sets the variable.
Verification
mutation.py, same seed: 140 of 140 per-mutant verdicts identical (UPDCUST 60, CICS; readcust 80, batch, with faults, 5 stillborn and 1 timeout).--full: neither change alters how a mutant is judged.pytest tests/tools/test_l5_speedups.py tests/tools/test_det_mutation.py tests/tools/test_mutation_bytes.py tests/tools/test_survivor_attack.py tests/cobol_mainframe/test_mutation_one_jvm_scope_4047.py tests/cobol_mainframe/test_mutation_scores.py tests/cobol_mainframe/test_mutation_tooling.py tests/cobol_mainframe/test_carddemo_cardlist_mutation_survivors_5401.py: 253 passed, 1 skipped.test_compiles_only_file_passes_single_source_and_sourcepathbecame..._program_sources_.... The old test pinned a single-file compile that missed constant inlining.mutation.py(9 before, 9 after).Type of change
🤖 Generated with Claude Code