Skip to content

Bump rocm-libraries from 7567d83 to 2fad249#2

Open
ammallya wants to merge 1 commit intomainfrom
bump-rocm-libraries-2fad249
Open

Bump rocm-libraries from 7567d83 to 2fad249#2
ammallya wants to merge 1 commit intomainfrom
bump-rocm-libraries-2fad249

Conversation

@ammallya
Copy link
Owner

Bumps ammallya/rocm-libraries from 7567d83 to 2fad249.

Commits

See full comparison here:

ammallya/rocm-libraries@7567d83...2fad249


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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant