Repository navigation
tri-comparison audit + history, graph-comparison history: plan jobs select by diff (Part of #6501) - #6543
Conversation
…elect by diff (Part of #6501) Extends accuracy_audit_plan.py with tri-comparison (per-language `langs` from the tri baselines), tri-comparison-history and graph-comparison-history. Each workflow gains a stdlib-only plan job; the heavy job keeps its check name and runs if: always(), so a failed plan over-runs, never under-runs. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6543 @ 5276c95: 1 failed check(s) == full-suite part 2/3 (failure) -- real |
…n-job edit (Part of #6501) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (f988a10) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
Part of #6501 (slice 4, after #6510). Plan jobs for
tri-comparison-audit.yml,tri-comparison-history.ymlandgraph-comparison-history.yml, built ontests/tools/accuracy_audit_plan.py(stdlib only).What changed
accuracy_audit_plan.py: three new audits.tri-comparison(PR): the tree-sitter rule overtests/tri_comparison_baseline_<lang>.json(today javascript, typescript, zig). Emitslangs; a language with no tri baseline selects nothing unless the diff touches a key the lens reads (then all).tri-comparison-history(push): re-measures every corpus language into an in-place chart/ledger, so anylanguages/<lang>.pyhunk beyond comments and_metaruns it.graph-comparison-history(push): a diff beyond comments and_metato a language in the call baseline orimport_graph_corpus.jsonruns it; any other language falls back to the detection rule.EVERYTHINGnow accepts glob entries (call_graph_resolution*_baseline.json).planjob; the heavy job keeps its check name,needs: [plan],if: always()(a failed plan runs it), and every step is gated onneeds.plan.outputs.run != 'false'. Required checks still report on every PR. The tri audit takesLANGSthrough env and runs--languages "$LANGS" --ci(or--all --ciforall/empty). The history plans diff from the last successful push run, notgithub.event.before. No shepherd workflow touched.Class / Sibling gaps
Class: a per-language or ledger workflow with a broad
paths:filter, no plan job and unconditional installs. This PR handles all three remaining members of the tri/graph-ledger family. Not here (5-file cap): thedocs/graph_accuracy.mdnote for the three new audits. The broad PR workflows with no plan (codeql, muninn, estate-crucible, golden-crucible, crucible-path-independence, fact-crosscheck, ports-compile, rosetta-audit, unicode-gauntlet) stay with #6278 slice 4. None of these needs a burned-estate program.Measurement (
accuracy_audit_plan.py --audit X --replay 50, last 50 merged PRs)Honest read: in this 50-PR window almost every triggering PR also touched shared engine files or the tools, which run everything, so the saving is small here. The plan saves where it is designed to: a Haskell/Dart/PowerShell-only rule edit now runs no tri audit at all (
--files .../haskell.pygivesrun=false), and comment/_metaedits skip all three. Runner-minutes per run when it does run are unchanged (successful runs, last 30: tri audit median 7.6 min wall, max 14.5; tri history median 7.7, max 19.5; graph history median 9.7, max 20.1). A skipped run costs one ~5 min-timeout plan job (a few seconds in practice) instead of that.Tests / gates
tests/tools/test_accuracy_audit_plan.py(+~150 cases): every shared input runs; other events, empty diff, unplaceable/new/unreadable file run; comments,_metaand unread files skip; tri language selection and union; graph-history membership (call baseline + import corpus); glob entries; workflow structure (check name, plan job, every step gated, publish gated,LANGSvia env,persist-credentials: false); everypaths:entry is planned; replay.pr_gates.py --fast: 7/7 pass. Tree-wide guards +tests/tools/test_accuracy_audit_plan.py,test_graph_accuracy_plan.py: 416 passed. No golden bless, ratchets or crucible check: no engine or parsing code changed.--ratchets(no engine change), actionlint (not installed; YAML parsed).🤖 Generated with Claude Code