Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions .github/workflows/benchmark-multinode-tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,21 +192,12 @@ jobs:
runs-on: >- # zizmor: ignore[self-hosted-runner] GPU Slurm runners by design; callers gate fork PRs behind maintainer-applied sweep labels
${{ fromJSON(
vars.PRIORITY_SCHEDULER_ENABLED == 'true' &&
(
vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' &&
format(
'["self-hosted",{0},{1},{2},{3}]',
toJSON(inputs.runner),
toJSON(format('nodes:{0}', inputs.node-count)),
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
) ||
format(
'["self-hosted",{0},{1},{2}]',
toJSON(inputs.runner),
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
)
format(
'["self-hosted",{0},{1},{2},{3}]',
toJSON(inputs.runner),
toJSON(format('nodes:{0}', inputs.node-count)),
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
) ||
format('[{0}]', toJSON(inputs.runner))
) }}
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/benchmark-tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,21 +166,12 @@ jobs:
runs-on: >- # zizmor: ignore[self-hosted-runner] GPU Slurm runners by design; callers gate fork PRs behind maintainer-applied sweep labels
${{ fromJSON(
vars.PRIORITY_SCHEDULER_ENABLED == 'true' &&
(
vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' &&
format(
'["self-hosted",{0},{1},{2},{3}]',
toJSON(inputs.runner),
'"nodes:1"',
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
) ||
format(
'["self-hosted",{0},{1},{2}]',
toJSON(inputs.runner),
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
)
format(
'["self-hosted",{0},{1},{2},{3}]',
toJSON(inputs.runner),
'"nodes:1"',
toJSON(format('ci-job-{0}-{1}', inputs.priority, inputs.queue-token)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
) ||
format('[{0}]', toJSON(inputs.runner))
) }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/collectivex-sweep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ jobs:
${{ fromJSON(format('["self-hosted",{0}{1}{2}]',
toJSON(matrix.runner),
matrix.runner_partition != '' && format(',{0}', toJSON(matrix.runner_partition)) || '',
vars.PRIORITY_SCHEDULER_ENABLED == 'true' && format(',{0}{1},{2}',
vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' && format('{0},', toJSON(format('nodes:{0}', matrix.nodes))) || '',
vars.PRIORITY_SCHEDULER_ENABLED == 'true' && format(',{0},{1},{2}',
toJSON(format('nodes:{0}', matrix.nodes)),
toJSON(format('ci-job-{0}-{1}', matrix.priority, matrix.queue-token)),
toJSON(format('ci-attempt-{0}', github.run_attempt))) || '')) }}
name: p${{ matrix.priority }} | CollectiveX ${{ matrix.id }}
Expand Down
33 changes: 10 additions & 23 deletions .github/workflows/profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,29 +192,16 @@ jobs:
runs-on: >- # zizmor: ignore[self-hosted-runner] GPU Slurm runners by design; workflow_dispatch only
${{ fromJSON(
vars.PRIORITY_SCHEDULER_ENABLED == 'true' &&
(
vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' &&
format(
'["self-hosted",{0},{1},{2},{3}]',
toJSON(matrix.config.runner),
toJSON(format('nodes:{0}', matrix.config['node-count'])),
toJSON(format(
'ci-job-{0}-{1}',
matrix.config.priority,
matrix.config['queue-token']
)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
) ||
format(
'["self-hosted",{0},{1},{2}]',
toJSON(matrix.config.runner),
toJSON(format(
'ci-job-{0}-{1}',
matrix.config.priority,
matrix.config['queue-token']
)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
)
format(
'["self-hosted",{0},{1},{2},{3}]',
toJSON(matrix.config.runner),
toJSON(format('nodes:{0}', matrix.config['node-count'])),
toJSON(format(
'ci-job-{0}-{1}',
matrix.config.priority,
matrix.config['queue-token']
)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
) ||
format('[{0}]', toJSON(matrix.config.runner))
) }}
Expand Down
33 changes: 10 additions & 23 deletions .github/workflows/speedbench-al.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,29 +174,16 @@ jobs:
runs-on: >- # zizmor: ignore[self-hosted-runner] GPU Slurm runners by design; workflow_dispatch only
${{ fromJSON(
vars.PRIORITY_SCHEDULER_ENABLED == 'true' &&
(
vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' &&
format(
'["self-hosted",{0},{1},{2},{3}]',
toJSON(inputs.runner),
'"nodes:1"',
toJSON(format(
'ci-job-{0}-{1}',
needs.setup.outputs.priority,
needs.setup.outputs.queue-token
)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
) ||
format(
'["self-hosted",{0},{1},{2}]',
toJSON(inputs.runner),
toJSON(format(
'ci-job-{0}-{1}',
needs.setup.outputs.priority,
needs.setup.outputs.queue-token
)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
)
format(
'["self-hosted",{0},{1},{2},{3}]',
toJSON(inputs.runner),
'"nodes:1"',
toJSON(format(
'ci-job-{0}-{1}',
needs.setup.outputs.priority,
needs.setup.outputs.queue-token
)),
toJSON(format('ci-attempt-{0}', github.run_attempt))
) ||
format('[{0}]', toJSON(inputs.runner))
) }}
Expand Down
11 changes: 5 additions & 6 deletions inferencex-e2e/utils/runner_setup/RUNNER_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ Labels can be edited later on the runners settings page without re-registering.

### Dynamic Slurm node leases

The optional node-slot scheduler performs weighted admission across every job
size in one physical Slurm cluster. A job that needs three nodes adds
When `PRIORITY_SCHEDULER_ENABLED=true`, the priority controller performs
weighted admission across every job size in one physical Slurm cluster. Every
priority-scheduled job carries `nodes:N`, so a job that needs three nodes adds
`nodes:3` to its queued `runs-on` labels. `nodes:N` is request metadata for the
trusted priority controller, not a permanent runner capability label.

Expand All @@ -203,10 +204,8 @@ and periodic reconciliation remove orphaned leases. Every managed GPU workflow
must require its unique `ci-job-*` label; a workflow that targets only a generic
hardware label bypasses admission accounting.

Set `NODE_SLOT_SCHEDULER_ENABLED=true` only after the deployed priority
controller supports `nodes:N` and `ci-lease-*`. `PRIORITY_SCHEDULER_ENABLED`
must also remain enabled. If either variable is disabled, workflows omit
`nodes:N` and retain the existing unweighted behavior. The priority score also
If `PRIORITY_SCHEDULER_ENABLED` is disabled, workflows omit `nodes:N`, `ci-job-*`,
and `ci-attempt-*` and target the plain runner label. The priority score also
Comment on lines +207 to +208

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.

🟡 (optional) Once operators delete NODE_SLOT_SCHEDULER_ENABLED as the rollout says, reruns of pre-merge runs and dispatches from unrebased branches queue without nodes:N and never start. Those runs read the old templates, which add nodes:N only when that variable is 'true'. Their fallback array is ["self-hosted",runner,ci-job-*,ci-attempt-*]. AGENTS.md:86 says a job without nodes:N can never be admitted. Fix: keep the variable set to 'true' until no run can still read an old template, and say so in RUNNER_SETUP.md. That means outliving the 30-day rerun window and every branch that still has the gated runs-on.

Why this was flagged

The PR description's rollout says to run gh variable delete NODE_SLOT_SCHEDULER_ENABLED after merge. A rerun of a run started before the merge uses that run's original workflow commit but reads vars when it reruns. In the base benchmark-tmpl.yml and benchmark-multinode-tmpl.yml, and in profile.yml, speedbench-al.yml and collectivex-sweep.yml, the vars.NODE_SLOT_SCHEDULER_ENABLED == 'true' branch is false once the variable is deleted. The || fallback then emits a label list without nodes:N. Manual workflow_dispatch of e2e-tests.yml, profile.yml or speedbench-al.yml from a feature branch cut before this merge hits the same path. AGENTS.md:86 says such a job is ineligible for priority scheduling and labels cannot be added later, so it stays queued until it times out. On the base branch, with the variable left at 'true', these jobs carry nodes:N and get admitted. Nothing in the repo warns operators to wait before deleting the variable.

Verification: Trigger: an operator deletes NODE_SLOT_SCHEDULER_ENABLED as the PR's Rollout section says. AGENTS.md:86 (base, unchanged) says: "A queued job without the label is ineligible for priority scheduling, and labels cannot be added later". The diff also drops the variable from RUNNER_SETUP.md:207-208, so no doc tells operators to keep it until old runs age out.

subtracts `0.001` per additional node so otherwise equal work prefers smaller
allocations without overriding the existing business-priority signals.

Expand Down
Loading