Skip to content

refactor(packaging): fetch Windows artifacts in a dedicated workflow step - #9547

Merged
idass1990 merged 1 commit into
mainfrom
users/idass1990/msi_artifact_fetch_refactor
Oct 27, 2026
Merged

idass1990 merged 1 commit into
mainfrom
users/idass1990/msi_artifact_fetch_refactor

Conversation

@idass1990

@idass1990 idass1990 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Moves the artifact fetch out of generate_msi_wxs.py into a dedicated workflow step, mirroring the Linux native packages pattern.

Previously the fetch was embedded inside the generator, which meant --run-github-repo had to be threaded through script arguments. When the workflow runs from another repo (e.g. rocm-libraries), the generator used the wrong S3 bucket because artifact_github_repo was not propagated. Part of #1987.

Changes:

  • multi_arch_build_native_windows_packages.yml: adds a "Fetch Windows artifacts" step calling artifact_manager.py fetch directly, with --run-id and --run-github-repo visible in the YAML.
  • multi_arch_ci_windows.yml: passes artifact_github_repo: github.repository so the fetch uses the correct bucket regardless of which repo triggers the workflow.
  • generate_msi_wxs.py: adds --artifact-dir flag to accept a pre-fetched directory, skipping any internal fetch.

🤖 Generated with Claude Code

…step

Move the artifact fetch out of generate_msi_wxs.py and into an explicit
workflow step, mirroring the Linux native packages pattern. The build workflow
now calls artifact_manager.py fetch directly with --run-id and
--run-github-repo visible in the YAML, then passes the resulting directory to
the generator via a new --artifact-dir flag (bypassing the internal fetch).

This fixes a bug where artifact_github_repo was not propagated to the fetch
when the workflow is called from another repository (e.g. rocm-libraries),
causing the generator to look for the run's artifacts in the wrong S3 bucket.
With an explicit fetch step, the bucket is resolved from the workflow env
rather than from generator internals.

Co-Authored-By: Claude <noreply@anthropic.com>
@therock-pr-bot

therock-pr-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ⚠️ Warning Error: Source/code files changed without an accompanying unit test.
Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).
Current: code file(s) changed: build_tools/packaging/windows/generate_msi_wxs.py; no test file found
🔎 pre-commit ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —
🤖 therock-pr-bot ✅ Pass —

🎉 All checks passed! This PR is ready for review.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@therock-pr-bot therock-pr-bot Bot added the Not ready to Review PR has unresolved policy failures — reviews blocked label Oct 27, 2026
@therock-pr-bot

therock-pr-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@therock-pr-bot therock-pr-bot Bot removed the Not ready to Review PR has unresolved policy failures — reviews blocked label Oct 27, 2026
@idass1990
idass1990 requested a review from ScottTodd October 27, 2026 21:49
@idass1990
idass1990 merged commit 2bc7866 into main Oct 27, 2026
91 of 101 checks passed
@idass1990
idass1990 deleted the users/idass1990/msi_artifact_fetch_refactor branch October 27, 2026 22:56
@github-project-automation github-project-automation Bot moved this from TODO to Done in TheRock Triage Oct 27, 2026
ScottTodd added a commit that referenced this pull request Oct 28, 2026
## Motivation

CI is failing on ROCm/rocm-libraries#14471 and
ROCm/rocm-systems#14369 when using the latest CI
code from this repository on the release branch. These cherry-picks fix
two issues:

* #9547 to fix MSI build failures
observed on ROCm/rocm-libraries#14471
* #9544 to fix DVC fetch failures
#9537

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.

---------

Co-authored-by: Ian Dass <145489691+idass1990@users.noreply.github.com>
Co-authored-by: Geo Min <geomin12@amd.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
idass1990 added a commit to ROCm/rocm-libraries that referenced this pull request Oct 28, 2026
Required for the Windows MSI build job to produce a valid installer.
ROCm/TheRock#9547

Co-Authored-By: Claude <noreply@anthropic.com>
idass1990 added a commit to ROCm/rocm-systems that referenced this pull request Oct 28, 2026
Required for the Windows MSI build job to produce a valid installer.
ROCm/TheRock#9547

Co-Authored-By: Claude <noreply@anthropic.com>
idass1990 added a commit to ROCm/rocm-libraries that referenced this pull request Oct 28, 2026
Required for the Windows MSI build job to produce a valid installer.
ROCm/TheRock#9547

Co-Authored-By: Claude <noreply@anthropic.com>
idass1990 added a commit to ROCm/rocm-systems that referenced this pull request Oct 28, 2026
Required for the Windows MSI build job to produce a valid installer.
ROCm/TheRock#9547

Co-Authored-By: Claude <noreply@anthropic.com>
idass1990 added a commit to ROCm/rocm-libraries that referenced this pull request Oct 28, 2026
Required for the Windows MSI build job to produce a valid installer.
ROCm/TheRock#9547

Co-Authored-By: Claude <noreply@anthropic.com>
idass1990 added a commit to ROCm/rocm-systems that referenced this pull request Oct 28, 2026
Required for the Windows MSI build job to produce a valid installer.
ROCm/TheRock#9547

Co-Authored-By: Claude <noreply@anthropic.com>
idass1990 added a commit to ROCm/rocm-libraries that referenced this pull request Oct 28, 2026
JonathanLichtnerAMD pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants