Skip to content

ci: run independent gates in parallel with test job - #677

Merged
toasterbook88 merged 1 commit into
mainfrom
ci/parallel-gates
Nov 21, 2026
Merged

toasterbook88 merged 1 commit into
mainfrom
ci/parallel-gates

Conversation

@toasterbook88

@toasterbook88 toasterbook88 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Split the single sequential Test & Build job into two parallel jobs.
  • test keeps lint, unit tests, race, install tests, build, and coverage.
  • New gates job runs all independent guardrails (sandbox ssh -G, public boundary, deadcode, import tiers, specs, repo truth, doc facts, Claude/secret/workflow pins, actionlint, lifecycle) at the same time.
  • No checks are removed or skipped. Critical path becomes max(test, gates) instead of their sum (~60 s removed from the wall clock on current numbers).
  • Full suite still required before main via merge_group.

Before / after (from prior API timings)

bucket p50 (s) notes
total (old) 359 single job
race 102 stays in test job
coverage 70 stays in test job
other gates 61 moves to parallel job

Expected new wall time ≈ max(test path ~280 s, gates path ~80 s) ≈ 280 s (roughly 1 min faster) once both runners are free.

Test plan

  • CI on this PR shows two jobs starting together.
  • Both jobs green.
  • Next 5 runs on main or subsequent PRs confirm lower p50/p95 wall time (extract via Actions API).

Devin Review

Split the sequential Test & Build job so the guardrail gates
(boundary, deadcode, import tiers, specs, doc facts, actionlint,
lifecycle, sandbox, etc.) run in a second job that starts at the
same time. Critical path becomes the slower of the two jobs
instead of their sum.

No test or check is removed. Full suite still runs before main
via merge_group.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread .github/workflows/ci.yml Resolved

@toasterbook88 toasterbook88 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AXIS Grok gate

Verdict: PASS-WITH-RISK

PR #677: ci: run independent gates in parallel with test job
Head: c75686a
Files: .github/workflows/ci.yml (1 file, +20)

Invariant hits: none.

  • Pure CI workflow split. No agent surfaces, no fact-plane changes, no new tools, no secret/ssh/fleet paths, no HITL/lock changes, no cache or inventory claims.
  • Checks preserved exactly: test job retains lint/tests/race/install/build/coverage; gates job runs the independent guardrails (sandbox ssh -G, public boundary, deadcode, import tiers, specs, repo truth, doc facts, Claude/secret/workflow pins, actionlint, lifecycle).
  • Permissions remain contents: read. Actions stay SHA-pinned. GITHUB_TOKEN usage unchanged (repo-truth step only).
  • merge_group still requires the full suite before main.

CI status (at review): Test & Build in_progress, Independent gates in_progress, govulncheck in_progress, Analyze in_progress. auto-merge skipped. mergeable_state: blocked (expected).

Recommended operator action: confirm both new jobs start together and go green on this PR, then merge. Residual risk is only that the parallel split has not yet completed on CI; the YAML itself does not weaken any gate.

@toasterbook88
toasterbook88 merged commit 340c1bc into main Nov 21, 2026
7 checks passed
@toasterbook88
toasterbook88 deleted the ci/parallel-gates branch November 21, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants