Skip to content

Graph Accuracy Audit: one job, three parallel gate lanes (Part of #5501) - #6100

Merged
squid-protocol merged 7 commits into
mainfrom
churn/5501-one-job
Oct 23, 2026
Merged

squid-protocol merged 7 commits into
mainfrom
churn/5501-one-job

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #5501. Slice 2: wall time of the Graph Accuracy Audit after the #5562 split.

What the numbers said (before)

Post-split runs 39861901505 / 39860959071 / 39868617196: wall 6.5 / 8.8 / 13.3 min, but the slowest gate executed in 1.6-3.2 min (span anchoring: 2:49, 1:37, 1:44; import graph 1:30-2:25; java 1:15-2:05; pyan3 0:40-1:15; TypeScript 0:20-1:10). Per-step setup (checkout, Python, install) is ~30 s per job. The rest was runner-queue wait: job start offsets from run creation were 0:15-2:52 in run 1, and in run 3 java started 8.4 min after creation; the 4-second aggregate job also waited up to ~2 min for a runner. Five runner requests + one aggregate = six queue waits.

Change

One job, still named graph-accuracy-audit (the required check name stays; no aggregate job needed). It installs once, fetches the two corpora in parallel, then runs the five gates in three lanes (span anchoring | import-graph then TypeScript | java then pyan3). Each gate keeps its own --ci baseline, --samples, exit code and summary table; any failing gate fails the job.

Checklist: done [c:b9685237]
Checklist: partial [c:5b57f5a0] -- the per-gate split was replaced by lanes in one job (the split did not reach 5 min); each gate still has its own baseline gate.
Checklist: done [c:1cc8fd4d]

Owner decisions

Owner OK (2026-10-22): the .github/workflows edit is approved (allow_workflows).

Class table (what dominates a Graph Accuracy Audit PR's wall time)

Member Status Evidence
Runner queue wait (6 requests before, 1 now) handled here (fewer requests) 0.3-8.4 min before; 1.7 / 15.3 min on this PR: external, not controllable
Per-job setup (checkout, Python, install) handled here (paid once) ~30 s per job before
Duplicate corpus fetches (import-graph x3, crucible x2) handled here (fetched once, in parallel) step times in run 39861901505
Aggregate job's own queue wait handled here (removed) up to ~2 min in run 39868617196
Span anchoring scan (2.8 min alone, the critical lane) missing: needs a tool change one in-process scan of crucible data/
import-graph / java gates under 4-vCPU contention partial: 75->142 s, 90->153 s lanes keep them off the critical path

Sibling gaps

  • Span anchoring scan speed (tests/tools/span_anchor_audit.py): not handled; needs a faster or incremental scan, a tool change with the baseline kept identical; source: run 39878562495, 197 s.
  • Queue wait: needs owner/org runner capacity (larger or self-hosted runner), not a repo change.

Owner approval needed for the workflow edit

The brief records owner OK (2026-10-22, allow_workflows) for the .github/workflows edit, but the queue item carries no allow_workflows: the owner must confirm before merge.

Measured after

run wall queue wait execution gate step
39878562495 (this PR, after the lane fix) 6.1 min 1.7 min 4.3 min (job 00:32:36-00:36:54) 3.4 min; per gate under contention: span 197 s, import-graph 153 s, java 142 s, pyan3 38 s, TypeScript 22 s
39876159984 (this PR, first push) 22.8 min 15.3 min 7.5 min red: my exit in a {} group ended each lane after its first gate (fixed in the next commit); not a timing sample

Before (5 jobs + aggregate), from run 39861901505: wall 6.5 min, summed job execution 9.5 runner-min (billed per job, each rounded up). After: one job, ~4.3 runner-min.

Does it reach 5 min wall? Not guaranteed. Execution is now 4.3 min (under the 5 min target), but wall time = runner queue wait + execution, and the queue wait is outside the workflow: 0.3 to 8.4 min before, 1.7 and 15.3 min after on this PR's two runs. The measured wall here is 6.1 min, over 5. Running the five gates concurrently on 4 vCPU slowed each (java 75 -> 142 s, import-graph 90 -> 153 s), so the floor is span anchoring's 2.8 min alone plus ~1 min setup. Going lower would need span anchoring itself made faster (one in-process scan of the whole crucible data/), which is an engine/tool change, not a workflow one; I did not shard it (the baseline is per language over one scan).

Facts checked

  • Before-numbers come from gh run view <id> --json jobs (job and step startedAt/completedAt).
  • Gates are the same baselines/--samples; run 39878562495 passed all five (import_graph_accuracy: OK, 20 languages).
  • Workflow YAML parses; test_ci_retry.py pins the npm install [email protected] line, which is unchanged (pytest is not installed in this worktree, so not run locally).

🤖 Generated with Claude Code

Needs the owner: this PR edits .github/workflows/graph-accuracy-audit.yml (the whole point of #5501) and the queue item has no allow_workflows:. Dropping the workflow change would empty the PR, so it is kept and flagged for the owner to approve. The latest fix in it makes the crucible clone line end in _ "$ref" (foreground, import fetch stays backgrounded) so test_ci_retry.py passes.

The five-job split measured 6.5/8.8/13.3 min wall but ~3 min of execution:
the rest was runner-queue wait (five requests plus the aggregate job).
One job installs once and runs the gates in three lanes; same baselines
and --samples; the check name graph-accuracy-audit is kept.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol
squid-protocol marked this pull request as ready for review October 23, 2026 00:07
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

…ane after its first gate (Part of #5501)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 00:41
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6100 @ ff0575e: 2 failed check(s)

== full-suite (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/39879628852/job/120186237193
repro: fails on main too: fix main (then merge origin/main here)
errors:
##[error]Process completed with exit code 1.
log tail:
Hosted Compute Agent
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {2b741b98-be6d-46f4-ad32-ba08a516a172}
Region: westus2
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && test "$SKIP" = "true"; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
##[endgroup]
full-suite parts: failure (tested-tree skip: )
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39879628852/job/120179962955
repro: python -m pytest -q tests/tools/test_ci_retry.py::test_corpus_clone_goes_through_ci_retry_and_keeps_the_pin[graph-accuracy-audit.yml]
failing tests: tests/tools/test_ci_retry.py::test_corpus_clone_goes_through_ci_retry_and_keeps_the_pin[graph-accuracy-audit.yml]
errors:
fail-on-cache-miss: false
# a retry starts from a clean directory (a partial clone would fail every later try) and clones the pin
E AssertionError: gitgalaxy/tests/tools/ci_retry.sh 4 10 -- bash -c 'rm -rf language-crucible && git clone --branch "$1" --depth 1 https://github.com/squid-protocol/language-crucible.git language-crucible' _ "$ref" &
tests/tools/test_ci_retry.py:122: AssertionError
FAILED tests/tools/test_ci_retry.py::test_corpus_clone_goes_through_ci_retry_and_keeps_the_pin[graph-accuracy-audit.yml] - AssertionError: gitgalaxy/tests/tools/ci_retry.sh 4 10 -- bash -c 'rm -rf language-crucible && git clone --branch "$1
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 188114
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 945a0aed697792717bb81d903f5dba8f027fc63cbdc19f7e792dae84768e6282
Finalizing artifact upload
Artifact test-times-part-2 successfully finalized. Artifact ID 12470934114
Artifact test-times-part-2 has been successfully uploaded! Final size is 188114 bytes. Artifact ID is 12470934114
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39879628852/artifacts/12470934114
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/5cb7c99c-2de9-49c5-8202-11b13abfc7bf' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6100 @ 50f3bb0: 1 failed check(s)

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39884188264/job/120188789471
repro: python -m pytest -q tests/tools/test_ci_retry.py::test_corpus_clone_goes_through_ci_retry_and_keeps_the_pin[graph-accuracy-audit.yml]
failing tests: tests/tools/test_ci_retry.py::test_corpus_clone_goes_through_ci_retry_and_keeps_the_pin[graph-accuracy-audit.yml]
errors:
fail-on-cache-miss: false
# a retry starts from a clean directory (a partial clone would fail every later try) and clones the pin
E AssertionError: gitgalaxy/tests/tools/ci_retry.sh 4 10 -- bash -c 'rm -rf language-crucible && git clone --branch "$1" --depth 1 https://github.com/squid-protocol/language-crucible.git language-crucible' _ "$ref" &
tests/tools/test_ci_retry.py:122: AssertionError
FAILED tests/tools/test_ci_retry.py::test_corpus_clone_goes_through_ci_retry_and_keeps_the_pin[graph-accuracy-audit.yml] - AssertionError: gitgalaxy/tests/tools/ci_retry.sh 4 10 -- bash -c 'rm -rf language-crucible && git clone --branch "$1
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 187626
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 77b18f46309271b8deb81d558f961b7f0b023e7b30282e4c9047979859d63e43
Finalizing artifact upload
Artifact test-times-part-2 successfully finalized. Artifact ID 12471948917
Artifact test-times-part-2 has been successfully uploaded! Final size is 187626 bytes. Artifact ID is 12471948917
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39884188264/artifacts/12471948917
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/07046f26-e966-4387-aa47-53b33c2cb14c' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 23, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (afe48ff) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 23, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 02:23
@squid-protocol
squid-protocol merged commit 934a676 into main Oct 23, 2026
36 checks passed
@squid-protocol
squid-protocol deleted the churn/5501-one-job branch October 23, 2026 02:41
@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