Repository navigation
golden_export junit: the byte check as generated Java, GoldenCheck + a JUnit class (Part of #4052) - #7553
Conversation
…a JUnit class) (Part of #4052) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #7553 @ 7f10bb7: 2 failed check(s) == full-suite (failure) -- real == full-suite part 1/3 (failure) -- main |
|
No description provided. |
|
No description provided. |
|
No description provided. |
…4052) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…churn/4055-20261102T1543Z
|
CI shepherd: the head of this PR (6665adc) is not the one a maintainer labelled |
Pull request was converted to draft
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
Part of #4055 (slice 2 of #4052, after #7545):
golden_export.py junit DIR --out SRCwrites the golden byte check as Java source for a generated project, so the golden files keep protecting the Java once the mainframe and this tool are gone.What changed
junitsubcommand: writesgolden.index(the manifest flattened to tab-separated lines, so the Java needs no JSON library),GoldenCheck.java(no dependencies;problems(goldenDir, javaDir)) andGoldenRegressionTest.java(JUnit 5; readsgolden.dir/java.out.dir, fails on any problem).check(), not a new comparison, so there is one definition of "differs". A test compiles the generatedGoldenCheckwithjavacand asserts it prints exactlycheck()'s messages, in order, over five runs (identical, changed byte, bad return code with missing/extra outputs, missing run, abended run with junk datasets).Evidence:
pytest tests/tools/test_golden_export.py10 passed (the javac test ran, not skipped);pr_gates --fast9/9; per-test time ratchet 0 over, 0 warned. No engine, golden-master or ledger input changed, so no ratchet re-bless.Class / Sibling gaps
Class: the pieces of "proof cases become the Java regression suite" (#4052): export, byte check, field check, generated JUnit, wiring into the project, mutant-kill proof, non-batch case kinds. Handled here: the generated JUnit class and its Java byte check. Sibling gaps (different mechanism, not here):
java.out.dirinside the generated project (the harness'srun_javastep); status missing.Remaining slices (#4052)
java.out.dirand copiesgolden/+ the two classes into the generated project (equivalence_java.py,golden_export.py, a test).det_mutation.py).Checklist: partial [c:4b726470] -- wiring into the project, mutant-kill proof, field-level comparison, non-batch kinds
🤖 Generated with Claude Code