Skip to content

ci: route heavy jobs through a vendored runner-select - #28

Merged
mikehardy merged 1 commit into
mainfrom
ci/mellifera-runner-select
Nov 20, 2026
Merged

mikehardy merged 1 commit into
mainfrom
ci/mellifera-runner-select

Conversation

@mikehardy

@mikehardy mikehardy commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Vendors actions/runner-select at 33c44bc27724e71095a11d15d4aa145ba4890c53 under .github/actions/runner-select. This repository is public and invertase/mellifera is private, so the workflow cannot uses: that action. This copy is temporary until a public pin exists.
  • Adds a route-* job in front of the Linux, Android-emulator, and macOS jobs. class is other or macos. default-runs-on is the hosted label that job uses today.
  • mode is ${{ vars.RUNNER_SELECT_MODE }}. That org variable is off, so the tested job still runs on the hosted label. Fork pull requests do not receive MELLIFERA_PLACEMENT_TOKEN; with mode off they never call placement.

Test plan

  • Confirm a pull request workflow run shows the route job succeeding and the tested job on the same hosted runner as before (ubuntu-latest, ubuntu-24.04, macos-15, macos-26, or xcode-27).
  • Leave RUNNER_SELECT_MODE at off until this repository has an overflow scale set for each label these jobs can spill to. Nested-virt jobs read vars.MELLIFERA_PLACEMENT_URL_LINUX_NESTED.

@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.36%. Comparing base (929a0ac) to head (936c1d7).

Additional details and impacted files
@@            Coverage Diff            @@
##               main      #28   +/-   ##
=========================================
  Coverage     63.36%   63.36%           
  Complexity       15       15           
=========================================
  Files            23       23           
  Lines          1092     1092           
  Branches        251      251           
=========================================
  Hits            692      692           
  Misses          311      311           
  Partials         89       89           
Flag Coverage Δ
e2e-android 81.70% <ø> (ø)
e2e-ios-dynamic 87.50% <ø> (ø)
e2e-ios-static 63.07% <ø> (ø)
unit-js 60.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mikehardy
mikehardy force-pushed the ci/mellifera-runner-select branch 5 times, most recently from e7ed5ca to 3e02617 Compare November 19, 2026 12:38

@russellwheatley russellwheatley left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The route job never loads the vendored action. There's no checkout before uses: ./.github/actions/runner-select, so every route job logs Can't find 'action.yml' and continue-on-error hands off to the fallback step (see route-linux in run 44525714174, reason=route-fallback). It's green now because mode is off, but I think once mode flips nothing would ever spill. Maybe add a sparse checkout first:

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
  with:
    sparse-checkout: .github/actions/runner-select
    persist-credentials: false

Might also be worth having the fallback step emit a ::warning:: so a silent fallback shows up in the run summary.

Smaller things:

  • secrets: inherit passes every secret to the route workflow. Could pass just MELLIFERA_PLACEMENT_TOKEN.
  • Body says the pin is b377a9d, VENDORED_FROM says 33c44bc. Files match 33c44bc, so the body needs updating.
  • Body mentions MELLIFERA_PLACEMENT_URL_LINUX_NESTED_VIRT, but the workflow reads MELLIFERA_PLACEMENT_URL_LINUX_NESTED.

@mikehardy
mikehardy force-pushed the ci/mellifera-runner-select branch from d372e6d to 947fd8a Compare November 19, 2026 19:53
Public workflows cannot use the private mellifera action. This copies the pinned action and routes each consuming job through one reusable workflow. The route publishes the decision, falls open to the hosted label when select cannot run, and receives only the placement token. E2e routes wait until unit succeeds.
@mikehardy
mikehardy force-pushed the ci/mellifera-runner-select branch from 947fd8a to 936c1d7 Compare November 19, 2026 20:01
@mikehardy

Copy link
Copy Markdown
Collaborator Author

All fixed up now

@russellwheatley russellwheatley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@mikehardy
mikehardy merged commit 8c9aab1 into main Nov 20, 2026
14 checks passed
@mikehardy
mikehardy deleted the ci/mellifera-runner-select branch November 20, 2026 12:36
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