Skip to content

[OSDC] Name the build pod in _linux-build callers - #198705

Closed
huydhn wants to merge 2 commits into
gh/huydhn/65/basefrom
gh/huydhn/65/head
Closed

huydhn wants to merge 2 commits into
gh/huydhn/65/basefrom
gh/huydhn/65/head

Conversation

@huydhn

@huydhn huydhn commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

_linux-build.yml discards a runner input that does not start with l- and
falls back to a default pod, so the EC2 labels its callers pass have not
selected anything since the ARC switch. Three callers also pass an
already-prefixed mt-l- label, which fails the same test while looking
correct -- runner_prefix supplies the prefix, so the label has to be bare.

Rather than start honouring those labels, which would change what 30 builds
run on, each caller now names the pod it already resolves to. For 26 of them
that pod is the input default, so the line is simply dropped rather than
repeating the default; the four arm64 callers name their pod because it
differs.

The default itself was linux.c7i.2xlarge, which resolved the same way; it is
now that pod by name. With every caller resolving to a pod, runs-on collapses
to the prefix plus the runner.

Whether some of these should have the larger box they nominally asked for is
now a visible question rather than one buried in an expression.

No job changes runner.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/198705

Note: Links to docs will display an error until the docs builds have been completed.

❌ You can merge normally! (3 Unrelated Failures), 1 Unclassified Failure

As of commit 38b3dc4 with merge base aa98cb8 (image):

🟡 GREEN LIGHT - OUTDATED (earlier commit) - PR requires human review:

  • Equivalence for in-repo callers holds
    • Every removed runner: value (e.g. linux.r7i.4xlarge, linux.12xlarge.memory) lacks l- and arm64, so the old runs-on fallback already gave l-x86iavx512-8-64
    • The four arm64 callers now name l-arm64g4-16-62, the pod the old contains(inputs.runner, 'arm64') branch picked
  • Shared workflow contract changes
    • _linux-build.yml runs-on stops mapping non-l- labels to a pod and passes inputs.runner through as-is
    • Any caller outside this diff that still passes an EC2 or mt-l- label now targets that label instead of a pod
  • Breadth and open questions
    • About 30 call sites across 20 workflows, including pull.yml and trunk.yml, in one change
    • inductor-perf-test-nightly-h100.yml keeps its memory-intensive runner comment above the deleted runner: line
    • PR body leaves open whether some builds should get the bigger runner they asked for; a reviewer should decide that

reason: not_trivial
Reviewed commit: a79680d (NOT the current head 38b3dc4)

Inference job

🐛 Report a wrong verdict

NEW FAILURES SUPPRESSED BY AI (non-blocking) - The following jobs failed, but the AI CI Advisor judged the failures not to be evidence against this change:

  • operator_benchmark / aarch64-opbenchmark-test / test (cpu_operator_benchmark_short, 1, 1, mt-l-arm64g4-16-62) (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    long_M512_N512_cpu

    AI verdict: AI verdict: not related

    The aarch64 operator-benchmark failure (long_M512_N512_cpu and about 224 other ops IMPROVED, about 2x faster than baseline, plus 2 regressed) was already happening on trunk. Weekly scheduled main runs on 2026-09-13 and 2026-09-20 fail the same way on the same arm64g4 runner type. The suspect only changes build-job runner labels, and for this workflow the build label it sets is the same one that was used before.

    Full reasoning on HUD →

  • operator_benchmark / x86-opbenchmark-test / test (cpu_operator_benchmark_short, 1, 1, mt-l-x86iavx512-48-384) (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    sign__M512_N512_cpu

    AI verdict: AI verdict: not related

    The x86 operator benchmark was already failing the same way on Sep 23, three days before this PR, on unrelated branches (ciflow/op-benchmark/197004 and move_pull_trunk_to_311). Those runs show the same wave of "IMPROVED" results, including sign__M512_N512_cpu at perf≈10.9 against expected=16.56. The suspect only changes build-runner labels in workflow YAML, and neither the x86 build pod nor the test runner actually changes.

    Full reasoning on HUD →

UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@jeanschmidt jeanschmidt 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.

Review summary

🟠 1 major · 🟡 1 minor

  • 🟠 The new l-x86iavx512-8-64 default gives 26 build jobs 8 vCPU / 64 GiB, contradicting the repo's own EC2→ARC sizing table in .github/arc.yaml — .github/workflows/_linux-build.yml:46
  • 🟡 The comment above the H100 perf build still claims a bigger, memory-intensive runner after the runner: input it justified was deleted — .github/workflows/inductor-perf-test-nightly-h100.yml:105
Extended analysis (ai-generated section)

What this changes

Every _linux-build.yml caller now names the ARC pod its build runs on, and runs-on collapses to ${{ inputs.runner_prefix }}${{ inputs.runner }}. The expression it replaces discarded any runner value not starting with l-, so the EC2 labels callers passed had selected nothing since the ARC switch. Twenty-six callers drop the runner: line and fall through to the input default, which becomes l-x86iavx512-8-64; four arm64 callers write l-arm64g4-16-62 because they resolve elsewhere. No job moves pod.

What it gets right

The "no job changes runner" claim survives checking. Every deleted label starts with li, not l-, and contains no arm64, so the old expression already collapsed all 26 to l-x86iavx512-8-64; l-arm64g4-16-62 is exactly what the contains(inputs.runner, 'arm64') branch produced for the four arm64 callers. Deleting an expression that silently substituted a pod for whatever the caller asked for is the right direction, and the mis-sizing it concealed is now a line in a file rather than a branch in a ternary.

Where the risk is

The findings concentrate in two places and share one root. The first is _linux-build.yml:165 and the input declared just above it: six findings land there, and one edit settles them — the description still reads "Label of the runner this job should run on" while the value is now interpolated verbatim and must be a bare pod name, and nothing in the workflow, in actionlint, or in the lint adapters checks it. That six independent passes converged on this one line is itself the signal; the input's accepted vocabulary narrowed and neither the prose nor any guard moved with it.

The second is comment rot: five findings on inductor-perf-test-nightly-h100.yml:103-106 and inductor-perf-test-nightly.yml:88, where blocks written to justify a runner: line now sit above build-environment: and describe nothing.

The root under both is that the build pod bypasses .github/arc.yaml while the test matrix in the same job goes through map_ec2_to_arc.py. That is what makes the default finding matter: arc.yaml maps six of the deleted labels to much larger pods, and deleting the declaration rather than translating it removes the only in-repo record of what these builds were sized for. It is also why the arm64 literals are worth noting — trunk.yml:467 pins the build to the g4 pod while its test matrix still names linux.arm64.m7g.4xlarge, which resolves to g3. The recurring mistake is discarding a declaration instead of translating it, and the orphaned comments compound it by erasing the rationale alongside the label.

Before merge, and after

Before: settle the sizing question the change surfaces. The l-x86iavx512-8-64 default giving 26 builds 8 vCPU and 64 GiB, in _linux-build.yml and its callers, is a per-call-site decision rather than a one-line fix, and the same answer determines whether the orphaned comments in inductor-perf-test-nightly-h100.yml and inductor-perf-test-nightly.yml get deleted or get a pod. Also cheap now: the stale runner description, and the PR body's claim that three callers pass an already-prefixed mt-l- label — no caller does.

After: the enforcement half of the input contract, whether a lint adapter, a guard step, or routing inputs.runner through arc.yaml; and the l-arm64g4-16-62 literal duplicated across four callers with nothing tying it to the table.

Comment thread .github/workflows/_linux-build.yml Resolved
[ghstack-poisoned]
@huydhn huydhn added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 26, 2026
@huydhn

huydhn commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: B200 Smoke Tests / linux-jammy-cuda13.0-py3.12-gcc11-sm100 / test (smoke_b200, 1, 1, linux.dgx.b200)

Details for Dev Infra team Raised by workflow job

@huydhn

huydhn commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -i

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

pytorchmergebot pushed a commit that referenced this pull request Sep 26, 2026
…8700)

`pull`, `trunk`, `lint` and `docs-build` gate viable/strict, so they go first.
Their test matrices still name EC2 runners and `_linux-build.yml` translates
them at runtime through `arc.yaml`, which hides which pod a job lands on.

Each label becomes the pod it already resolved to. A label the workflow
already prefixes keeps the determinator expression, so fleet routing is
untouched; a label written raw gets the literal Meta pod, which is what the
mapper produced for it.

`map_ec2_to_arc.py` exits on a label it cannot find in `arc.yaml`, and an ARC
name is never a key there, so it now passes those through instead. That keeps
it translating anything not yet converted. A typo still fails rather than
being mistaken for a direct name, which the tests cover.

No job changes runner.
Pull Request resolved: #198700
Approved by: https://github.com/jeanschmidt
ghstack dependencies: #198705
pytorchmergebot pushed a commit that referenced this pull request Sep 27, 2026
The same mechanical rewrite as the previous change, applied to every other
workflow: a label the workflow already prefixes keeps the determinator
expression, a label written raw gets the literal Meta pod.

Every edit here was produced by matching `runner:` / `runs-on:`, so the diff is
uniform and can be reviewed by spot-check. The handful of places that a search
for those keys does not find are converted separately in the next change.

No job changes runner.

Pull Request resolved: #198703
Approved by: https://github.com/jeanschmidt
ghstack dependencies: #198705, #198700
mtarsel added a commit to mtarsel/pytorch that referenced this pull request Sep 30, 2026
meta_only_runners existed only for map_ec2_to_arc.py to force the
'mt-' prefix on Meta-only hardware (H100/B200) regardless of which
experiment picked the build runner. The OSDC pod-naming migration
(pytorch#198700, pytorch#198703, pytorch#198705, pytorch#198706) retired that script, and every
workflow now hardcodes its ARC pod label directly instead of going
through the EC2->ARC mapper, so nothing reads this block anymore.

Confirmed via a repo-wide grep that meta_only_runners has no
references left besides its own definition. Leaves runner_mapping
and lf_allowlist untouched.

ci-infra#1081

Signed-off-by: Mick Tarsel <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
mtarsel added a commit to mtarsel/pytorch that referenced this pull request Sep 30, 2026
meta_only_runners existed only for map_ec2_to_arc.py to force the
'mt-' prefix on Meta-only hardware (H100/B200) regardless of which
experiment picked the build runner. The OSDC pod-naming migration
(pytorch#198700, pytorch#198703, pytorch#198705, pytorch#198706) retired that script, and every
workflow now hardcodes its ARC pod label directly instead of going
through the EC2->ARC mapper, so nothing reads this block anymore.

Confirmed via a repo-wide grep that meta_only_runners has no
references left besides its own definition. Leaves runner_mapping
and lf_allowlist untouched.

ci-infra#1081

Signed-off-by: Mick Tarsel <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions
github-actions Bot deleted the gh/huydhn/65/head branch December 1, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants