Skip to content

Try the dind-small pool for the staging ship job - #88

Merged
aterga merged 1 commit into
mainfrom
claude/staging-dind-small-runner-d74205
Jul 27, 2026
Merged

aterga merged 1 commit into
mainfrom
claude/staging-dind-small-runner-d74205

Conversation

@aterga

@aterga aterga commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

The staging ship job has never run. Since #84 merged it has been queued with runner_id: 0 — no runner ever claimed it.

The cause is a wrong assumption about label semantics, mine. ship_runs_on was '["self-hosted","linux"]', on the reasoning that both labels are applied automatically to every Linux self-hosted runner and so the spec is maximally permissive. That is true of classic self-hosted runners. The org's capacity is ARC-managed pools, and an ARC runner scale set is addressed by its name alone — it does not carry the default self-hosted / linux / x64 labels at all. So the spec selected nothing that exists, and the job sat.

This points ship at dind-small, one of the org-wide pools (Kubernetes, dfinity-ops/k8s, on the dm1-idx1 / zh1-idx1 bare-metal clusters, owned by @dfinity-ops/idx).

This is a test, and it may well fail. Whether those pods can route to the staging host's RFC1918 address is unconfirmed — the pools live in IDX's clusters, not the imcp2 VPC. A failure at the SSH step is a useful result rather than a setback: it answers the question quickly and legibly instead of leaving a queue that never drains, and it tells us the shared pools cannot serve a private-network target, so the build/ship split needs a runner inside the VPC before the host can drop public SSH.

Related issues

None. Context: #84 introduced the build/ship split and the on-prem ship target; #85 and #86 are the other follow-ups from that review.

Changes

  • deploy.yml: ship_runs_on becomes '"dind-small"', with a comment recording why the previous value could never match and that pod-to-VPC reachability is the open question this is probing.
  • Correct the DEPLOY_HOST secret note in the same file's header. It asserted the value must be the host's private address because ship runs on-prem over the VPN; which address is correct actually depends on where ship ends up running, so it now points at that decision instead of pre-empting it.

Testing

  • deploy.yml parses as YAML, and ship_runs_on parses as JSON to the bare string dind-small — the same single-label shape build_runs_on already uses, which fromJSON accepts as a runs-on value.
  • The deploy itself is the test. It cannot be exercised before merge; the workflow only runs on a push to main.
  • Not run: cargo build / cargo test / clippy — no Rust source changed.
  • Not run: npm test --prefix monitoring/mcp-status — no dashboard code changed; the workflow runs it anyway.

Checklist

  • I have read the Contributing guidelines.
  • Docs (README / comments) updated for any user-visible change.
  • No secrets, credentials, or internal-only information are included.

Notes for merging

The stuck run has to be cancelled first. deploy.yml uses concurrency: deploy-staging with cancel-in-progress: false, and run 30298700705 still holds the group. It can never make progress — it is pinned to the workflow version with the unsatisfiable labels — so merging this without cancelling it just adds a third run to the queue behind it. (Run 30300549759, pending from #86's merge, will be superseded automatically; GitHub keeps only one pending run per group.)

Production is deliberately untouched. deploy-release.yml in #81 keeps a ship_runs_on that matches nothing, so no release tag can land on an arbitrary pool while reachability is unsettled. If dind-small does work here, whether production should share a multi-tenant pool — the production SSH key would live on it — is a separate decision, not something to inherit from a staging experiment.


Generated by Claude Code

["self-hosted","linux"] matched no runner. Those two labels are applied
automatically to classic self-hosted runners, but the org's capacity is
ARC-managed pools, and a runner scale set is addressed by its name alone and
carries none of the default labels. So the spec was unsatisfiable, and the
first staging deploy after the on-prem switch has been queued since 19:38Z
without a runner ever claiming it.

Point ship at dind-small, one of the org-wide pools. Whether its pods can
reach this host on its RFC1918 address is unconfirmed and is exactly what
this run answers. A failure at the SSH step is a useful result: it says the
shared pools cannot serve a private-network target, and the build/ship split
needs a runner inside the VPC before the host can drop public SSH.

Left production alone. Its ship_runs_on stays unmatched, so no release tag
can deploy to an arbitrary pool while this is still a question — and putting
the production SSH key on shared multi-tenant infrastructure is a decision to
take deliberately, not to inherit from a staging experiment.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01R8ZshwKmjD5fZ4Hs9dS6zh
@aterga
aterga marked this pull request as ready for review July 27, 2026 21:35
@aterga
aterga requested a review from a team as a code owner July 27, 2026 21:35
Copilot AI review requested due to automatic review settings July 27, 2026 21:35
@aterga
aterga merged commit df1fd74 into main Jul 27, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the staging deploy workflow so the ship job can be scheduled by targeting an ARC runner scale set name directly, addressing a runner-label mismatch that left the job queued indefinitely.

Changes:

  • Update DEPLOY_HOST secret guidance to depend on where the ship job runs (public vs private reachability).
  • Change ship_runs_on for staging to target the dind-small ARC pool and document the label/scale-set mismatch that caused the stuck queue.
  • Add contextual notes explaining that this change is an experiment to test reachability to the staging host’s RFC1918 address.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +47 to +51
# the ship step fails at SSH rather than hanging, which is the point: a fast,
# legible answer instead of a queue that never drains. Should it fail, the
# build/ship split still needs a runner inside the VPC, and the host cannot drop
# public SSH until one exists.
ship_runs_on: '"dind-small"'
@aterga aterga mentioned this pull request Jul 28, 2026
6 of 9 tasks
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.

3 participants