Skip to content

Graph Accuracy Audit: span anchoring as two shards in the one job (Part of #5501) - #6371

Merged
squid-protocol merged 5 commits into
mainfrom
churn/5501-20261024T0524Z
Oct 24, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
churn/5501-20261024T0524Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Part of #5501.

Checklist: partial [c:5b57f5a0] -- span anchoring now runs as two shards in the one job; separate per-gate jobs were NOT done (measured worse in #5562, reverted in #6100). Wall time vs the 5 min target is not yet measured.

Needs the owner

This PR edits .github/workflows/graph-accuracy-audit.yml, which is the whole change, and the queue item carries no allow_workflows. The brief said the grant covers it, but the gate's precheck found none. Dropping the workflow change would empty the PR, so it is kept and flagged: the owner must approve before merge.

Design decision (deviates from the issue text)

The issue asks for separate jobs. That was already tried (#5562): five jobs + an aggregate measured 6.5 / 8.8 / 13.3 min wall, because each runner request waited in the queue while setup was only ~30 s per job; #6100 folded it back into one job with three lanes. #6355 then made span anchoring (the longest gate, ~320 s) shardable. This PR is the remaining slice named in #6355: four lanes in the same job and step, span anchoring as --shard 0/2 and --shard 1/2 plus the --merge --ci baseline gate. Job name graph-accuracy-audit (the required check) is unchanged; no aggregate job.

Change

.github/workflows/graph-accuracy-audit.yml, gate step only. run_gate runs a command with a per-gate log; gate adds --ci --summary. Shards use run_gate (a shard refuses --ci). After wait, the merge runs the one span-anchoring baseline gate, with the same --samples 3, and writes the same step-summary section; it is skipped only if a shard produced no JSON (that shard's failure is already recorded in failed). Other gates and --samples are untouched.

Measurement (acceptance)

Not measurable yet: this is a draft and the workflow skips drafts. Before (from #6100, 3 lanes): lanes 320 / 282 / 274 s, wall 6.1 min with 1.7 min queue wait, ~4.3 runner-min. Expected after: critical lane ~160-180 s of span anchoring if the 4 vCPUs allow, so execution ~3-3.5 min; risk is CPU contention across four lanes (each scan uses cpu_count-1 workers). To be filled from the first ready-for-review run (job step times in the times output).

Class / Sibling gaps

Class: a multi-gate CI audit whose longest lane sets the wall-time floor. Members: span anchoring (handled here, sharded), import-graph (245 s, next-longest; no shard mechanism, only needed if span drops below it), call-java / call-python / call-typescript (194 / 80 / 37 s, already shorter than the lanes). Sibling gaps: queue wait is external (runner capacity, not a repo change); separate jobs per gate: rejected by measurement (#5562), not a gap.

Facts checked

  • Workflow YAML parses; tests/tools/test_ci_retry.py, test_sweep_plan.py, test_ci_critical_path_split.py, test_span_anchor_audit.py: 158 passed.
  • The workflow was not run on a runner (draft).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 24, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 24, 2026 16:00
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 16:03
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 800944c into main Oct 24, 2026
57 checks passed
@squid-protocol
squid-protocol deleted the churn/5501-20261024T0524Z branch October 24, 2026 16:21
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant