Skip to content

ci: crucible path check runs its two scans concurrently (Part of #5500) - #5527

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5500-20261018T1943Z
Oct 18, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5500-20261018T1943Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5500 (the issue stays open: the workflow's timeout-minutes: 10 comment/margin is a workflow edit, not approved here).

Change

tests/tools/crucible_path_check.py: the neutral and special-parent scan() calls run on a 2-thread pool instead of one after the other. Each scan is its own galaxyscope subprocess over its own staged copy and output dir. Error handling is unchanged: an unreadable output is still a finding, and neutral_error != special_error still adds a diff.

New tests/tools/test_crucible_path_check.py (fake scan): the two scans overlap (a 2-party barrier), a differing side fails, an unreadable side fails even when the audits match, identical sides pass.

Measurement (local, 6-core box under other load; 3398 artifacts, GALAXYSCOPE_MAX_WORKERS=3 = CI's cpu_count-1)

run wall CPU
one scan alone 3:16 218% (user 425 s)
both scans, concurrent (new) 3:11 473%

Serial was therefore ~6.5 min locally, matching the 6.4 min CI step. One scan uses ~2.2 cores (the extraction pool is saturated only in PASS_1; the rest is single-threaded), so two overlap well on 6 cores. On the 4-vCPU runner the demand is ~4.4 cores, so expect roughly 3.5-4.5 min rather than the local 3.2. CI's actual before/after is to be read from this PR's Crucible Path Independence run (draft: it starts on ready-for-review).

PASS on the real corpus: "the corpus scans identically from both parent paths."

Class

Serial independent scans in CI scripts. Members: this check (done). Sibling gaps: none found in this script.

Cross-repo

None.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 18, 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 18, 2026 19:57
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 19:59
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit db37015 into main Oct 18, 2026
47 checks passed
@squid-protocol
squid-protocol deleted the churn/5500-20261018T1943Z branch October 18, 2026 20:18
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