Repository navigation
Conversation
🔗 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 FailureAs of commit 38b3dc4 with merge base aa98cb8 ( 🟡 GREEN LIGHT - OUTDATED (earlier commit) - PR requires human review:
reason: 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:
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
left a comment
There was a problem hiding this comment.
Review summary
🟠 1 major · 🟡 1 minor
- 🟠 The new
l-x86iavx512-8-64default 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.
|
@pytorchbot merge |
Merge startedYour 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 |
Merge failedReason: 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 teamRaised by workflow job |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 4 checks: operator_benchmark / aarch64-opbenchmark-test / test (cpu_operator_benchmark_short, 1, 1, mt-l-arm64g4-16-62), operator_benchmark / x86-opbenchmark-test / test (cpu_operator_benchmark_short, 1, 1, mt-l-x86iavx512-48-384), B200 Smoke Tests / linux-jammy-cuda13.0-py3.12-gcc11-sm100 / test (smoke_b200, 1, 1, linux.dgx.b200), trunk / macos-py3-arm64 / test (default, 1, 3, macos-m1-stable) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…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
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
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]>
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]>
Stack from ghstack (oldest at bottom):
runner:does not find #198704_linux-build.yml discards a
runnerinput that does not start withl-andfalls 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 lookingcorrect --
runner_prefixsupplies 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 isnow that pod by name. With every caller resolving to a pod,
runs-oncollapsesto 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.