Skip to content

ci(relay-staging): split the staging load across two hosted runners - #27402

Merged
Jinwoo-H merged 1 commit into
mainfrom
relay-staging-load-two-runners
Oct 11, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
relay-staging-load-two-runners

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​21

Summary

The staging load workflow can now run the same generator on two GitHub-hosted runners at once (load-runners=2). Each runner runs load-shards generators, and the shard numbering continues across the two machines, so the hosts and principals don't overlap.

Why

The step-5 Asia test needs about 2,840 hosts on the Asia cell. One hosted runner stopped at 2,048: each of its 4 generator processes stalled at exactly 512 open connections, and every connection after that timed out while opening (run 38117848394, control_open_timeout × 1,071 per shard). That looks like a per-machine outbound limit to a single destination, not a relay limit. Two machines get past it without changing the generator.

load-runners=2 is refused for the self-hosted Asia runner, because a second job there would just wait for the first. With fail-fast: false, one runner failing doesn't stop the other runner's half of the load.

Test plan

  • actionlint: no new findings
  • Staging run with load-region=asia-east2-hosted, load-runners=2, load-shards=4, 355 controls per shard reaches 2,840 on c4

One hosted runner tops out near 2,048 connections to one cell (4 shards each stalled at 512 with
control_open_timeout), short of the 2,840 the Asia flip-back test needs.
@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

📝 Walkthrough

Walkthrough

The staging load workflow adds a load-runners choice with values of one or two. It configures a job matrix for the selected count and validates the runner count and region combination. Generator shard counts and indices now span all runners. Load report artifact names include the matrix runner index.


Priority: ➖ Normal

Merge Risk: 🟡 Moderate · up to d623e

The new two-runner Asia hosted mode can fail half its generators before they create load, leaving the requested staging run incomplete. Reconcile token and workload shard indexing before merging.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check Warning The description explains the change, reason, and test plan, but it omits several template sections, including the linked issue, visual-proof statement, checklist, and review notes. The staging validat… Add the required linked issue or confirm the maintainer exception. Add N/A with a reason for visual proof. Complete the testing, review, notes, agent-boundary, and checklist sections. Record the result of the two-runner staging test, or e…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: splitting staging load execution across two hosted runners.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

Full details: Description check

Explanation

The description explains the change, reason, and test plan, but it omits several template sections, including the linked issue, visual-proof statement, checklist, and review notes. The staging validation also remains unchecked.

Resolution

Add the required linked issue or confirm the maintainer exception. Add N/A with a reason for visual proof. Complete the testing, review, notes, agent-boundary, and checklist sections. Record the result of the two-runner staging test, or explain why it is not available.


  • Fix all pre-merge checks with AI
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 01fcda41-202f-4d7f-89c5-20522d414621
📥 Commits

Reviewing files that changed from the base of the PR and between b241ba5 and d623ed4.

📒 Files selected for processing (1)
  • .github/workflows/cloud-prove-relay-asia-staging.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Comment on lines +473 to 476
--shard-count "$((LOAD_SHARDS * LOAD_RUNNERS))" \
--shard-index "$((LOAD_RUNNER_INDEX * LOAD_SHARDS + shard))" \
"${args[@]}" \
> "${load_dir}/shard-${shard}.jsonl" &

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy lift

🔎 Supported by static analysis

🏁 Script executed:

set -eu
printf '%s\n' '--- workflow invocation ---'
nl -ba .github/workflows/cloud-prove-relay-asia-staging.yml | sed -n '450,485p'
printf '%s\n' '--- generator option parsing and token flow ---'
nl -ba cloud/dev/scripts/relay-load-profile.mjs | sed -n '55,90p;145,210p;255,285p'
printf '%s\n' '--- token request validation ---'
nl -ba cloud/dev/scripts/github-smoke-token.mjs | sed -n '20,70p'
printf '%s\n' '--- related option/usages ---'
rg -n -F --glob '*.mjs' --glob '*.yml' -- '--relay-asia-load-principals' cloud .github
rg -n -F --glob '*.mjs' --glob '*.yml' -- 'relayAsiaLoad' cloud .github

Repository: stablyai/orca

Length of output: 15589


🏁 Script executed:

set -eu
nl -ba cloud/dev/scripts/load-relay-controls.mjs | sed -n '145,205p;375,405p'

Repository: stablyai/orca

Length of output: 4247


Keep workload shard indexes separate from token shard indexes.

With load-runners=2 and load-shards=4, runner 1 receives indexes 4 through 7. load-relay-controls.mjs forwards each index in the relayAsiaLoad token request, but github-smoke-token.mjs rejects values above 3. Token acquisition runs before control-peer creation, so all four runner-1 generators can fail.

Keep the global workload indexes 4 through 7. Update the relay-load token contract or use a supported token-index mapping that stays within 0 through 3 without merging workload or principal allocations. Do not replace the workflow index with the local loop index or apply modulo without a contract that guarantees distinct principal allocation.

@Jinwoo-H
Jinwoo-H merged commit 305474c into main Oct 11, 2026
22 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