Skip to content

Group target tarballs by package owner - #8328

Merged
marbre merged 2 commits into
mainfrom
users/marbre/gfx1250-strict-tarball-ownership
Sep 18, 2026
Merged

marbre merged 2 commits into
mainfrom
users/marbre/gfx1250-strict-tarball-ownership

Conversation

@marbre

@marbre marbre commented Sep 18, 2026

Copy link
Copy Markdown
Member

Motivation

Individual gfx1250 and gfx1250-strict selections share the gfx1250 archive name while retaining only the requested payloads. Combined selections collect both targets before compression, avoiding separate strict archives or overwritten outputs.

Progress on #8278.

Technical Details

Family archive names remain unchanged, and test archives follow the same ownership grouping.

The tarball workflow checks out rocm-systems so the ownership adapter can use shared metadata when #8325 lands.

Test Plan

  • python -m pytest -q -p no:cacheprovider build_tools/packaging/archives/tests build_tools/tests/sdk_targets_test.py

Test Result

  • 15 tests passed, covering individual and combined target selections, both input orders, and test and multiarch archive naming.
  • Real artifact tarball assembly remains pending CI validation.

Submission Checklist

Generated with Codex

Individual gfx1250 and gfx1250-strict selections share the gfx1250
archive name while retaining only the requested payloads. Combined
selections collect both targets before compression, avoiding separate
strict archives or overwritten outputs. Family archive names remain
unchanged, and test archives follow the same ownership grouping.

The tarball workflow checks out rocm-systems so the ownership adapter
can use shared metadata when #8325 lands.

Refs #8278

Test plan:
- python -m pytest -q -p no:cacheprovider build_tools/packaging/archives/tests build_tools/tests/sdk_targets_test.py

Test results:
- 15 tests passed, covering individual and combined target selections,
  both input orders, and test and multiarch archive naming.
- Real artifact tarball assembly remains pending CI validation.
@therock-pr-bot

therock-pr-bot Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass —
🔎 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

Copy link
Copy Markdown

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

Comment on lines +129 to +130
- name: Checkout shared package ownership metadata
run: git submodule update --init --depth 1 rocm-systems

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add some context in a TODO comment:

  • This is just for a specific path (link it)
  • Explain that we would like to pip install the bootstrap package instead of needing the source code

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #8354 and left a TODO note.

Comment on lines +129 to +130
- name: Checkout shared package ownership metadata
run: git submodule update --init --depth 1 rocm-systems

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could technically wait until #8325

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ownership is still defined in rocm-system's bootstrap, thus it will still be needed.

@marbre
marbre merged commit 1147032 into main Sep 18, 2026
25 of 26 checks passed
@marbre
marbre deleted the users/marbre/gfx1250-strict-tarball-ownership branch September 18, 2026 18:06
@github-project-automation github-project-automation Bot moved this from TODO to Done in TheRock Triage Sep 18, 2026
marbre added a commit that referenced this pull request Oct 30, 2026
## Motivation

Family selection must include both gfx1250 targets for builds,
distributions, and artifact fetching. Default test compilation includes
strict along with the other registered targets. Explicit individual
target selections retain their own payload identity.

Closes #8278

## Technical Details

Prerequisites before landing:
- ~~#8325: shared SDK ownership.~~ (superseded)
- #8377: centralized target ownership.
- #8327: native package ownership.
- #8328: tarball ownership.
- ~~A rocm-systems submodule bump containing ROCm/rocm-systems#11801.~~
**(landed)**
- Established broader component readiness for family enablement.

## Test Plan

Fresh compiler/HIP/RAND builds and SDK, DEB/RPM, and tarball validation
passed on the integration branch with temporary family membership. The
exact family enablement was then integrated for a combined build with
RAND tests and target-neutral hipthreads. Test target overrides were
left empty to exercise the default registered-target list. These checks
do not establish full component or GPU execution support.

- python -m pytest -q -p no:cacheprovider
build_tools/tests/cmake_amdgpu_targets_test.py
build_tools/tests/artifact_manager_tool_test.py
build_tools/github_actions/tests/configure_multi_arch_ci_test.py
- cmake --build ../therock-build-rand-tests-gfx125X-dcgpu --target
artifact-rand artifact-hipthreads
-
../therock-build-rand-tests-gfx125X-dcgpu/compiler/amd-llvm/dist/lib/llvm/bin/llvm-objdump
--offloading
../therock-build-rand-tests-gfx125X-dcgpu/math-libs/hipthreads/stage/lib/hipthreads/libhipthreads.a
- python -m rocm_kpack.tools.verify_artifacts --artifacts-dir
../therock-build-rand-tests-gfx125X-dcgpu/artifacts --verbose
--clang-offload-bundler
../therock-build-rand-tests-gfx125X-dcgpu/compiler/amd-llvm/dist/lib/llvm/bin/clang-offload-bundler

## Test Result

- 171 passed and 1 existing test skipped with umask 022.
- rocRAND and hipRAND tests compiled for both gfx1250 targets. Each
target's test kpack contains 34 entries with only its target identity.
- Target-neutral hipthreads compiled with the default test target list.
Its library contains exactly 29 distinct device images, including
separate gfx1250 and gfx1250-strict images.
- All four artifact verifier checks passed.
- No GPU tests were executed.

## Submission Checklist

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

Generated with Codex
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