Skip to content

[OSDC] Name the OSDC pod directly in the viable/strict workflows - #198700

Closed
huydhn wants to merge 3 commits into
gh/huydhn/60/basefrom
gh/huydhn/60/head
Closed

huydhn wants to merge 3 commits into
gh/huydhn/60/basefrom
gh/huydhn/60/head

Conversation

@huydhn

@huydhn huydhn commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

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.

[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/198700

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

❌ 1 New Failure, 2 Unrelated Failures

As of commit 1bb3c02 with merge base aa98cb8 (image):

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

  • Breadth
    • Rewrites about 120 runner labels across pull.yml, trunk.yml, periodic-strict.yml and docs-build.yml, all of which gate merges or viable/strict
    • The labels I checked match .github/arc.yaml (e.g. linux.2xlarge.amx to l-x86iamx-8-64), but the edit spans too many sites to count as one trivial change
  • CI validation weakened
    • map_ec2_to_arc.py now skips any label that starts with l- and is missing from runner_mapping, where it used to exit 1
    • So a mistyped ARC name such as l-x86iavx512-8-6 now passes the mapper silently, while the PR body says typos still fail
    • The new tests only cover typos without the l- prefix, e.g. mt-linux.nonexistent
  • Socialization
    • This changes how runner labels are written and validated in merge-gating workflows, a precedent the rest of the OSDC stack builds on, so a human should decide it

reason: not_trivial
Reviewed commit: 3b769e5 (NOT the current head 1bb3c02)

Inference job

🐛 Report a wrong verdict

NEW FAILURE - The following job has failed:

  • trunk / macos-py3-arm64 / test (default, 1, 3, macos-m1-stable) (gh)
    test_cpp_extensions_aot_no_ninja

    AI verdict: AI verdict: probably not related

    The suspect PR only renames Linux runner labels (EC2 to OSDC/ARC pod names) in GitHub workflow YAML and changes the label-mapping script. The failure is a SIGBUS on the macOS M1 job while the test_cpp_extensions_aot_no_ninja process was starting up, before any test ran. The PR touches nothing macOS-related, and the same job was green on the merge base and on three recent trunk commits, so this looks like a one-off native crash on the runner.

    Full reasoning on HUD →

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

[ghstack-poisoned]
@huydhn
huydhn marked this pull request as ready for review September 26, 2026 02:14
@huydhn
huydhn requested a review from a team as a code owner September 26, 2026 02:14

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

LGTM

[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 -i

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 3 checks: trunk / macos-py3-arm64 / test (default, 3, 3, macos-m1-stable), trunk / macos-py3-arm64 / test (default, 1, 3, macos-m1-stable), trunk / macos-py3-arm64 / test (default, 2, 3, macos-m1-stable)

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 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 29, 2026
OSDC's pod-naming migration (pytorch#198700, pytorch#198703,
names its ARC pod directly, so there's nothing left to translate.
The one piece that migration doesn't replace -- forcing a
non-allowlisted lf- entry onto mt- (ci-infra#1081) -- has no other
home, so it moves to a new, minimal script.

Drop --prefix entirely. inductor-periodic.yml shows a job's own
runner_prefix and its hardcoded H100 entries can already diverge
(job resolves to lf-, entry hardcodes mt-l-...-h100 directly), so
checking each entry's own literal prefix is both simpler and
avoids double-prefixing that entry to mt-mt-... when the job-level
prefix is used instead. Also drop 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.

Keep the onnx-config exclusion (TODO(huydo)): unrelated to LF
routing, but nothing else upstream replaces it, and dropping it
here would silently regress that ARC-k8s CPU-affinity workaround.

Ports the still-relevant lf_allowlist coverage into
test_enforce_lf_allowlist.py, drops cases that only exercised the
removed translation logic, and adds a regression test for a matrix
mixing a hardcoded mt- entry with a restricted, dynamically-routed
lf- one.

ci-infra#1081

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: Mick Tarsel <[email protected]>
mtarsel added a commit to mtarsel/pytorch that referenced this pull request Sep 29, 2026
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]>
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/60/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