Skip to content

Graph Accuracy Audit: split the serial gates into parallel jobs (9.3 min) #5501

Closed

Description

@squid-protocol

Measured (2026-10-16 to 2026-10-18, last 4 successful PR runs): graph-accuracy-audit.yml takes 9.3 min median, 9.6 max. The slowest step is "Gate span anchoring against the baseline" (3.5 min). It is path-filtered, so it runs on few PRs (4 in the window). This is lower priority than its siblings for that reason.

Where the time goes: one job runs every gate one after another. First setup: tree-sitter-language-pack + pyan3, the TypeScript checker via npm, JDK 21 + scip-java + the Maven cache, the language-crucible corpus and the pinned import-graph repos. Then the gates: import-graph precision/recall, call-resolution vs pyan3, call-resolution vs the TypeScript checker, call-resolution vs scip-java, and span anchoring. The gates don't depend on each other, and each needs only part of the setup. For example, only the scip-java gate needs the JDK.

Proposed

Acceptance: PR wall time before and after (target ≤ 5 min), and total runner-minutes, in the PR body.

Activity

  1. added
    github-actions
    ci-cd
    scope:infra
    on Oct 18, 2026
  2. squid-protocol commented on Oct 19, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 5501-20261019T1131Z (host nyx) ended without a PR. Acceptance needs a Graph Accuracy Audit run after the fix, and none had happened yet. Nothing to change in code; the issue stays open until that run is measured.

    🤖 Generated with Claude Code

  3. 8 remaining items

  4. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    #6371 merged: a partial slice of [c:5b57f5a0] "Split into parallel jobs (a matrix or separate jobs), each installing only what its gate needs: pyan3 / TypeScript / scip-java / span anchoring + import-graph. Each job keeps its own baseline gate and"; left: 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. (promoter-bot)

  5. squid-protocol commented on Oct 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 5501-20261024T1821Z (host nyx) ended without a PR. Already satisfied on main (#5562/#6100/#6355/#6371/#6503); no change. 5-min target unmet: queue wait 5-18 min is outside the workflow, exec 6-7.5 min. Checklist done [c:5b57f5a0].

  6. squid-protocol commented on Oct 25, 2026

    @squid-protocol
    OwnerAuthor

    Re-measure after #6588 (merged 2026-10-25T05:28:51Z). First non-draft run after it: run 40166452433 (PR #6500, a cpp change). The plan job selected a subset (call-cpp, the three import-graph subsets, both span shards); the other toolchain installs were skipped.

    run 40166452433 (after #6588, partial plan) run 40163033519 (#6588's own run, all gates)
    job wall time 5.9 min (05:56:31 to 06:02:25) 10.1 min
    gate step 306 s about 9 min
    setup before the gates about 46 s not read
    plan job 13 s 11 s
    queue wait before the job about 15 min (outside the workflow) about 11 min
    runner-minutes (gate job + plan job) about 6.1 about 10.3

    Before (issue body, 2026-10-16 to 18): 9.3 min median, one job running every gate serially.

    Gate times, run 40166452433 (the "Graph-accuracy gate times" step summary): import-graph-1 240 s, call-cpp 199 s, span-shard-1 172 s, import-graph-2 171 s, import-graph-3 66 s, span-shard-0 60 s, span-anchoring merge 0 s. Lane totals: 306 s (import-graph-1 + 3), 199 s (cpp), 172 s (span-shard-1), 231 s (import-graph-2 + span-shard-0); a perfect split of the 1008 s is about 252 s.

    Full-plan run 40163033519 lane totals: 455 / 536 / 425 / 461 s (mean 469 s). The import-graph-1 lane is 67 s over the mean.

    Decision: no code. The slowest lane is 54 s over the ideal split on the first post-merge run (under the 60 s threshold). On the full-plan run it is 67 s over the mean, but import-graph-1 moved from 407 s to 240 s between the two runs, so one sample is too noisy to tune on. Candidate if the next full-plan run shows the same lane over by more than 60 s: move import-graph-3 (66 to 116 s) or call-javascript off the import-graph-1 lane. The 5-min target holds for execution on a partial plan (5.9 min job, 306 s gate step); a full-plan run is still about 10 min.

    Checklist state unchanged (the gate ticks it).

    🤖 Generated with Claude Code

  7. squid-protocol commented on Oct 25, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 5501-20261025T0616Z (host melek) ended without a PR. measurement posted on #5501, no code change; lane rebalance deferred until next full-plan run shows import-graph-1 >60s over mean

  8. squid-protocol commented on Oct 27, 2026

    @squid-protocol
    OwnerAuthor

    Closing (owner OK, 2026-10-26: close what's done). All three checklist items are ticked. After #6588 the audit job took 5.9 min on a partial plan (run 40166452433), against the 9.3 min this issue started from. The lane rebalance is conditional (only if a full-plan run shows import-graph-1 over 60 s above the mean); open a new issue if that shows up.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-cdgithub-actionsperformancescope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions