From 296a4021f9c64929c10c443eecf43e56f803b9a2 Mon Sep 17 00:00:00 2001
From: Jason Bonnell <166553723+jbonnell-amd@users.noreply.github.com>
Date: Tue, 26 Aug 2025 14:29:15 -0400
Subject: [PATCH] [rocprofiler-compute] Fix rocprofiler-compute workflows
(#761)
* add working-directory to ver_check step in rocprofiler-compute-packaging.yml
* Remove compute mi-rhel9 workflow badge since workflow is no longer in develop
* Update actions to v5 in rocprofiler-compute-docs
* Add working directory to steps in rocprofiler-compute-docs.yml
* Revert back to v4 pages
* Remove rocprofiler-compute-docs.yml workflow
* Remove docs workflow badge from rocprofiler-compute in README.md
* Remove rocprofiler-compute-packaging.yml, update README.md badges
---
.../workflows/rocprofiler-compute-docs.yml | 67 ----------------
.../rocprofiler-compute-packaging.yml | 76 -------------------
README.md | 2 +-
3 files changed, 1 insertion(+), 144 deletions(-)
delete mode 100644 .github/workflows/rocprofiler-compute-docs.yml
delete mode 100644 .github/workflows/rocprofiler-compute-packaging.yml
diff --git a/.github/workflows/rocprofiler-compute-docs.yml b/.github/workflows/rocprofiler-compute-docs.yml
deleted file mode 100644
index c0f6be5770..0000000000
--- a/.github/workflows/rocprofiler-compute-docs.yml
+++ /dev/null
@@ -1,67 +0,0 @@
-name: rocprofiler-compute Documentation
-
-on:
- push:
- branches:
- - develop
- paths:
- - 'projects/rocprofiler-compute/docs/archive/docs-2.x/**'
- - 'projects/rocprofiler-compute/docs/archive/docs-1.x/**'
- - '.github/workflows/rocprofiler-compute-docs.yml'
-
- workflow_dispatch:
-
-permissions:
- contents: read
- pages: write
- id-token: write
-
-concurrency:
- group: "pages"
- cancel-in-progress: true
-
-jobs:
- # Build job
- build:
- runs-on: ubuntu-latest
- container:
- image: sphinxdoc/sphinx
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- sparse-checkout: projects/rocprofiler-compute
- - name: Additional python packages
- run: |
- cd projects/rocprofiler-compute
- pip3 install -r docs/archive/requirements-doc.txt
- - name: Setup Pages
- uses: actions/configure-pages@v4
- - name: Build 1.x docs
- run: |
- cd docs/archive/docs-1.x
- make html
- - name: Build 2.x docs
- run: |
- cd docs/archive/docs-2.x
- make html
- - name: Relocate 1.x docs
- run: |
- mv docs/archive/docs-1.x/_build/html docs/archive/_build/html/1.x
- - name: Upload artifact
- uses: actions/upload-pages-artifact@v3
- with:
- path: ./docs/archive/_build/html
-
- # Deployment job
- deploy:
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
- runs-on: ubuntu-latest
- needs: build
- steps:
- - name: Deploy to GitHub Pages
- id: deployment
- uses: actions/deploy-pages@v4
diff --git a/.github/workflows/rocprofiler-compute-packaging.yml b/.github/workflows/rocprofiler-compute-packaging.yml
deleted file mode 100644
index 1a8d73ce49..0000000000
--- a/.github/workflows/rocprofiler-compute-packaging.yml
+++ /dev/null
@@ -1,76 +0,0 @@
-name: rocprofiler-compute Packaging
-
-on:
- push:
- branches:
- - develop
- paths:
- - 'projects/rocprofiler-compute/**'
- tags:
- - "v[1-9].[0-9]+.[0-9]+*"
- - "rocm-[0-9]+.[0-9]+.[0-9]+*"
- workflow_dispatch:
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
-
-jobs:
- distbuild:
- runs-on: ubuntu-latest
- name: Create release distribution
- env:
- INSTALL_DIR: /tmp
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
- with:
- sparse-checkout: projects/rocprofiler-compute
- - name: Verify VERSION file consistent with tag
- run: utils/ver_check.py --tag ${{github.ref_name}}
- - name: Install Python
- uses: actions/setup-python@v5
- with:
- python-version: '3.8'
- - name: Python dependency installs
- working-directory: projects/rocprofiler-compute
- run: python3 -m pip install -t${INSTALL_DIR}/python-libs -r requirements.txt
- - name: Configure
- working-directory: projects/rocprofiler-compute
- run: |
- mkdir build
- cd build
- cmake -DPYTHON_DEPS=${INSTALL_DIR}/python-libs ..
- - name: Release tarball
- working-directory: projects/rocprofiler-compute
- run: |
- cd build
- make package_source
- - name: Rename tarball
- working-directory: projects/rocprofiler-compute
- run: mv build/rocprofiler-compute-*.tar.gz build/rocprofiler-compute-${{github.ref_name}}.tar.gz
- - name: Archive tarball
- uses: actions/upload-artifact@v4
- with:
- name: rocprofiler-compute-${{github.ref_name}}.tar.gz
- path: projects/rocprofiler-compute/build/rocprofiler-compute-${{github.ref_name}}.tar.gz
- - name: Set version
- run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
- - name: Determine release name
- working-directory: projects/rocprofiler-compute
- run: |
- if [[ ${{github.ref_name}} == rocm-* ]]; then
- echo "RELEASE_NAME=rocprofiler-compute ${{ env.VERSION }} for ${{github.ref_name}}"
- else
- echo "RELEASE_NAME=rocprofiler-compute ${{ env.VERSION }}"
- fi >> $GITHUB_ENV
- - name: Upload tarball Release Asset
- uses: softprops/action-gh-release@v2
- if: startsWith(github.ref, 'refs/tags/')
- with:
- fail_on_unmatched: True
- generate_release_notes: True
- draft: False # toggle for debugging
- files: |
- projects/rocprofiler-computebuild/rocprofiler-compute-${{github.ref_name}}.tar.gz
- name: ${{ env.RELEASE_NAME }}
diff --git a/README.md b/README.md
index d60cce5de6..1bc7b2efde 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ This table provides the current status of the migration of specific ROCm systems
| `rocminfo` | Public | Completed | | |
| `rocm-smi-lib` | Public | Completed | | |
| `rocprofiler` | Public | Completed | [](https://dev.azure.com/ROCm-CI/ROCm-CI/_build/latest?definitionId=329&repoName=ROCm%2Frocm-systems&branchName=develop) | |
-| `rocprofiler-compute` | Public | Completed | | [](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-docs.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-formatting.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-mi-rhel9.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-packaging.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-rhel-8.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-tarball.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-ubuntu-jammy.yml) |
+| `rocprofiler-compute` | Public | Completed | | [](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-formatting.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-rhel-8.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-tarball.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-compute-ubuntu-jammy.yml) |
| `rocprofiler-register` | Public | Completed | [](https://dev.azure.com/ROCm-CI/ROCm-CI/_build/latest?definitionId=327&repoName=ROCm%2Frocm-systems&branchName=develop) | [](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-register-continuous-integration.yml) |
| `rocprofiler-sdk` | Public | Completed | | [](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-code_coverage.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-codeql.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-continuous_integration.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-docs.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-formatting.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-python.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-restrictions.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-sdk-rocm_release_compatibility.yml) |
| `rocprofiler-systems` | Public | Completed | | [](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-containers.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-cpack.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-formatting.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-opensuse.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-python.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-redhat.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ubuntu-jammy.yml)
[](https://github.com/ROCm/rocm-systems/actions/workflows/rocprofiler-systems-ubuntu-noble.yml) |