Skip to content

Start/stop the CI k8s sandbox for regional sandbox labels too (ENG-221179) - #37

Merged
asheth-eightfold merged 2 commits into
masterfrom
asheth/sandbox-k8s-regions
Nov 16, 2026
Merged

asheth-eightfold merged 2 commits into
masterfrom
asheth/sandbox-k8s-regions

Conversation

@asheth-eightfold

@asheth-eightfold asheth-eightfold commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #36. That PR dispatches EightfoldAI/vscode's sandbox.yml only for the plain sandbox label. This one does the same for the regional sandbox labels, so needs_sandbox:ap / :wu / … start and stop a CI k8s sandbox in that region.

  • sandbox_k8s_request <start|stop> [region]: a region is passed as the needs_sandbox suffix (eu, ca, gov, uae, wu, ap) in the dispatch's region input.
  • Every regional branch of needs_sandbox:<region> and of stop_sandbox calls it with its region.
  • No region list here. Which regions have a CI k8s sandbox is sandbox.yml's own region options in vscode: it refuses any other (HTTP 422, e.g. uae), and || true keeps the action green. A region joins by being added there, with no change in this repo.
  • Unchanged:
    • the plain sandbox dispatch: same payload, no region key;
    • everything when SANDBOX_K8S_TRIGGER isn't "true" (vscode's MIGRATION_STATUS_SANDBOX is off today);
    • the labels themselves, which still go to the fleet as before.
SANDBOX_K8S_TRIGGER call dispatched
true start (US) {"pr","action":"start"}, as #36
true start wu / stop wu …,"region":"wu"
true start uae …,"region":"uae" → 422 from sandbox.yml, ignored
false any nothing

Checked with the function sourced alone and curl/jq stubbed (bash -n clean).

Order

  1. merge this (inert while MIGRATION_STATUS_SANDBOX is off; a regional dispatch gets 422 until the vscode side adds the region input);
  2. merge EightfoldAI/vscode#122690, which adds sandbox.yml's region input (us, ap, eu, ca, gov, wu);
  3. MIGRATION_STATUS_SANDBOX → shadow turns on US and every region together.

JIRA: ENG-221179

🤖 Generated with Claude Code

…sted region (ENG-221179)

needs_sandbox:<region> and stop_sandbox now also dispatch sandbox.yml for the
regional labels (sandbox 🇪🇺, 🍁, 🏛️,
🇦🇪, 🇺🇸, 🇦🇺), passing the region as the
needs_sandbox suffix (eu, ca, gov, uae, wu, ap). A region is dispatched only when
it is listed in SANDBOX_K8S_REGIONS, set by the calling workflow, so a region joins
CI k8s by being listed there. The plain `sandbox` dispatch is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

…des, no SANDBOX_K8S_REGIONS (ENG-221179)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@asheth-eightfold asheth-eightfold changed the title Start/stop the CI k8s sandbox for regional sandbox labels too, per listed region (ENG-221179) Start/stop the CI k8s sandbox for regional sandbox labels too (ENG-221179) Nov 16, 2026
@asheth-eightfold
asheth-eightfold merged commit 73a3f4c into master Nov 16, 2026
1 check 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