Skip to content

ci: run preflight on free hosted ARM off the PR critical path - #35652

Merged
OrcaWin merged 1 commit into
mainfrom
ci/preflight-hosted
Oct 29, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
ci/preflight-hosted

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​29 $\color{#cf222e}{\Huge{\mathbf{−}}}$​32 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24 $\color{#cf222e}{\Huge{\mathbf{−}}}$​43 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19

Summary

  • Preflight (lint, typecheck, and the other static gates) moves from blacksmith-8vcpu-ubuntu-2404 to free ubuntu-24.04-arm. Blacksmith spend drops by about $33/day: preflight was about $4.1 in a 3-hour sample.
  • Unit shards no longer wait for preflight. The existing unit-plan.yml (about 42s) now produces their plan, so shards start about 2 minutes earlier. Preflight's plan step and artifact upload are removed.
  • package, package (windows) and layout oracle start without waiting for preflight. Package (Linux) ran on the critical path at about 175s for preflight plus about 11 minutes for packaging; now the 11 minutes start right away.
  • verify still requires preflight to succeed. The short auxiliary checks (git compatibility, shell contracts and others) still start only after preflight succeeds.

Trade-off (why this is held for approval)

This partly reverses #25317's rule that required jobs wait for preflight. When lint fails, the free shards, the hosted package jobs and the layout oracle (Blacksmith, about $0.15) still run. With 1,000 concurrent slots and those jobs on free runners, wall time matters more than runner demand.

Verification

  • 31 affected contract test files pass locally (879 tests).
  • Will report this PR's own run: the preflight duration on hosted ARM and the gate's wall time compared with main's ~14 min (run 40804416778: package finished at 841s).

Unit shards now wait for a standalone plan job instead of preflight, and
packaging and the layout oracle start immediately, so preflight's slower
free runner no longer delays the PR gate.
@OrcaWin
OrcaWin force-pushed the ci/preflight-hosted branch from 68088af to 5511684 Compare October 29, 2026 04:18
@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Moves preflight to hosted ARM and lets tests, packaging, and the layout oracle start without waiting for it.

  • Preflight runs on hosted ARM while unit shards follow a separate plan.
  • Packaging and the layout oracle start without waiting for preflight.

OrcaWin explicitly acknowledges that shards, packaging, and the layout oracle will run even when lint fails. This is an intentional trade-off, not a finding.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  Paths["code_paths"] --> Preflight["preflight: hosted ARM"]
  Paths --> Plan["unit_plan"]
  Plan --> Tests["test"]
  Paths --> Packages["package / package_windows"]
  Paths --> Layout["layout_oracle"]
  Preflight --> Aux["Auxiliary checks"]
  Preflight --> Verify["verify"]
  Tests --> Verify
  Packages --> Verify
  Layout --> Verify
  Aux --> Verify
Loading

Reviews (1) · Last reviewed commit: "ci: run preflight on free hosted ARM off..." · Reviewed by Greptile

@OrcaWin
OrcaWin merged commit 3ce252c into main Oct 29, 2026
47 of 48 checks passed
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.

1 participant