Repository navigation
span_anchor_audit: --shard and --merge so the longest graph-accuracy gate can run in parallel (Part of #5501) - #6355
Merged
Conversation
…racy gate can run in parallel (Part of #5501) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 04:31
squid-protocol
enabled auto-merge (squash)
October 24, 2026 04:34
Owner
Author
|
No description provided. |
1 similar comment
Owner
Author
|
No description provided. |
This was referenced Oct 24, 2026
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 #5501. Checklist: partial [c:5b57f5a0] -- the workflow now needs to run span anchoring as two
--shardlanes plus the--merge --cigate (workflow edit needsallow_workflows, not in this brief), then the wall time is measured against the 5 min target.What and why
Measured lane times on the three-lane job (#6100): span-anchoring 320 s, import-graph + typescript 282 s, java + python 274 s. The lanes are balanced, so the single longest gate, span anchoring, is the floor (~5.3 min). Splitting more jobs lost to queue waits in #5562, so the split stays inside one job.
This PR makes span anchoring shardable, with no workflow change:
span_anchor_audit.py --shard I/N --json part.jsonscans every Nth top-leveldata/directory (hard-linked copy, same relative paths).--merge part*.json [--ci]sums the per-language counts and applies the one baseline. A shard refuses--ci/--regenerate/--merge: one language's files sit in several directories (a.hfile underc/can be C, a makefile or yacc), so per-shard rates would be wrong.Class / Sibling gaps
Class: a multi-gate CI audit whose longest single gate sets the wall-time floor. Members: span anchoring (done here, as a shardable script). import-graph (245 s) is the next-longest gate; it has no shard mechanism and is not needed until span anchoring drops below it. The call-resolution gates (java 194 s, python 80 s, typescript 37 s) are already shorter than the lanes.
call-graph-accuracy-audit.ymlandgraph-comparison-history.ymlare single-gate: none needed. No burned-estate program is involved.Facts checked
--merge --ciprints OK.cpp/yields c, cpp, powershell, python), which is why the gate is on the merge.pytest tests/tools/test_span_anchor_audit.py tests/tools/test_ci_retry.py38 passed;ruff format --checkclean;ruff_audit --cino new findings;audit_check.pyall clear.Remaining slice (needs
allow_workflows).github/workflows/graph-accuracy-audit.yml, gate step: four lanes in the same job and step:gateappends--ci --summary, which a shard rejects, so the shard calls need a variant ofgatewithout those flags; the merge's exit code feedsfailed. Risk: the runner has 4 vCPUs and each scan already uses cpu_count-1 workers, so four lanes may be CPU-bound; measure on the first run.🤖 Generated with Claude Code