Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/198706
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 114 PendingAs of commit 098f7c5 with merge base 23137e8 ( 🟡 GREEN LIGHT - PR was reverted - re-landing requires human review:
Green Light will not review this PR again, on this or any later commit; re-landing it needs a human approval. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
With every workflow naming its pod, the mapper has nothing left to translate. Its other behaviours are gone too: the ROCm and XPU passthroughs return their input unchanged, and the H100 `mt-` forcing is now literal in the workflows. One behaviour does disappear with it. The script dropped `config: "onnx"` from every ARC matrix, so that job has not run since the ARC switch -- onnxruntime sizes its thread pool from `hardware_concurrency()`, which sees the node's CPUs rather than the pod's cpuset. The matrix entry is kept rather than deleted alongside the script, so onnx will actually run again and we find out whether it still trips over that. If it does, the fix belongs in the onnxruntime session options, not in a runner mapping. arc.yaml stays: it documents the naming scheme and the EC2 correspondence, which is still worth having as reference. ghstack-source-id: a178854 Pull-Request: #198706
|
run all the workflows! :P |
jeanschmidt
left a comment
There was a problem hiding this comment.
Review summary
🔴 1 blocker · 🟠 1 major · 🟡 1 minor
- 🔴 The aarch64 inductor perf nightly still ships an EC2 label in its test matrix, so removing the mapper moves its 39 test shards off the ARC pod —
.github/workflows/_linux-build.yml:171 - 🟠 Deleting the mapper re-enables the
onnxconfig in pull.yml, the workflow that gates every PR, with the ARC cpuset problem unaddressed —.github/scripts/map_ec2_to_arc.py:85 (LEFT) - 🟡 arc.yaml still documents the deleted mapper:
meta_only_runnersand the amd-sandbox passthrough describe machinery no longer in the repository —.github/scripts/map_ec2_to_arc.py:53 (LEFT)
Extended analysis (ai-generated section)
What this changes
The change deletes .github/scripts/map_ec2_to_arc.py and its test file, and rewires the build job output in .github/workflows/_linux-build.yml:171 from steps.map-runners.outputs.test-matrix back to steps.filter.outputs.test-matrix, removing the uv run step that invoked the mapper. .github/arc.yaml is kept. The premise stated in the description — that every workflow now names its ARC pod directly, so translation is a no-op — does not hold for one workflow: inductor-perf-test-nightly-aarch64.yml:90-128 still builds its runner from needs.get-label-type.outputs.runner-label, which _runner-determinator.yml:206 expands to linux.arm64.m8g.metal-24xl, a live translating key at arc.yaml:84.
What it gets right
The wiring is clean: the output reverts to the step that produced it before the mapper existed, the test file goes with the script rather than being left orphaned, and no reference to map_ec2_to_arc survives anywhere in the tree. The claim about the mapper's other behaviours holds where it is checkable — the ROCm, XPU, TPU and B200 entries in arc.yaml:99-118 are self-mapped passthroughs, and the mt- forcing for H100 is already literal across test-h100.yml, h100-distributed.yml, h100-symm-mem.yml and the H100 perf nightly. The description also states plainly that the onnx filter disappears and that the matrix entry is kept on purpose, rather than letting that slip through unmentioned.
Where the risk is
Everything concentrates on what the mapper did besides translating labels. It had three behaviours; the change reasons about one. Translation still has a consumer, and that is the aarch64 nightly finding. The onnx filter has no replacement: three reviewers arrived independently at the same pull.yml:377 entry, and those three findings share c-002 — one edit settles all of them. The fail-fast sys.exit(1) on an unknown label has no replacement either, which is the c-004 finding about a typo'd label queueing instead of failing the build.
A fourth group, c-003, is four findings on one edit: arc.yaml is retained as reference but now has no reader at all, and its comments at lines 115-116 and 120-123 still describe the mapper in the present tense, including a standing instruction to register new Meta-only hardware in meta_only_runners. That compounds with c-004: the stale instruction invites exactly the mistake that the deleted guard used to catch at build time, so the job now queues unassigned instead of failing in seconds with the label named.
Before merge, and after
The aarch64 label needs settling first — "the aarch64 inductor perf nightly still ships an EC2 label" in inductor-perf-test-nightly-aarch64.yml. The edit is small; the choice between a literal pod label and teaching _runner-determinator.yml to emit ARC names is the actual decision. The onnx re-enablement in .github/workflows/pull.yml is also a merge-time call, not because the intent is wrong but because the experiment lands in the workflow that gates every pull request.
The arc.yaml prose and the orphaned meta_only_runners block are follow-up: one pass over the file. The matrix runner-label lint is follow-up too, and larger than it looks — it needs a new linter, not a line.
With every workflow naming its pod, the mapper has nothing left to translate. Its other behaviours are gone too: the ROCm and XPU passthroughs return their input unchanged, and the H100 `mt-` forcing is now literal in the workflows. One behaviour does disappear with it. The script dropped `config: "onnx"` from every ARC matrix, so that job has not run since the ARC switch -- onnxruntime sizes its thread pool from `hardware_concurrency()`, which sees the node's CPUs rather than the pod's cpuset. The matrix entry is kept rather than deleted alongside the script, so onnx will actually run again and we find out whether it still trips over that. If it does, the fix belongs in the onnxruntime session options, not in a runner mapping. arc.yaml stays: it documents the naming scheme and the EC2 correspondence, which is still worth having as reference. ghstack-source-id: e067152 Pull-Request: #198706
With every workflow naming its pod, the mapper has nothing left to translate. Its other behaviours are gone too: the ROCm and XPU passthroughs return their input unchanged, and the H100 `mt-` forcing is now literal in the workflows. One behaviour does disappear with it. The script dropped `config: "onnx"` from every ARC matrix, so that job has not run since the ARC switch -- onnxruntime sizes its thread pool from `hardware_concurrency()`, which sees the node's CPUs rather than the pod's cpuset. The matrix entry is kept rather than deleted alongside the script, so onnx will actually run again and we find out whether it still trips over that. If it does, the fix belongs in the onnxruntime session options, not in a runner mapping. arc.yaml stays: it documents the naming scheme and the EC2 correspondence, which is still worth having as reference. ghstack-source-id: 74044ec Pull-Request: #198706
With every workflow naming its pod, the mapper has nothing left to translate. Its other behaviours are gone too: the ROCm and XPU passthroughs return their input unchanged, and the H100 `mt-` forcing is now literal in the workflows. One behaviour does disappear with it. The script dropped `config: "onnx"` from every ARC matrix, so that job has not run since the ARC switch. The entry is removed outright here rather than left behind commented out, and the reason it is gone -- onnxruntime sizes its intra-op thread pool from `hardware_concurrency()`, which reads `_SC_NPROCESSORS_ONLN` and counts the node rather than the pod's cpuset -- is recorded in #198915, which fixes that and restores the entry. An earlier version of this change did leave a commented-out entry with a prose comment above it, and that is what got it reverted. A test-matrix is a literal block scalar, interpolated verbatim into a double-quoted shell argument: --test-matrix "{ include: [ ... ]}" Every `"` inside toggles shell quoting. The live entries survive because their quotes wrap tokens with no spaces, so the fragments re-concatenate into one argument; the comment contained a quoted phrase with a space in it, the shell split there, and filter_test_configs.py got a stray argument: error: unrecognized arguments: failed in a 24k-line log, and a Letting onnx run first was still worth it, because it found a second reason it could not have passed. The OSDC pod exports `HF_HOME=/mnt/hf_cache`, the read-only mount, and .ci/pytorch/test.sh is what redirects it to the writable `HF_CACHE` the workflow prepares -- except it skipped onnx, a carve-out from #178928 when the old .ci/onnx/test.sh (which never set HF_HOME) was folded in. On EC2 that was harmless, since HF_HOME was unset and huggingface fell back to a writable home; on a pod onnx alone writes to the read-only mount and dies on `[Errno 30]`. That carve-out is dropped: it is wrong for any config. arc.yaml stays: it documents the naming scheme and the EC2 correspondence, which is still worth having as reference. ghstack-source-id: c44c11d Pull-Request: #198706
|
@pytorchbot merge -f 'Previous CI run and lint jobs have passed, remove the redundant comments breaking the script' |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
OSDC's pod-naming migration (pytorch#198700, pytorch#198703, pytorch#198706) names each ARC pod directly and deletes map_ec2_to_arc.py, the mapper that used to enforce this allowlist. The one piece that migration doesn't replace -- forcing a non-allowlisted lf- entry onto mt- -- has no other home, so it moves to a new, minimal script, wired into the same _linux-build.yml step the old mapper occupied. Checks each matrix entry's own literal lf-/mt- prefix instead of the job-level runner_prefix input: inductor-periodic.yml shows the two can already diverge (job resolves to lf-, entry hardcodes mt-l-...-h100 directly), so using the job-level prefix would have double-prefixed that entry to mt-mt-... instead. Drops the now-dead runner_mapping, meta_only_runners, and ARC_LABEL passthrough lookups: every entry already names a resolved ARC pod by the time this script sees it. Keeps the onnx-config exclusion (TODO(huydo)) as-is -- unrelated to LF routing, but nothing else upstream replaces it. Full test coverage: allowlisted / non-allowlisted / unrestricted / kill-switch cases, all passing. ci-infra#1081 Co-Authored-By: Claude Sonnet 5 <[email protected]> Signed-off-by: Mick Tarsel <[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]>
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]>
Workflows now name their ARC pods directly, and map_ec2_to_arc.py, the only reader of runner_mapping in .github/arc.yaml, was removed in pytorch#198706. That PR kept the mapping as a reference for the EC2 correspondence, but it is no longer needed, so drop it. runner_determinator.py only reads lf_allowlist, which stays, along with the ARC label format docs. In .github/actionlint.yaml, drop the EC2 labels that no workflow, template or composite action requests anymore: the old AWS Linux labels, the lf.linux.* Linux Foundation labels, and the unused Windows GPU labels. EC2 labels still in use are kept: linux.12xlarge.memory.ephemeral (runs_on default in _binary-build-linux.yml) and the windows.g4dn/4xlarge/12xlarge labels used by the Windows binary workflows. Unused non-EC2 labels are left alone. Test Plan: ``` lintrunner --take ACTIONLINT --all-files cd .github/scripts && python -m unittest test_runner_determinator test_filter_test_configs ``` Both pass. This PR was authored with an AI assistant (Claude Code).
Workflows now name their ARC pods directly, and map_ec2_to_arc.py, the only reader of runner_mapping in .github/arc.yaml, was removed in pytorch#198706. That PR kept the mapping as a reference for the EC2 correspondence, but it is no longer needed, so drop it. runner_determinator.py only reads lf_allowlist, which stays, along with the ARC label format docs. In .github/actionlint.yaml, drop the EC2 labels that no workflow, template or composite action requests anymore: the old AWS Linux labels, the lf.linux.* Linux Foundation labels, and the unused Windows GPU labels. EC2 labels still in use are kept: linux.12xlarge.memory.ephemeral (runs_on default in _binary-build-linux.yml) and the windows.g4dn/4xlarge/12xlarge labels used by the Windows binary workflows. Unused non-EC2 labels are left alone. Test Plan: ``` lintrunner --take ACTIONLINT --all-files cd .github/scripts && python -m unittest test_runner_determinator test_filter_test_configs ``` Both pass. This PR was authored with an AI assistant (Claude Code).
Workflows now name their ARC pods directly, and map_ec2_to_arc.py, the only reader of runner_mapping in .github/arc.yaml, was removed in pytorch#198706. That PR kept the mapping as a reference for the EC2 correspondence, but it is no longer needed, so drop it. runner_determinator.py only reads lf_allowlist, which stays, along with the ARC label format docs. In .github/actionlint.yaml, drop the EC2 labels that no workflow, template or composite action requests anymore: the old AWS Linux labels, the lf.linux.* Linux Foundation labels, and the unused Windows GPU labels. EC2 labels still in use are kept: linux.12xlarge.memory.ephemeral (runs_on default in _binary-build-linux.yml) and the windows.g4dn/4xlarge/12xlarge labels used by the Windows binary workflows. Unused non-EC2 labels are left alone. Test Plan: ``` lintrunner --take ACTIONLINT --all-files cd .github/scripts && python -m unittest test_runner_determinator test_filter_test_configs ``` Both pass. This PR was authored with an AI assistant (Claude Code).
…0315) ## Summary (human written only) Clean up old EC2 runner references ## Agent details (if applicable) > Workflows now name their ARC pods directly, and `map_ec2_to_arc.py`, the only reader of `runner_mapping` in `.github/arc.yaml`, was removed in #198706. This drops `runner_mapping`. `runner_determinator.py` only reads `lf_allowlist`, which stays, along with the ARC label format docs. > > In .github/actionlint.yaml, this drops the EC2 labels that no generated workflow, template or composite action requests anymore: the old AWS Linux labels, the lf.linux.* labels, the unused Windows GPU labels, and windows.12xlarge.nonephemeral / windows.g4dn.xlarge.nonephemeral. The last two are only referenced from the non-nightly branches of windows_binary_build_workflow.yml.j2, which no generated workflow uses. The runs_on default in _binary-build-linux.yml moves from linux.12xlarge.memory.ephemeral to its OSDC equivalent l-x86iavx512-48-384; every caller already passes runs_on. Windows labels still in use are kept. Unused non-EC2 labels are left alone. Pull Request resolved: #200315 Approved by: https://github.com/jeanschmidt
Stack from ghstack (oldest at bottom):
With every workflow naming its pod, the mapper has nothing left to translate.
Its other behaviours are gone too: the ROCm and XPU passthroughs return their
input unchanged, and the H100
mt-forcing is now literal in the workflows.One behaviour does disappear with it. The script dropped
config: "onnx"fromevery ARC matrix, so that job has not run since the ARC switch. The entry is
removed outright here rather than left behind commented out, and the reason it
is gone -- onnxruntime sizes its intra-op thread pool from
hardware_concurrency(), which reads_SC_NPROCESSORS_ONLNand counts thenode rather than the pod's cpuset -- is recorded in #198915, which fixes that
and restores the entry.
An earlier version of this change did leave a commented-out entry with a prose
comment above it, and that is what got it reverted. A test-matrix is a literal
block scalar, interpolated verbatim into a double-quoted shell argument:
Every
"inside toggles shell quoting. The live entries survive because theirquotes wrap tokens with no spaces, so the fragments re-concatenate into one
argument; the comment contained a quoted phrase with a space in it, the shell
split there, and filter_test_configs.py got a stray argument:
Letting onnx run first was still worth it, because it found a second reason it
could not have passed. The OSDC pod exports
HF_HOME=/mnt/hf_cache, theread-only mount, and .ci/pytorch/test.sh is what redirects it to the writable
HF_CACHEthe workflow prepares -- except it skipped onnx, a carve-out from#178928 when the old .ci/onnx/test.sh (which never set HF_HOME) was folded in.
On EC2 that was harmless, since HF_HOME was unset and huggingface fell back to
a writable home; on a pod onnx alone writes to the read-only mount and dies on
[Errno 30]. That carve-out is dropped: it is wrong for any config.arc.yaml stays: it documents the naming scheme and the EC2 correspondence,
which is still worth having as reference.