You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Crucible Path Independence: run the two parent-path scans concurrently (6.4 min serial step) #5500
Measured (2026-10-16 to 2026-10-18, last 8 successful PR runs):crucible-path-independence.yml takes 7.1 min median, 7.5 max. Of that, 6.4 min is the step "Scan the corpus from two parent paths" (tests/tools/crucible_path_check.py --corpus ../language-crucible/data).
Where the time goes: in main(), scan(neutral_dir, ...) and then scan(special_dir, ...) run one after the other. Each is a full python -m gitgalaxy.galaxyscope subprocess over the staged language-crucible copy. The two scans are independent: different staged directories and different output dirs.
First measure how many cores one galaxyscope scan already uses on the 4-vCPU runner. If it already saturates them, parallel scans gain little. In that case, look at whether the scan can drop work that never depends on the parent path (e.g. snapshot outputs not compared), and record the finding here. (crucible_path_check: report where each scan's time goes (Part of #5500) #6172)
Evidence from the churn worker (draft PR #5527 carries the fix, a script-only change):
One galaxyscope scan of the language-crucible data (3398 artifacts, GALAXYSCOPE_MAX_WORKERS=3): 3:16 wall, 218% CPU (425 s user). The extraction pool (cpu_count-1) is busy only in PASS_1; the rest is single-threaded, so one scan does not saturate 4 vCPUs.
Both scans concurrent via crucible_path_check.py: 3:11 wall, 473% CPU, PASS (6-core box under other load). Serial would be ~6.5 min.
No workflow edit is needed. Optional (not applied; workflow edits not approved for this item): the timeout-minutes: 10 # ~5 min in CI (two crucible scans) comment in .github/workflows/crucible-path-independence.yml goes stale; update it to ~4 min after CI confirms.
Acceptance measurement for #5500 after #5527 (merged 2026-10-18T20:18:54Z). Read-only, no code or workflow change.
Method: the Crucible Path Independence workflow, last 100 completed runs (2026-10-18 07:05Z to 2026-10-19 05:22Z), the step Scan the corpus from two parent paths (completed_at minus started_at from the jobs API), successful steps only. Runs are split by run created_at against the merge time. All 56 samples are pull_request runs (the workflow is path-filtered, so there are no main push runs in the window).
After-merge runs cluster at ~150-200 s (4 runs), ~270-280 s (12) and one 366 s outlier. Before-merge runs cluster at ~210-300 s and ~400-445 s, so runner speed varies by about 1.5x either way.
Result: the step is about 31% faster at the median (396 s to 273 s) and the slow ~400-445 s cluster is gone. The target of ~3.5-4 min (210-240 s) is met by 5 of 17 runs but not at the median (4.6 min) or mean (4.2 min), so I am leaving this open rather than closing it.
What remains:
Decide whether 4.6 median on the 4-vCPU runner is acceptable. If yes, close it. If not, the next lever is the single-threaded phases after PASS_1 (per the earlier evidence the pool is only busy in PASS_1, so two concurrent scans leave cores idle there). A third scan-level speedup would be a separate change.
Optional, not applied (workflow edits not approved for this item): timeout-minutes: 10 # ~5 min in CI (two crucible scans) in .github/workflows/crucible-path-independence.yml is stale. Measured max is 6.1 min, median 4.6 min, so a comment of "~4.5 min" would be accurate.
Addendum to the 2026-10-19T05:43Z measurement (same method), covering the runs created after it: 3 successful pull_request runs, step Scan the corpus from two parent paths: 261 s, 275 s, 276 s (4.4 to 4.6 min). That gives 20 post-#5527 samples, all in line with the earlier median (273 s, 4.6 min); nothing moves the decision.
Status: target (~3.5-4 min) not met at the median, so this stays open. Remaining: either accept ~4.6 min (about 31% below the 6.6 min before) and close, or take the single-threaded post-PASS_1 phases as a separate item. The stale timeout-minutes: 10 # ~5 min in CI comment is still unedited (no workflow edit approved here).
Churn run 5500-20261022T0907Z (host nyx) ended without a PR. No safe script-level speedup: both scans ~99% of the step (CPU-bound on 4-vCPU runner), #5527 concurrency already in. Remaining time is engine work (ecosystem audits ~15s, SQLite write ~12s), needs a perf-ab item if wanted. Issue not closed.
Churn run 5500-20261022T1800Z (host nyx) ended without a PR. No PR: code work already on main (#5527); median 6.6->4.6 min vs 3.5-4 target; close vs perf-ab follow-up is owner's call (question written)
#6105 merged: a partial slice of [c:3ef46cdf] "First measure how many cores one galaxyscope scan already uses on the 4-vCPU runner. If it already saturates them, parallel scans gain little. In that case, look at whether the scan can drop work that"; left: the single-scan core usage was measured earlier on the issue; this drops the X-Ray work that never mattered to its result; the CI median is still to be confirmed after merge (promoter-bot)
Claimed by promoter-bot host melek, lease renewed 2026-10-23T06:20Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.
All three checklist items are done (#6105 ran the two scans concurrently; #6172 measured cores/compared outputs and added per-scan timing). Workflow went from 7.1 min median to about 4.6 min median (6.1 max) per #6172. Remaining time is engine-side (checker.ts parse, DB write) and is recorded as sibling gaps, not part of this issue.
Activity
squid-protocol commentedon Oct 18, 2026
Evidence from the churn worker (draft PR #5527 carries the fix, a script-only change):
galaxyscopescan of the language-crucible data (3398 artifacts,GALAXYSCOPE_MAX_WORKERS=3): 3:16 wall, 218% CPU (425 s user). The extraction pool (cpu_count-1) is busy only in PASS_1; the rest is single-threaded, so one scan does not saturate 4 vCPUs.crucible_path_check.py: 3:11 wall, 473% CPU, PASS (6-core box under other load). Serial would be ~6.5 min.timeout-minutes: 10 # ~5 min in CI (two crucible scans)comment in.github/workflows/crucible-path-independence.ymlgoes stale; update it to ~4 min after CI confirms.ci: crucible path check runs its two parent-path scans concurrently (…
squid-protocol commentedon Oct 19, 2026
Acceptance measurement for #5500 after #5527 (merged 2026-10-18T20:18:54Z). Read-only, no code or workflow change.
Method: the
Crucible Path Independenceworkflow, last 100 completed runs (2026-10-18 07:05Z to 2026-10-19 05:22Z), the stepScan the corpus from two parent paths(completed_at minus started_at from the jobs API), successful steps only. Runs are split by runcreated_atagainst the merge time. All 56 samples arepull_requestruns (the workflow is path-filtered, so there are no main push runs in the window).After-merge runs cluster at ~150-200 s (4 runs), ~270-280 s (12) and one 366 s outlier. Before-merge runs cluster at ~210-300 s and ~400-445 s, so runner speed varies by about 1.5x either way.
Result: the step is about 31% faster at the median (396 s to 273 s) and the slow ~400-445 s cluster is gone. The target of ~3.5-4 min (210-240 s) is met by 5 of 17 runs but not at the median (4.6 min) or mean (4.2 min), so I am leaving this open rather than closing it.
What remains:
timeout-minutes: 10 # ~5 min in CI (two crucible scans)in.github/workflows/crucible-path-independence.ymlis stale. Measured max is 6.1 min, median 4.6 min, so a comment of "~4.5 min" would be accurate.squid-protocol commentedon Oct 19, 2026
Addendum to the 2026-10-19T05:43Z measurement (same method), covering the runs created after it: 3 successful
pull_requestruns, stepScan the corpus from two parent paths: 261 s, 275 s, 276 s (4.4 to 4.6 min). That gives 20 post-#5527 samples, all in line with the earlier median (273 s, 4.6 min); nothing moves the decision.Status: target (~3.5-4 min) not met at the median, so this stays open. Remaining: either accept ~4.6 min (about 31% below the 6.6 min before) and close, or take the single-threaded post-PASS_1 phases as a separate item. The stale
timeout-minutes: 10 # ~5 min in CIcomment is still unedited (no workflow edit approved here).2 remaining items
squid-protocol commentedon Oct 22, 2026
Churn run
5500-20261022T0907Z(host nyx) ended without a PR. No safe script-level speedup: both scans ~99% of the step (CPU-bound on 4-vCPU runner), #5527 concurrency already in. Remaining time is engine work (ecosystem audits ~15s, SQLite write ~12s), needs a perf-ab item if wanted. Issue not closed.squid-protocol commentedon Oct 22, 2026
Churn run
5500-20261022T1800Z(host nyx) ended without a PR. No PR: code work already on main (#5527); median 6.6->4.6 min vs 3.5-4 target; close vs perf-ab follow-up is owner's call (question written)perf: X-Ray and the vault scan run only the signatures they read (Par…
squid-protocol commentedon Oct 23, 2026
#6105 merged: a partial slice of [c:3ef46cdf] "First measure how many cores one galaxyscope scan already uses on the 4-vCPU runner. If it already saturates them, parallel scans gain little. In that case, look at whether the scan can drop work that"; left: the single-scan core usage was measured earlier on the issue; this drops the X-Ray work that never mattered to its result; the CI median is still to be confirmed after merge (promoter-bot)
squid-protocol commentedon Oct 23, 2026
Claimed by promoter-bot host
melek, lease renewed 2026-10-23T06:20Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:meleklabel.Drop the workflow comment edit (needs the owner) (Part of #5500)
crucible_path_check: report where each scan's time goes (Part of #5500)…
squid-protocol commentedon Oct 23, 2026
All three checklist items are done (#6105 ran the two scans concurrently; #6172 measured cores/compared outputs and added per-scan timing). Workflow went from 7.1 min median to about 4.6 min median (6.1 max) per #6172. Remaining time is engine-side (checker.ts parse, DB write) and is recorded as sibling gaps, not part of this issue.