Repository navigation
ci(rustcfml): --write-baseline rewrites the baseline's provenance note - #4579
Conversation
baseline.json's _notes[0] says which run produced the baseline (run, commit, engine version, totals). --write-baseline preserved _notes verbatim, so every regenerated baseline, including each auto-bump PR, kept the previous run's note (#4577 still cited the v0.693.0 run). In write mode, drop any existing provenance note (the generated form, or a hand-written "Linux baseline from ..." one) and put a fresh one first: the Actions run URL from GITHUB_* in CI, "a local run" otherwise, plus the short commit, engine version, platform and totals. The other human-maintained notes keep their order. Refs #4577 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Peter Amiri <peter@alurium.com>
…eline-provenance-note
|
rev1-r3 review @ f4a3c10: APPROVE The old-note detection can't drop today's human notes. It removes only string notes that start with
The totals come from the same result data. The note interpolates the The 7 new tests are meaningful.
PR CI: 12 pass, 3 skipping, 0 fail. Up to date with develop, MERGEABLE. |
Summary
tools/rustcfml/baseline.json's first_notesentry records where the baseline came from: the run, commit, engine version and totals.run-suite.sh --write-baselinecopied_notesover unchanged, so every regenerated baseline kept the previous run's note. This includes every auto-bump PR. #4577 still cited the v0.693.0 run until it was fixed by hand.In write mode, the script now:
Linux baseline from ...one, including the wording used on chore(rustcfml): bump engine pin to v0.732.0 #4577;GITHUB_SERVER_URL/GITHUB_REPOSITORY/GITHUB_RUN_ID), ora local runoutside CI;GITHUB_SHA, orgit rev-parse HEADlocally);Example, from a dry run against develop's
baseline.json:Tests
tools/rustcfml/test_run_suite.pygainsWriteBaselineTest, which has 7 cases. They were written first and seen failing:_notesgets the note.All four
tools/rustcfml/test_*.pyfiles pass, andrustcfml-ci.ymlruns them. A dry run against develop's realbaseline.jsonreplaced the stale v0.693.0 note and kept the 3 human notes in order.Refs #4577
🤖 Generated with Claude Code