Open
Conversation
1 task
ammallya
added a commit
to ROCm/TheRock
that referenced
this pull request
Mar 18, 2026
## Motivation Adding an automated workflow to manage submodule bumps for `rocm-systems` and `rocm-libraries` and to propagate corresponding reference updates back into those repositories. - Submodules are periodically updated to the latest upstream commits. - Workflow files in `rocm-systems` and `rocm-libraries` always reference the latest `ROCm/TheRock` commit. - Stale PRs created during the bump process are automatically cleaned up. --- ## Technical Details This change introduces a Python automation script and a GitHub Actions workflow. ### Python Automation Script A new script: build_tools/github_actions/bump_automation.py #### Scheduled (`schedule`) Runs every 12 hours and performs the following: 1. Retrieves the latest commit from: - `ROCm/rocm-systems` - `ROCm/rocm-libraries` 2. Creates a new branch in `ROCm/TheRock`. 3. Updates the corresponding submodule pointer. 4. Opens a PR in `ROCm/TheRock` with the updated submodule reference. #### Push Triggered when `ROCm/TheRock` receives a push to the `main` branch. The script: 1. Detects whether either monitored submodule changed. 2. Closes stale bump PRs related to the previous SHA. 3. Updates `ROCm/TheRock` references in workflow YAML files in: - `rocm-systems` - `rocm-libraries` 4. Creates a PR in the affected repository updating the `ref:` field. ## Test Plan Scheduled Run: ammallya#2 Push Event : Stale PR close: ammallya#1 Update ref: ammallya/rocm-systems#7 (Note date is also present added in the future) --- ## Test Result Results observed: - Submodule bump PRs were successfully created. - Stale PRs were automatically detected and closed. - Workflow files in `rocm-systems` and `rocm-libraries` were updated with the correct `ROCm/TheRock` commit reference. - Generated PRs included correct commit comparison links. --- ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Marius Brehler <marius.brehler@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps ammallya/rocm-libraries from
7567d83to2fad249.Commits
See full comparison here:
ammallya/rocm-libraries@7567d83...2fad249