Skip to content

Repoint mlirDistro.yml at ROCm/llvm-project#3324

Open
jgmelber wants to merge 2 commits into
mainfrom
rocm-llvm-distro-migration
Open

Repoint mlirDistro.yml at ROCm/llvm-project#3324
jgmelber wants to merge 2 commits into
mainfrom
rocm-llvm-distro-migration

Conversation

@jgmelber

@jgmelber jgmelber commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Repoints the canonical mlirDistro.yml pipeline from upstream llvm/llvm-project to ROCm/llvm-project, having validated the switch end-to-end in #3314 (closed — build + smoke test passed against rocm-mlir-distro wheels, and I separately confirmed a real programming example compiles through the full pipeline against this build).

  • .github/workflows/mlirDistro.yml: repointed its two upstream references (the scheduled "latest commit" lookup, and the "Get LLVM" codeload URL) at ROCm/llvm-project's amd-staging branch. Everything else — the 0 */4 * * * schedule, PR trigger, and the mlir-distro/dev-wheels release tags it publishes to — is unchanged.

Scoped down from the original version of this PR (which also bumped utils/clone-llvm.sh's pin, retired mlirDistroRocm.yml, and paused update-llvm.yml) after that combined version broke ~all downstream CI: bumping clone-llvm.sh to a version only published under rocm-mlir-distro immediately 404s every consumer that still reads mlir-distro, since mlirDistro.yml hadn't actually run against the new source yet to publish a matching wheel there. This PR alone is safe to land — clone-llvm.sh is untouched, so no consumer's pinned wheel version changes until the follow-up PR.

Copilot review carried forward: checked the original PR that added mlirDistroRocm.yml (#3311) for outstanding Copilot suggestions, since this replaces that workflow's role. It flagged (1) a Docker prune step referencing a nonexistent inputs.MATRIX_OS, (2) shell-quoting/glob issues in a "Get wheel version" step, and (3) a hardcoded llvm-project-* glob despite an overridable LLVM_REPO input — all three were already fixed before #3311 merged, and none apply to this diff anyway since it reuses mlirDistro.yml's original, unaffected code paths rather than mlirDistroRocm.yml's adapted copy.

Follow-up (separate PR, not yet opened)

Once this merges, dispatch mlirDistro.yml with LLVM_COMMIT=46fcb339fb61119b337f973c7ca9e710a319fdd0 explicitly set (not auto-latest) so it publishes the exact validated wheel under mlir-distro. Only then open the follow-up PR bumping utils/clone-llvm.sh to that same commit/datetime, retiring mlirDistroRocm.yml, and pausing update-llvm.yml — gated on #3323 (Ryzen AI hardware validation) passing first.

Test plan

  • Manually dispatch mlirDistro.yml on this branch and confirm it builds successfully against ROCm/llvm-project
  • Confirm the resulting wheel uploads under the dev-wheels/mlir-distro tag as expected for a PR-triggered run

🤖 Generated with Claude Code

Repoints the canonical mlirDistro.yml pipeline at ROCm/llvm-project
(default branch amd-staging) instead of upstream llvm/llvm-project,
pinned at the commit already validated end-to-end in #3314 (mlir-aie
builds and runs real AIE compilations against it). It keeps publishing
to the same mlir-distro release tag, so every downstream consumer
(mlirAIEDistro.yml, buildAndTestPythons.yml, buildAndTestRyzenAI.yml,
and the rest) picks this up transparently with no changes of their own.

mlirDistroRocm.yml is retired: mlirDistro.yml now builds from ROCm
directly, so the standalone ROCm-only pipeline is redundant.

update-llvm.yml's biweekly schedule is paused (workflow_dispatch kept)
since utils/update_llvm_version.py is hardcoded to upstream
llvm/llvm-project and would otherwise silently propose reverting this
migration.

Do not merge until #3323 (validate the ROCm wheel on Ryzen AI
self-hosted runners) has run and passed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Copilot AI 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.

Pull request overview

Migrates the canonical MLIR distro wheel build to source LLVM/MLIR from ROCm/llvm-project (amd-staging) instead of upstream llvm/llvm-project, while keeping downstream consumers pinned to the existing mlir-distro release tag.

Changes:

  • Repointed LLVM source acquisition to ROCm/llvm-project in the distro workflow and clone helper script, and bumped the pinned LLVM commit.
  • Disabled the scheduled update-llvm.yml automation to avoid it auto-opening PRs that would revert the ROCm migration.
  • Removed the now-redundant mlirDistroRocm.yml workflow.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
utils/clone-llvm.sh Updates pinned LLVM commit and clone URL to ROCm/llvm-project.
.github/workflows/mlirDistro.yml Switches “latest commit” lookup + codeload download to ROCm fork/branch while keeping mlir-distro publishing.
.github/workflows/update-llvm.yml Pauses scheduled runs to prevent upstream-oriented auto-update PRs.
.github/workflows/mlirDistroRocm.yml Deletes the ROCm-only workflow now that the canonical workflow uses ROCm directly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 105 to +108
RESPONSE=$(curl --fail-with-body -sSL \
-H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/llvm/llvm-project/commits/main) || {
https://api.github.com/repos/ROCm/llvm-project/commits/amd-staging) || {
Comment thread utils/clone-llvm.sh Outdated
Splitting the migration into two stages per review: this PR only
repoints mlirDistro.yml at ROCm/llvm-project so it starts publishing
ROCm-built wheels under the existing mlir-distro tag. It's safe to land
on its own since utils/clone-llvm.sh is untouched, so no consumer's
pinned wheel version changes yet.

utils/clone-llvm.sh's version bump, retiring mlirDistroRocm.yml, and
pausing update-llvm.yml's schedule move to a follow-up PR, landed only
once mlirDistro.yml has actually published a matching wheel under
mlir-distro (otherwise every consumer 404s trying to pip install a
version that was only ever published under rocm-mlir-distro — which is
exactly what happened when this was all one PR).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jgmelber jgmelber changed the title Bump MLIR distro to ROCm/llvm-project Repoint mlirDistro.yml at ROCm/llvm-project Jul 13, 2026
@jgmelber jgmelber requested a review from Copilot July 13, 2026 17:13

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants