Skip to content

ci: run the layout oracle gate on free hosted runners - #35809

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

OrcaWin merged 1 commit into
mainfrom
ci/layout-oracle-hosted

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 0

Summary

  • Drops fast_runners: true from the PR layout_oracle call, so its build and its three spec jobs run on free ubuntu-24.04 instead of Blacksmith 8-vCPU (build) and 4-vCPU (specs).
  • The layout oracle was the largest remaining Blacksmith Linux cost: $5.4 of $12.2 between 04:35 and 06:45 UTC on Oct 29, about $0.12 per run.
  • It adds about 4 jobs per PR to the hosted pool. In the same window, hosted concurrency peaked at 346 of 1,000 jobs (243 on Linux), with a 95th-percentile queue wait of 5s.

Verification

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The change shifts a bounded set of PR layout-oracle jobs onto shared hosted Linux capacity.

The PR appears safe to merge, with a non-blocking gap in the test that protects runner costs.

Findings

  1. P2 Paid runners can return unnoticed ▶

Summary

Moves the PR layout gate to free GitHub-hosted runners by removing fast_runners: true.

  • The PR layout oracle runs on free hosted Linux runners.

Reviews (1) · Last reviewed commit: "ci: run the layout oracle gate on free h..." · Reviewed by Greptile

Comment on lines +271 to +272
// Both lanes run on free hosted runners.
expect(prWorkflow.jobs.layout_oracle.with.fast_runners).toBeUndefined()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Paid runners can return unnoticed

The updated test checks that fast_runners is omitted, but not that omission selects hosted runners. If the default in e2e.yml changes to true, this test still passes while the layout gate returns to paid runners. Also assert that the reusable workflow's fast_runners default is false.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The layout oracle reusable-workflow call no longer passes fast_runners: true. The workflow test now expects that input to be unset. The CI runner documentation describes the hosted-runner policy for PR checks, including the layout oracle and advisory E2E lanes.

Priority: Low

Merge Risk: Low · up to bd9ba

Correct the CI documentation before merging to avoid misleading contributors about gate dependencies and runner platforms.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the main change, motivation, cost impact, and local verification. It does not follow the required template and omits key sections, including ELI5, What Changed, Why, Linked Is… Rewrite the description using the repository template. Add the required section headings, link the applicable issue, state N/A with a reason for Visual Proof if appropriate, document testing and platform coverage, complete the checklists, a…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: moving the layout oracle gate to free hosted runners.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The description explains the main change, motivation, cost impact, and local verification. It does not follow the required template and omits key sections, including ELI5, What Changed, Why, Linked Issue, Visual Proof or N/A, Testing checkboxes, Review, Notes, and Checklist.

Resolution

Rewrite the description using the repository template. Add the required section headings, link the applicable issue, state N/A with a reason for Visual Proof if appropriate, document testing and platform coverage, complete the checklists, and include the required compatibility and review notes.

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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 2


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 38b40e1a-54fc-4dfb-ae14-4cdf4d5c5b34
Commits

Reviewing files that changed from the base of the PR and between 57ff56f and bd9ba14.

Files selected for processing: 3
  • .github/workflows/pr.yml
  • config/scripts/pr-e2e-route-contracts.test.mjs
  • docs/readme/ci-runners.md
Files with no reviewable changes: 1
  • .github/workflows/pr.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Comment thread docs/readme/ci-runners.md
run as 12 shards on `ubuntu-24.04-arm`, which match the old five 8-vCPU
Blacksmith shards; `ORCA_UNIT_FULL_SHARD_COUNT` tunes the count. Preflight (lint
and typecheck) also runs on hosted ARM: shards, packaging and the layout oracle
do not wait for it, so its slower runner stays off the gate's critical path.

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.

Minor · Maintainability & Code Quality · Quick win

Correct the gate critical-path description.

layout_oracle can start without preflight, but the required verify job needs both jobs. A slow or failed preflight still delays or blocks the merge gate. Replace “stays off the gate's critical path” with wording that only describes parallel job start. (raw.githubusercontent.com)

Comment thread docs/readme/ci-runners.md
Blacksmith shards; `ORCA_UNIT_FULL_SHARD_COUNT` tunes the count. Preflight (lint
and typecheck) also runs on hosted ARM: shards, packaging and the layout oracle
do not wait for it, so its slower runner stays off the gate's critical path.
The layout oracle and advisory e2e lanes run on `ubuntu-24.04`.

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.

Minor · Maintainability & Code Quality · Quick win

Limit the Ubuntu claim to Linux E2E lanes.

The reusable E2E workflow also defines orcad-serve-mode-switch-windows on windows-2022. Its condition can select that advisory lane. Say “Linux advisory e2e lanes” or document the Windows exception. (raw.githubusercontent.com)

@OrcaWin
OrcaWin merged commit 4cee4b1 into main Oct 29, 2026
47 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