Skip to content

[cadence] Run one Cadence job tree for branch PRs and fork PRs - #23379

Open
aliafzal wants to merge 1 commit into
mainfrom
cadence-consolidate-ci
Open

aliafzal wants to merge 1 commit into
mainfrom
cadence-consolidate-ci

Conversation

@aliafzal

@aliafzal aliafzal commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Folds Cadence CI's three PR paths into build-cadence-runner.yml with one condition for every job. Fork PRs that touch Cadence paths from a CONTRIBUTOR+ author (Meta exports from personal forks included) now get the same six jobs as branch PRs, on pull_request_target. The meta-exported label path and cadence-fork-pr.yml are removed. Only the Xtensa jobs hold credentials; the CPU jobs run with contents: read on every path. The image is resolved once, from the base branch on fork PRs.

Test plan: actionlint is clean and the job condition was checked against each event type. This PR's pull_request run covers the same-repo path; the fork path gets verified after merge via #23219.

Cadence CI had three PR paths: same-repo PRs on pull_request,
meta-exported fork PRs on a labeled pull_request_target, and
cadence-fork-pr.yml for fork PRs from existing contributors. The
meta-exported path has been failing at checkout and is redundant, since
export authors are MEMBER and pass the contributor check. Now every job
in build-cadence-runner.yml shares one condition: pushes, nightly,
dispatch and same-repo PRs as before, plus fork PRs that touch Cadence
paths on pull_request_target (opened, synchronize, reopened) when the
author is CONTRIBUTOR or above. Fork PRs therefore show the same six
jobs as every other run. The label path and cadence-fork-pr.yml are
removed.

Fork PRs run their own code, so only the Xtensa jobs hold credentials,
the Cadence artifacts role. cpu-build and cpu-test now run with
contents: read on every path, so linux_job_v3's role/arc never reaches
fork code; their compile is short and sccache still reads anonymously.

One Resolve CI docker image job serves every path. It resolves the
image inline instead of through the shared _docker-image.yml, which
checks out the PR head and is refused for fork code on
pull_request_target; there it reads the base branch, so a fork cannot
pick its image. _xtensa_build.yml, _xtensa_test.yml and _test_cadence.yml
take that image as a required input instead of resolving their own. The
Xtensa workflows also take allow-fork-checkout, which opts the checkout
in, drops the persisted token, and skips the public runner artifact.

The runner comment in the Xtensa workflows blamed the CPU vendor for the
vision licence failure. The cause is hostname length: RJ-2025.5 xt-clang
derives a wrong licence key once the pod hostname reaches 47 characters,
which is any runner label over 18. The comment now says that.
@pytorch-bot

pytorch-bot Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 2e4e785 with merge base a78b4da (image):
💚 Looks good so far! There are no failures yet. 💚

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

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@meta-codesync

meta-codesync Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

@aliafzal has imported this pull request. If you are a Meta employee, you can view this in D123116687.

This branch was successfully deployed

1 active deployment
cadence — 2e4e7853 Deployed Oct 2, 2026 by aliafzal via hifi-op-test / hifi4 #31202
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant