Skip to content

ci: split graph-accuracy-audit into parallel per-gate jobs (Part of #5501) - #5562

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5501-20261019T0235Z
Oct 19, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5501-20261019T0235Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #5501 (workflow-only; one hand-written file).

Owner decisions

Owner OK (2026-10-18): graph-accuracy-audit.yml workflow edit for #5501 is approved (allow_workflows)

What

graph-accuracy-audit.yml ran every gate serially in one job. It is now five parallel jobs plus an aggregate:

job installs gate (unchanged baseline / --samples)
import-graph gitgalaxy + tree-sitter pack import_graph_accuracy.py --ci --samples 5
call-resolution-python + pyan3, language-crucible call_graph_resolution.py python --ci --samples 5
call-resolution-typescript + TypeScript 6.0.2 (npm), import-graph corpus ... typescript --ci --samples 5
call-resolution-java + JDK 21, scip-java/Maven cache, import-graph corpus ... java --ci --samples 5
span-anchoring + language-crucible span_anchor_audit.py --ci --samples 3
graph-accuracy-audit (aggregate) nothing fails unless all five succeeded; keeps the old check name

Each gate keeps its own step-summary section. The if: draft skip (#5104) is on every job; the aggregate runs with always() so a failed gate fails it, and a skipped draft skips it as before. Note: this check name is not in the main ruleset's required list (det, full-suite, ground-truth, mypy-audit, ruff-audit), so nothing to re-point.

Measurement (3 recent successful PR runs, per-step seconds)

Setup (checkout, python, installs, npm, JDK, cache, crucible, corpus fetch) is ~35 s of ~9.3 min, so the split is worth it: the time is the gates.
import-graph 177-185, span anchoring 208-233, java 59-76, pyan 46-47, TypeScript 23-24.

before (measured) after (estimate from those steps)
PR wall time 9.3 min median (9.6 max) ~4.2 min (slowest gate, span anchoring ~3.5 min, + ~0.5 min setup + aggregate)
total runner-minutes ~9.3 ~12 (5 jobs x ~0.5 min setup + 9.6 min of gates + aggregate)

The "after" row is an estimate until the first run on this PR; I'll fill in measured numbers from it. Wall time meets the <=5 min target. Span anchoring (3.5 min) and import-graph (3 min) are the floor; splitting either further would need changes inside the audit scripts (out of scope).

Class sweep

Class: serial multi-gate CI jobs. Sibling gaps: none in scope; call-graph-accuracy-audit.yml (Level 1) is a single gate already. Other slow workflows are tracked as their own #5501-family issues.

Checks run

tests/tools (minus test_pin_requirements_check_all, which fails on the stale ci/requirements pins in this venv and is unrelated to this change), tree-wide guards, test_ci_retry.py (npm install still goes through ci_retry.sh): pass. YAML parses.

🤖 Generated with Claude Code

Needs the owner

This PR's whole change is .github/workflows/graph-accuracy-audit.yml, and the queue item has no allow_workflows:. The change cannot be dropped without emptying the PR, so it needs the owner's sign-off on the workflow edit.

The red java gate (scip-java recall 64.9 -> 2.7, precision 99.8 -> 90.5) is not caused by this PR: #5465's run of the old single-job workflow fails with identical numbers. It needs its own issue.

…5501)

Five gate jobs (import-graph, call-resolution python/typescript/java,
span-anchoring), each installing only what it needs, plus an aggregate job
that keeps the `graph-accuracy-audit` check name. Same baselines and --samples.

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 19, 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 19, 2026 02:52
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 03:01
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5562 @ 8c4e62d: 2 failed check(s)

== Call resolution (Level 2, vs scip-java) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39191979227/job/117866580357
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
2026-10-19 02:53:55,672 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
##[error]Process completed with exit code 1.
log tail:
"google/gson: proto/src/test/java/com/google/gson/protobuf/functional/LegacyProtoTypeAdapterFactoryTest.java:customStringAdapter -> proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java:79 (scip-java: gson/sr
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/ClassWithJsonAdapterAnnotation.java:84 (scip-java: gson/src/main/java/com/google/gson/GsonBuilder.java:9
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/Main.java:84 (scip-java: gson/src/main/java/com/google/gson/Gson.java:590)",
"google/gson: test-shrinker/src/main/java/com/example/Main.java:testTypeTokenWriteRead -> test-shrinker/src/main/java/com/example/Main.java:92 (scip-java: gson/src/main/java/com/google/gson/Gson.java:909)"
],
"external_examples": [
"google/gson: proto/src/main/java/com/google/gson/protobuf/LegacyProtoTypeAdapterFactory.java:read -> proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:build@207 (scip-java: outside the repo)",
"google/gson: proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:deserialize -> proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java:build@207 (scip-java: outside the repo)"
],
"reference_version": "0.12.3",
"lang": "java"
}
}
| language | reference | confident precision | ambiguous precision | recall | resolution recall |
|---|---|---|---|---|---|
| java | scip-java | 90.5% (231 judged) | 2.9% | 2.7% | 31.1% |
confident links scip-java resolves outside the repo (not gated): 2; strict precision counting them wrong 89.7%; unmapped (an end scip-java has no function for) 11
overloads (not gated): 0 of the wrong links are a different overload of the right method; counting those right, precision 90.5%, recall 2.7%
call_graph_resolution: REGRESSION
java: confident_precision_pct 99.8 -> 90.5
java: recall_pct 64.9 -> 2.7
java: resolution_recall_pct 66.5 -> 31.1
##[error]Process completed with exit code 1.
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/c61f4960-5715-4b0c-9cf7-39e0a13086a4' 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/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

== graph-accuracy-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39191979227/job/117867506575
repro: python tests/tools/pr_gates.py --fast
errors:
##[error]Process completed with exit code 1.
log tail:
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {293fd229-e57c-4386-aff3-08c026025d26}
Region: eastus
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: graph-accuracy-audit
##[group]Run echo "gate results: $RESULTS"
echo "gate results: $RESULTS"
for r in $RESULTS; do
[ "$r" = "success" ] || { echo "a gate finished as: $r"; exit 1; }
done
shell: /usr/bin/bash -e {0}
env:
RESULTS: success success success failure success
##[endgroup]
gate results: success success success failure success
a gate finished as: failure
##[error]Process completed with exit code 1.
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 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 19, 2026
@squid-protocol
squid-protocol merged commit f24e11f into main Oct 19, 2026
34 of 36 checks passed
@squid-protocol
squid-protocol deleted the churn/5501-20261019T0235Z branch October 19, 2026 03:30
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