Skip to content

ci: route the Linux x86 Lint call to the forge pool through pool-select - #294

Merged
zackees merged 1 commit into
mainfrom
ci/forge-pool-select
Nov 21, 2026
Merged

zackees merged 1 commit into
mainfrom
ci/forge-pool-select

Conversation

@zackees

@zackees zackees commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Routes the Linux x86 Lint call (format, Clippy, Dylint; 6-11 min hosted) to the self-hosted forge pool (the Dell hosts, FastLED lane ubuntu-2404, Ubuntu 24.04 image) when it has room.

How it works:

  • A new pool job in linux-x86-lint.yml runs forge-ci/ci.yml's actions/pool-select (pinned to a36bc81, ci.yml#550) on forge-quick. It reads the pool's tokenless status endpoint (https://signal.forge-ci.com/v1/pool), so this repository holds no probe secret.
  • It runs only when the repository variable FORGE_POOL_LABELS is set and the event is trusted: push, workflow_dispatch, or a pull request from this repository. A fork pull request never reaches forge-quick or the pool.
  • _lint.yml takes the answer as a new optional pool-runs-on input. runs-on stays the hosted label and still names caches and artifacts. When the selector is skipped or fails, or the pool has no idle runner, Lint runs on ubuntu-24.04 as before.
  • Kill switches: unset FORGE_POOL_LABELS (this repository) or the org variable FORGE_QUICK_LABELS.

Until FORGE_POOL_LABELS is set, this PR changes nothing at run time.

Proof on the pool (RUN-005): PROOF_RUNS

Part of the forge pool rollout (forge-ci/signal.forge-ci.com loops/dynamic-pool, M5).

Summary by CodeRabbit

  • Chores
    • Updated automated lint runs to use an eligible hosted runner when available, while preserving the existing runner as a fallback.
    • Lint runs for forked pull requests and other unsupported events continue using the standard runner.

A selector job runs forge-ci/ci.yml's pool-select on forge-quick and picks
the self-hosted Dell pool (repository variable FORGE_POOL_LABELS, Ubuntu
24.04 lane) when it has an idle matching runner and the event is trusted
(push, workflow_dispatch, or a same-repository pull request). It reads the
pool's tokenless status endpoint, so the repository holds no probe secret.
_lint.yml takes the choice as a new optional pool-runs-on input and keeps
runs-on for cache and artifact names. Fork pull requests, an unset variable
and any selector error run hosted.

Ci-Attestation: {"at":1795257075,"gate":"general/linux-x64/lint","host":"linux-x86_64","key":"f58788af9e849b79b399e3bc263d9e882f6416d662d2102d44e6d0fd13487e19","lane":"lint","parents":["a52f04360994f5870c6c4f0919c41869041b03b0"],"secs":4903,"stamp":"690e4da9862646d560da66a56bbac3d2","tree":"1691de269a3cc9237e979b97d79eb1ee20829216","v":1,"via":"run"}
Ci-Attestation: {"at":1795289164,"gate":"python/linux-x64/test","host":"linux-x86_64","key":"cfecc5e03d2ff1c986d574cb791aab87bf3090791759f3f58803596c7d336826","lane":"test","parents":["a52f04360994f5870c6c4f0919c41869041b03b0"],"secs":234,"stamp":"f0e87ff5fb10cc0c2e2362274ad73768","tree":"8b3c3c6e5c1b022f098a13bbe8b82b9e1e1ac37b","v":1,"via":"run"}
Ci-Attestation: {"at":1795257075,"gate":"rust/all/fmt","host":"linux-x86_64","key":"f58788af9e849b79b399e3bc263d9e882f6416d662d2102d44e6d0fd13487e19","lane":"lint","parents":["a52f04360994f5870c6c4f0919c41869041b03b0"],"secs":4903,"stamp":"c934c5fa91d0aa673dc99b7fee149a89","tree":"1691de269a3cc9237e979b97d79eb1ee20829216","v":1,"via":"run"}
Ci-Attestation: {"at":1795257075,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"f58788af9e849b79b399e3bc263d9e882f6416d662d2102d44e6d0fd13487e19","lane":"lint","parents":["a52f04360994f5870c6c4f0919c41869041b03b0"],"secs":4903,"stamp":"0bf5b139481336096851ab78044a6e91","tree":"1691de269a3cc9237e979b97d79eb1ee20829216","v":1,"via":"run"}
Ci-Attestation: {"at":1795257075,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"f58788af9e849b79b399e3bc263d9e882f6416d662d2102d44e6d0fd13487e19","lane":"lint","parents":["a52f04360994f5870c6c4f0919c41869041b03b0"],"secs":4903,"stamp":"6d822fb6f6fe1f4bc921b72ce526cd14","tree":"1691de269a3cc9237e979b97d79eb1ee20829216","v":1,"via":"run"}
Ci-Attestation: {"at":1795289164,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"cfecc5e03d2ff1c986d574cb791aab87bf3090791759f3f58803596c7d336826","lane":"test","parents":["a52f04360994f5870c6c4f0919c41869041b03b0"],"secs":234,"stamp":"dbfc10c81b06403452800150bae56c8d","tree":"8b3c3c6e5c1b022f098a13bbe8b82b9e1e1ac37b","v":1,"via":"run"}
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The reusable lint workflow accepts an optional pool runner value. The Linux x86 workflow conditionally selects a runner for eligible events and passes the selection to the reusable workflow when the pool job succeeds.

Changes: Lint runner selection

Layer / File(s) Summary
Reusable lint runner input and selection
.github/workflows/_lint.yml
The reusable workflow adds the optional pool-runs-on input. When it is nonempty, the lint job uses its parsed JSON value; otherwise, the job uses runs-on.
Pool selection and lint invocation
.github/workflows/linux-x86-lint.yml
The workflow adds a runner-selection job for configured pools on eligible events. It tolerates selector errors and defaults its output to ubuntu-24.04. The lint call passes the selected value when the pool job succeeds, and an empty value otherwise.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant PoolJob
  participant CallJob
  participant LintWorkflow
  PoolJob-->>CallJob: Selected runner value on success
  CallJob->>LintWorkflow: Pass selected value or empty value
  LintWorkflow->>LintWorkflow: Choose pool value or default runner
Loading
Merge Risk: Low · up to 1a9c4

The lint job can be routed to the self-hosted pool even after FORGE_QUICK_LABELS is cleared, which contradicts the documented way to disable it. A misconfigured FORGE_QUICK_LABELS value could also delay lint by up to 24 hours before the hosted fallback runs. Both are small, configuration-dependent fixes that can be made before or shortly after merge.

- [ ] 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

@zackees
zackees merged commit 9e92432 into main Nov 21, 2026
37 of 38 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