Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/198704
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 4595ce8 with merge base 23137e8 ( 🟡 GREEN LIGHT - OUTDATED (earlier commit) - PR requires human review:
reason: 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 blocker · 🟠 1 major · ⚪ 1 nit
- 🔴 build-magma-linux now runs
docker runon an ARC pod that has no Docker daemon and nocontainer:block, so every magma build fails —.github/workflows/build-magma-linux.yml:38 - 🟠 The magma build holding the ossci S3 publish role is pinned to the shared mt-l pool that also runs PR-authored code, not the release-isolated pool —
.github/workflows/build-magma-linux.yml:38 - ⚪ benchmarks/operator_benchmark/README.md still documents the operator microbenchmarks as running on
linux.aws.h100/linux.aws.a100—.github/workflows/operator_microbenchmark_compare.yml:64
Extended analysis (ai-generated section)
What this changes
This rewrites four EC2 runner labels to OSDC ARC labels in places where the label is not written next to a runner: or runs-on: key, so a mechanical pass could not reach them. operator_microbenchmark_compare.yml moves both its inline test-matrix ternary (lines 64-65) and the shell case that writes runner= into $GITHUB_OUTPUT (lines 188-189) to mt-l-x86iamx-22-225-h100 / mt-l-x86iavx512-11-125-a100. build-magma-linux.yml goes from linux.2xlarge to mt-l-x86iavx512-8-64, and test-check-binary.yml passes mt-l-x86iavx512-29-115-t4 into test-infra's linux_job_v2. The new label is registered in .github/actionlint.yaml, and a comment is dropped from target-determination-indexer.yml.
What it gets right
The microbenchmark change is the careful one. The runner name appears twice in that file, and the case output keys the S3 artifact lookup in compare-and-comment; changing one and not the other would have left the compare job searching for results under a runner name nothing ran on. Both moved together. The B200 and ROCm entries are left untouched in both places, which is correct — neither has an ARC equivalent. Every swap matches the size mapping in .github/arc.yaml, so the hardware class is right in all four cases, and the new label was added to the actionlint allowlist rather than left to trip lint.
Where the risk is
Almost everything concentrates on one line: build-magma-linux.yml:38. Five reviewers independently landed on the same mechanism there — the job's only build step is make magma-cuda*, every target in .ci/magma/Makefile expands to a host docker run, and this repository states in several places that ARC pods have no host docker daemon; the job adds no container: and is now the only mt-* job in the tree without one. That convergence is the strongest signal in the review. The same one-line edit also carries two further problems that share it: make -j$(getconf _NPROCESSORS_CONF) in .ci/magma/package_files/build.sh sizes parallelism from host cores rather than the 8-vCPU pod quota, and the credentialed protected-ref publish (id-token: write, the ossci_linux_windows S3 role) now sits on the shared multi-tenant tier rather than the release-isolated mt-rel-l-* tier the repo defined for exactly this case. The two release-tier findings are one edit.
Three reviewers also converged on test-check-binary.yml:42, and all three stopped at the same wall: linux_job_v2.yml lives in pytorch/test-infra and is not readable from this checkout, so whether it starts the script via host docker or its own container: is an open question rather than an established defect.
The recurring class of mistake is that convertibility was judged textually — does a key name an EC2 label — when it is a property of the job body: host docker, host CPU count, trust tier, and whether an external callee is ARC-aware. The two jobs converted without a determinator are precisely the two where nothing checked the body. Separately, two of the description's own claims do not hold: _runner-determinator.yml:206 still composes a convertible EC2 label from fragments, and the comment removed from target-determination-indexer.yml documented an equivalence arc.yaml:67 still asserts.
Before merge, and after
The magma docker-daemon problem gates this. The fix is one line — revert runs-on to linux.2xlarge — and the workflow's own path filter includes the file it edits, so this PR's CI should show the outcome either way. Settle the linux_job_v2 question too: one file view at test-infra main, or this PR's own run of that job, decides it, and leaving it unresolved means a required CUDA binary check goes dark rather than red-for-a-reason. The release-runner tier for the credentialed magma publish belongs here as well despite its severity labels, because it fires only on protected refs and so produces no CI signal after merge; the narrow move to mt-rel-l-x86iavx512-8-64 needs confirmation that the scale set is provisioned.
Follow-ups: the make -j sizing is a magma build-system change spanning build.sh and the Makefile env plumbing, and is moot if the job reverts to EC2. The hardcoded mt- prefix in the microbenchmark matrix breaks map_ec2_to_arc.py only under the lf- experiment and matches a pattern already present elsewhere in the tree. The stale labels in benchmarks/operator_benchmark/README.md:177-178, the composed label in _runner-determinator.yml, and the removed comment are documentation-level and can travel separately.
|
@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 STARTUP failures reported, please check workflows syntax! Test check_binary Details for Dev Infra teamRaised by workflow job |
|
@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 |
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, on the grounds that 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. Rather than leave that implicit in a script nobody reads, the matrix entry is commented out where it lives, with the reason next to it. Letting it run first was worth it, because it found a second and unrelated 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 that 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 simply unset and huggingface fell back to a writable home; on a pod it means onnx alone writes to the read-only mount and dies on `[Errno 30]`. That carve-out is dropped here: it is wrong for any config, and onnx will need it whenever it comes back. The thread pool concern is real and is what keeps onnx off. ORT logs `pthread_setaffinity_np failed` once per thread past the cpuset edge -- 19k lines of a 24k-line job log -- and a bidirectional-RNN test fails on numerics, which a thread pool in that state is a plausible cause of. A bigger pod does not fix it: Karpenter may place the pod on a larger node, so `hardware_concurrency()` reported 64 against a 46-CPU cpuset. The fix is to set `intra_op_num_threads` in the session options, as ORT's own error message asks, and belongs in a change the onnx owners can review on its own. arc.yaml stays: it documents the naming scheme and the EC2 correspondence, which is still worth having as reference. Pull Request resolved: #198706 Approved by: https://github.com/jeanschmidt ghstack dependencies: #198704
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. Pull Request resolved: #198706 Approved by: https://github.com/jeanschmidt ghstack dependencies: #198704
ACTIONLINT failed on three calls:
Error (ACTIONLINT) [workflow-call]
... "linux_job_v3.yml" reusable workflow. defined inputs are ...
>>> 142 | docker-build-dir: "skip-docker-build"
docker-build-dir is a linux_job_v2 input. v3 builds no image, so it never
declared one, and passing it is an error rather than a no-op. Same removal as
pytorch/pytorch#198704.
Checked the rest of the file the same way the linter does -- every `with:` key
on a v3 caller against v3's declared inputs -- and these three were the only
undefined ones.
Authored with Claude Code.
Stack from ghstack (oldest at bottom):
runner:does not find #198704Three places name a runner without a
runner:orruns-on:key on the line,so the mechanical rewrite in the previous change could not reach them:
in the test matrix, and separately with a shell
casewritingrunner=into$GITHUB_OUTPUT. Both had to change or the two would disagree.it takes the Meta pod literally. Both of its jobs move to linux_job_v3 while
they are being touched; the CPU one needs no runner at all, since v3 already
defaults to the pod v2 was resolving to. Two things do not carry over: v3 has
no
docker-build-dir, since it never builds an image and theskip-docker-buildsentinel has nothing left to suppress; and it runs thescript inside
container:rather than bare on the host, so the CUDA job hasto ask for
gpu-arch-type: cudato be given the T4 that check_binary.shneeds for its
torch.rand(3, 3, device='cuda')check.A stale comment in target-determination-indexer.yml referring to the EC2 label
it no longer uses is dropped as well.
build-magma-linux.yml needed more than a label. Every target in
.ci/magma/Makefile expands to a
docker runagainst pytorch/almalinux-builder,and an OSDC pod has no docker daemon -- nor did the job declare a
container:,which OSDC rejects outright. The job now runs inside that same builder image and
the Makefile gains an IN_CONTAINER branch calling magma/build_magma.sh directly,
so the per-CUDA DESIRED_CUDA and CUDA_ARCH_LIST settings stay in one place and
the local
make magma-cuda134path is unchanged. Two consequences of running ona pod: git needs an explicit safe.directory before checkout, since the workspace
is uid 1001 and the image runs as root; and because the publish step assumes
role/gha_workflow_s3_ossci_linux_windows_read_write to write tarballs that are
baked into the release builder images, the runner comes from
_select-release-runner.yml so a protected ref does not share a pool with
PR-authored code.
_runner-determinator.yml built runner-label as linux.arm64.${config}.${type},
which the mapper was rewriting to a pod; inductor-perf-test-nightly-aarch64.yml
puts it in all 39 of its test-matrix entries, and nothing else read it.
Rather than teach that indirection to emit pods, it goes away: the dispatch
input on the aarch64 workflow is now the runner itself, a choice between the
two pods, and the matrix uses it directly. That removes the runner_config
input, the runner-label, runner-config and runner-type outputs and the whole
step behind them -- none of which had another consumer.
No convertible EC2 label remains in any workflow.