Skip to content

Native Linux Packages Install Test #3484

Merged
arvindcheru merged 16 commits intomainfrom
users/acheruva/native_linux_pkg_test_feb18
Mar 2, 2026
Merged

Native Linux Packages Install Test #3484
arvindcheru merged 16 commits intomainfrom
users/acheruva/native_linux_pkg_test_feb18

Conversation

@arvindcheru
Copy link
Copy Markdown
Contributor

@arvindcheru arvindcheru commented Feb 18, 2026

Motivation

Standalone script that runs a full installation test for ROCm native Linux packages: it configures the system repo, installs the packages in a defined order, and verifies the install. It is intended to run inside an existing container or VM (e.g. from CI); it does not start Docker or VMs.

Technical Details

  • Package managers: DEB (apt) for Ubuntu/Debian; RPM via dnf for RHEL/AlmaLinux/CentOS/AZL and via zypper for SLES.
  • Packages installed (in order): amdrocm-{gfx_arch}, amdrocm-core-sdk-{gfx_arch} (e.g. amdrocm-gfx94x, amdrocm-core-sdk-gfx94x).
  • Release types: Nightly and prerelease; optional GPG key setup when --gpg-key-url is provided.
  • Config via environment: Repo id and paths can be overridden with ROCM_REPO_NAME, ROCM_APT_, ROCM_ZYPP_, ROCM_YUM_*, and ROCM_RDHC_REL_PATH so CI or different layouts can change behavior without code edits.
  • Setup: GPG key (if prerelease), then repo (APT sources list, Zypper repo file, or Yum/DNF repo file).
  • Verify: Check install prefix and presence of key components (bin/rocminfo, bin/hipcc, bin/clinfo, include/hip/hip_runtime.h, lib/libamdhip64.so).
  • List installed ROCm-related packages.
  • Run rocminfo
  • Run rdhc at configurable path RDHC_REL_PATH with --all.

Test Plan

Manual, Test using github actions

Test Result

Nightly (RPM/DEB RUNID - 20260301-22536111812)
https://github.com/arvindcheru/TheRock/actions/runs/22557743724
https://github.com/arvindcheru/TheRock/actions/runs/22557654204
https://github.com/arvindcheru/TheRock/actions/runs/22557636287
https://github.com/arvindcheru/TheRock/actions/runs/22557623524
https://github.com/arvindcheru/TheRock/actions/runs/22557612476
https://github.com/arvindcheru/TheRock/actions/runs/22557603693
https://github.com/arvindcheru/TheRock/actions/runs/22557569561
https://github.com/arvindcheru/TheRock/actions/runs/22557559381

Prerelease
https://github.com/arvindcheru/TheRock/actions/runs/22557535744
https://github.com/arvindcheru/TheRock/actions/runs/22557529351
https://github.com/arvindcheru/TheRock/actions/runs/22557520624
https://github.com/arvindcheru/TheRock/actions/runs/22557511419
https://github.com/arvindcheru/TheRock/actions/runs/22557444436
https://github.com/arvindcheru/TheRock/actions/runs/22557426154
https://github.com/arvindcheru/TheRock/actions/runs/22557399643
https://github.com/arvindcheru/TheRock/actions/runs/22557267541
https://github.com/arvindcheru/TheRock/actions/runs/22557233878
https://github.com/arvindcheru/TheRock/actions/runs/22557091218

Submission Checklist

Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
@arvindcheru arvindcheru changed the title Native Linux Packages Full Test Workflow Python File Native Linux Packages Install Test Feb 18, 2026
@arvindcheru arvindcheru force-pushed the users/acheruva/native_linux_pkg_test_feb18 branch 4 times, most recently from 5881854 to c7bc06b Compare February 23, 2026 17:24
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py
Comment thread build_tools/packaging/linux/native_linux_packages_test.py
Comment thread build_tools/packaging/linux/native_linux_packages_test.py
@arvindcheru arvindcheru force-pushed the users/acheruva/native_linux_pkg_test_feb18 branch 4 times, most recently from d44441f to 4086874 Compare February 26, 2026 20:21
Copy link
Copy Markdown
Contributor

@nunnikri nunnikri left a comment

Choose a reason for hiding this comment

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

Overall looks ok. As a follow up PR we should split the test as Sanity and Full test and user should be able to choose that using a parameter. If not passed run full test.
Also please cross check the styling guide before submitting https://github.com/ROCm/TheRock/blob/main/docs/development/style_guides/python_style_guide.md

Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
Comment thread build_tools/packaging/linux/native_linux_packages_test.py Outdated
@arvindcheru arvindcheru force-pushed the users/acheruva/native_linux_pkg_test_feb18 branch 2 times, most recently from 62ceb17 to 17a43a7 Compare March 1, 2026 16:14
@arvindcheru arvindcheru force-pushed the users/acheruva/native_linux_pkg_test_feb18 branch from 17a43a7 to 2888105 Compare March 2, 2026 01:38
@arvindcheru arvindcheru merged commit b7533bf into main Mar 2, 2026
94 of 98 checks passed
@arvindcheru arvindcheru deleted the users/acheruva/native_linux_pkg_test_feb18 branch March 2, 2026 07:28
@github-project-automation github-project-automation Bot moved this from TODO to Done in TheRock Triage Mar 2, 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