Skip to content

Adding automation to generate hip tag#3401

Open
ammallya wants to merge 2 commits intomainfrom
users/ammallya/hip-tagging-workflow
Open

Adding automation to generate hip tag#3401
ammallya wants to merge 2 commits intomainfrom
users/ammallya/hip-tagging-workflow

Conversation

@ammallya
Copy link
Contributor

@ammallya ammallya commented Feb 12, 2026

Motivation

This PR adds automation for tagging rocm-systems whenever it is bumped to preserve how HIP was tagged before the move to rocm-systems.

Technical Details

  • Added a Python script (hip_tagging_helper.py) to:
    • Detect if the rocm-systems submodule SHA changed between two commits.
    • Read the ROCm version from version.json in the repo root.
    • Generate a patch tag in the format hip-version_<major>.<minor>.<YYYYDDD0>.
    • Tag the new rocm-systems commit using the GitHub API.
  • Updated workflow to trigger on push to the main branch.

Test Plan

Test Result

  • Submodule SHA change detected correctly.
  • Patch tag generated in the correct format.
  • Tag successfully created on rocm-systems commit.
  • Script exits cleanly if no submodule change occurs.

Submission Checklist

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

Labels

None yet

Projects

Status: TODO

Development

Successfully merging this pull request may close these issues.

1 participant