Skip to content

Select execution runtimes on each worker - #78

Merged
sj26 merged 4 commits into
mainfrom
runner-runtime-selection
Nov 17, 2026
Merged

sj26 merged 4 commits into
mainfrom
runner-runtime-selection

Conversation

@sj26

@sj26 sj26 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🤖

Why

Import and execution currently select runtimes differently: import accepts version or binary, but execution requires a platform, URL and digest selected by its caller. This couples generated jobs to importer-side executable selection and setup assumptions.

What

Share the existing runtime selector between import and execution. Each host selects its own asset; absent version or latest uses the Agent API release endpoint. Complete exact-version caches need no lookup, including after a clean checkout.

plugins:
  - github-actions#<plugin-ref>:
      version: v0.133.0
      run:
        plan:
          digest: sha256:<plan-digest>
          producer: <importer-job-uuid>

A binary map can instead provide HTTPS URLs for linux/amd64, linux/arm64, darwin/arm64 and windows/amd64, with optional #sha256= fragments and no release lookup. Windows remains execution-only.

Use the worker's NSC_INSTANCE_ID for Namespace setup rather than importer routing. Keep hosted-tool-cache as an explicit top-level option, and preserve published legacy runtime/event readers and their setup options.

Companion: buildkite-gha#682. Release this consumer before the companion CLI.

Share release and binary selectors between import and run. Keep legacy readers, derive Namespace setup from the worker, and retain exact-version caches.

Amp-Thread-ID: https://ampcode.com/threads/T-3784262c-5fe0-4e2f-99ad-8443940d75a8
Co-authored-by: Amp <amp@ampcode.com>
@sj26
sj26 requested a review from a team as a code owner November 16, 2026 06:33
sj26 and others added 3 commits November 16, 2026 06:37
Count real acquisition requests during same-worker replay without logging credentials. Keep this opt-in proof distinct from unchanged-emission and scheduler retry evidence.

Amp-Thread-ID: https://ampcode.com/threads/T-3784262c-5fe0-4e2f-99ad-8443940d75a8
Co-authored-by: Amp <amp@ampcode.com>
Use independent failure controls, preserve Python arguments with PowerShell 7, and exercise absent-version and optional custom-digest selectors.

Amp-Thread-ID: https://ampcode.com/threads/T-3784262c-5fe0-4e2f-99ad-8443940d75a8
Co-authored-by: Amp <amp@ampcode.com>
@sj26
sj26 merged commit 9d38336 into main Nov 17, 2026
12 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