[31.x] Backport ci: inline runner selection #36671

Manually merged
fanquake merged 2 commits from backport_inline_runner into 31.x 2026-10-26 22:08:15 +00:00 AGit
fanquake commented 2026-10-26 19:54:20 +00:00 (Migrated from github.com)

Backports

Backports * #35441 * #35571
DrahtBot commented 2026-10-26 19:54:28 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK willcl-ark

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36671 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36671.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36671#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [willcl-ark](https://github.com/bitcoin/bitcoin/pull/36671#pullrequestreview-5658623189) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--5faf32d7da4f0f540f40219e4f7537a3-->
willcl-ark (Migrated from github.com) approved these changes 2026-10-26 20:36:54 +00:00
willcl-ark (Migrated from github.com) left a comment

ACK 8ce6136fb7

Will prevent this 31.x branch getting hung up on a GHA determine-runners job.

We'll restore (likely useless) caches, and never save them. But this is OK for this type of branch.

Backports look clean.

ACK 8ce6136fb704391727e270b3e3ca0ae784f43cf7 Will prevent this 31.x branch getting hung up on a GHA `determine-runners` job. We'll restore (likely useless) caches, and never save them. But this is OK for this type of branch. Backports look clean.
First-time contributor

Base: 241537a697561d1748909744069f1382aa15827f
Head: 8ce6136fb704391727e270b3e3ca0ae784f43cf7

Backport verdict: Defective

Both upstream changes are represented in the target commits, and the second commit restores the Docker cache-provider inputs omitted by the first. However, the resulting workflow leaves the checked-in fork instructions pointing to a removed variable, so the target tree retains an inaccurate customization instruction.

Evidence:

  • The packet lists both source commits with no missing commits: 726e196ef26490115edc595973f6703e61e1295b for #35441 and b552f1713add4d14c8b940a8175b6bbe19bea846 for #35571. The target commits carry matching Rebased-From trailers, and bounded inspection of both source patches confirms the intended workflow changes.
  • The target workflow directly selects runners and cache providers; its provider expressions use the checked-in warp and gha paths, and the matrix retains the explicit gha provider override for 32-bit ARM.
  • The second source commit repairs the three Configure Docker provider inputs left unchanged by #35441; the target has corresponding provider expressions at .github/workflows/ci.yml lines 354, 543, and 587.
  • No release-note entry is included. The changes are confined to CI workflow behavior and do not alter user-facing Bitcoin Core functionality.

Required fixes:

  • Update ci/README.md so fork maintainers are not instructed to patch the removed REPO_USE_WARP_RUNNERS variable.
Findings

Suggestions

Update the forked-runner instructions (.github/workflows/ci.yml:32, head)

The workflow now selects runners based directly on github.repository and no longer reads REPO_USE_WARP_RUNNERS. As a result, the variable patch described in ci/README.md will not enable Warp runners in a fork. Please update the instructions to describe the workflow edits required by this version.

Alternatives

Repository-level CI provider setting. Use a repository-level Actions variable to choose the Warp or GitHub-hosted runner and matching cache provider, while retaining the matrix-specific gha override. Benefit: Keeps jobs independent of the selector job and lets a fork opt into Warp through repository configuration instead of editing multiple workflow expressions. Trade-off: Requires a repository administrator to configure the setting and keep runner, cache-provider, and clear-files selection consistent; contributors without settings access cannot opt in through a workflow patch alone. Unresolved: Whether 31.x forks need this opt-in path or prefer to patch their workflow. Source 1

Full review report

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:474f3fe8bf9ec967121fff02f4c480bd21f6f0b3ff11b4f62ff485b84f8bdd1f:86b9a0e22bd2eb7ab1b7eb621b9854197174a699ec1bc40495f2801bb5137d33 --> Base: `241537a697561d1748909744069f1382aa15827f` Head: `8ce6136fb704391727e270b3e3ca0ae784f43cf7` <!-- ralph-case:3e68bc892b6c9088a205f4a3c8df80d22911121056b943992513b490d378dabc --> Backport verdict: **Defective** Both upstream changes are represented in the target commits, and the second commit restores the Docker cache-provider inputs omitted by the first. However, the resulting workflow leaves the checked-in fork instructions pointing to a removed variable, so the target tree retains an inaccurate customization instruction. Evidence: - The packet lists both source commits with no missing commits: `726e196ef26490115edc595973f6703e61e1295b` for #35441 and `b552f1713add4d14c8b940a8175b6bbe19bea846` for #35571. The target commits carry matching `Rebased-From` trailers, and bounded inspection of both source patches confirms the intended workflow changes. - The target workflow directly selects runners and cache providers; its provider expressions use the checked-in `warp` and `gha` paths, and the matrix retains the explicit `gha` provider override for 32-bit ARM. - The second source commit repairs the three `Configure Docker` provider inputs left unchanged by #35441; the target has corresponding provider expressions at `.github/workflows/ci.yml` lines 354, 543, and 587. - No release-note entry is included. The changes are confined to CI workflow behavior and do not alter user-facing Bitcoin Core functionality. Required fixes: - Update `ci/README.md` so fork maintainers are not instructed to patch the removed `REPO_USE_WARP_RUNNERS` variable. ##### Findings **Suggestions** **Update the forked-runner instructions** (.github/workflows/ci.yml:32, head) The workflow now selects runners based directly on `github.repository` and no longer reads `REPO_USE_WARP_RUNNERS`. As a result, the variable patch described in `ci/README.md` will not enable Warp runners in a fork. Please update the instructions to describe the workflow edits required by this version. ##### Alternatives **Repository-level CI provider setting.** Use a repository-level Actions variable to choose the Warp or GitHub-hosted runner and matching cache provider, while retaining the matrix-specific `gha` override. Benefit: Keeps jobs independent of the selector job and lets a fork opt into Warp through repository configuration instead of editing multiple workflow expressions. Trade-off: Requires a repository administrator to configure the setting and keep runner, cache-provider, and `clear-files` selection consistent; contributors without settings access cannot opt in through a workflow patch alone. Unresolved: Whether 31.x forks need this opt-in path or prefer to patch their workflow. [Source 1](https://github.com/bitcoin/bitcoin/pull/35441) [Full review report](<https://review.fish.foo/traces/36671-8ce6136fb704391727e270b3e3ca0ae784f43cf7-1430-4.html>)
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36671
No description provided.