Skip to content

Conversation

@amd-hsivasun
Copy link
Collaborator

No description provided.

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.


jobs:
git-mirror:
runs-on: AMD-ROCm-Internal-dev1
Copy link
Collaborator

Choose a reason for hiding this comment

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

This file is no longer needed


jobs:
git-mirror:
runs-on: AMD-ROCm-Internal-dev1
Copy link
Collaborator

Choose a reason for hiding this comment

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

This file is no longer needed

@@ -19,7 +19,7 @@ jobs:
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems you have CodeQL in the parent Directory, if so and if it checks for CPP, Actions and Python then no need for this file as well


jobs:
git-mirror:
runs-on: AMD-ROCm-Internal-dev1
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need for this file


jobs:
git-mirror:
runs-on: AMD-ROCm-Internal-dev1
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need for this file

jobs:
git-mirror:
runs-on: AMD-ROCm-Internal-dev1
runs-on: ubuntu-latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need for this file

@ammarwa
Copy link
Collaborator

ammarwa commented Jul 25, 2025

Delete the following workflows as they are not needed anymore:

  • In AQLProfile:
  1. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/aqlprofile/.github/workflows/codeql.yml (Since CodeQL will be part of the parent Directory)
  2. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/aqlprofile/.github/workflows/external-pr-close.yml
  3. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/aqlprofile/.github/workflows/external-pr-sync.yml
  4. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/aqlprofile/.github/workflows/external-pr.yml
  5. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/aqlprofile/.github/workflows/sync-mainline.yaml
  6. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/aqlprofile/.github/workflows/sync-staging.yaml
  • In ROCProfiler Register:
  1. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/rocprofiler-register/.github/workflows/sync-mainline.yaml
  2. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/rocprofiler-register/.github/workflows/sync-staging.yaml
  • In ROCProfiler SDK:
  1. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/rocprofiler-sdk/.github/workflows/generate_afar.yml
  2. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/rocprofiler-sdk/.github/workflows/sync-mainline.yaml
  3. https://github.com/ROCm/rocm-systems/blob/amd/hsivasun/modify-workflows/projects/rocprofiler-sdk/.github/workflows/sync-staging.yaml

Comment on lines +23 to +78
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- distro: "ubuntu"
version: "20.04"
- distro: "ubuntu"
version: "22.04"
- distro: "ubuntu"
version: "24.04"
- distro: "opensuse"
version: "15.5"
- distro: "opensuse"
version: "15.6"
- distro: "rhel"
version: "8.10"
- distro: "rhel"
version: "9.3"
- distro: "rhel"
version: "9.4"
- distro: "rhel"
version: "9.5"

steps:
- uses: actions/checkout@v4
with:
sparse-checkout: projects/rocprofiler-systems
submodules: recursive

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build CI Container
timeout-minutes: 45
uses: nick-fields/retry@v3
with:
retry_wait_seconds: 60
timeout_minutes: 45
max_attempts: 3
command: |
pushd projects/rocprofiler-systems/docker
./build-docker-ci.sh --distro ${{ matrix.distro }} --versions ${{ matrix.version }} --user ${{ secrets.DOCKERHUB_USERNAME }} --push --jobs 2 --elfutils-version 0.186 --boost-version 1.79.0
popd

rocprofiler-systems-release:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 6 months ago

To fix the problem, you should add a permissions block to the workflow file. The best way to do this is to add the block at the top level of the workflow, so it applies to all jobs unless overridden. Based on the workflow's steps, the jobs only need to check out code (which requires contents: read) and do not need to write to the repository or access other resources. Therefore, set contents: read as the minimal permission. If in the future a job needs more permissions, you can override the block at the job level.

Edit the file .github/workflows/rocprofiler-systems-containers.yml and add the following block after the name and run-name lines (before on:):

permissions:
  contents: read

No additional methods, imports, or definitions are needed.

Suggested changeset 1
.github/workflows/rocprofiler-systems-containers.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/rocprofiler-systems-containers.yml b/.github/workflows/rocprofiler-systems-containers.yml
--- a/.github/workflows/rocprofiler-systems-containers.yml
+++ b/.github/workflows/rocprofiler-systems-containers.yml
@@ -2,2 +2,4 @@
 run-name: ci-containers
+permissions:
+  contents: read
 
EOF
@@ -2,2 +2,4 @@
run-name: ci-containers
permissions:
contents: read

Copilot is powered by AI and may make mistakes. Always verify output.
submodules: recursive

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'rocprofiler-systems Continuous Integration Containers' step
Uses Step
uses 'docker/setup-qemu-action' with ref 'v2', not a pinned commit hash
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'rocprofiler-systems Continuous Integration Containers' step
Uses Step
uses 'docker/setup-buildx-action' with ref 'v2', not a pinned commit hash
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'rocprofiler-systems Continuous Integration Containers' step
Uses Step
uses 'docker/login-action' with ref 'v2', not a pinned commit hash

- name: Build CI Container
timeout-minutes: 45
uses: nick-fields/retry@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'rocprofiler-systems Continuous Integration Containers' step
Uses Step
uses 'nick-fields/retry' with ref 'v3', not a pinned commit hash
Comment on lines +24 to +50
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.8]

steps:
- uses: actions/checkout@v4
with:
sparse-checkout: projects/rocprofiler-systems

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: black format
run: |
cd projects/rocprofiler-systems
black --diff --check .

cmake:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 6 months ago

To fix the problem, add a permissions block to the workflow file to explicitly restrict the GITHUB_TOKEN permissions to the minimum required. The best way to do this is to add the following block at the top level of the workflow (after the name and before on), which will apply to all jobs unless overridden:

permissions:
  contents: read

This ensures that all jobs in the workflow only have read access to repository contents, which is sufficient for formatting and linting tasks. No additional imports or definitions are needed, as this is a configuration change in the workflow YAML file.

Suggested changeset 1
.github/workflows/rocprofiler-systems-formatting.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/rocprofiler-systems-formatting.yml b/.github/workflows/rocprofiler-systems-formatting.yml
--- a/.github/workflows/rocprofiler-systems-formatting.yml
+++ b/.github/workflows/rocprofiler-systems-formatting.yml
@@ -3,2 +3,4 @@
 run-name: formatting
+permissions:
+  contents: read
 
EOF
@@ -3,2 +3,4 @@
run-name: formatting
permissions:
contents: read

Copilot is powered by AI and may make mistakes. Always verify output.
Comment on lines +51 to +76
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
with:
sparse-checkout: projects/rocprofiler-systems

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
python3 -m pip install gersemi
- name: gersemi
run: |
set +e
gersemi -i $(find . -type f ! -path '*/external/*' | grep -E 'CMakeLists.txt|\.cmake$')
if [ $(git diff | wc -l) -gt 0 ]; then
echo -e "\nError! CMake code not formatted. Run gersemi ...\n"
echo -e "\nFiles:\n"
git diff --name-only
echo -e "\nFull diff:\n"
git diff
exit 1
fi

source:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 6 months ago

To fix the problem, you should add a permissions block to the workflow file .github/workflows/rocprofiler-systems-formatting.yml. The best way to do this is to add the block at the root level, immediately after the name and run-name fields, so that it applies to all jobs unless overridden. The minimal starting point is contents: read, which restricts the workflow's access to repository contents to read-only. If any job requires additional permissions (e.g., to write to issues or pull requests), you can expand the block accordingly, but based on the provided workflow, contents: read is sufficient. The change should be made at the top of the file, after the workflow name and run-name.

Suggested changeset 1
.github/workflows/rocprofiler-systems-formatting.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/rocprofiler-systems-formatting.yml b/.github/workflows/rocprofiler-systems-formatting.yml
--- a/.github/workflows/rocprofiler-systems-formatting.yml
+++ b/.github/workflows/rocprofiler-systems-formatting.yml
@@ -3,2 +3,4 @@
 run-name: formatting
+permissions:
+  contents: read
 
EOF
@@ -3,2 +3,4 @@
run-name: formatting
permissions:
contents: read

Copilot is powered by AI and may make mistakes. Always verify output.
Comment on lines +77 to +102
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
sparse-checkout: projects/rocprofiler-systems

- name: Install dependencies
run: |
DISTRIB_CODENAME=$(cat /etc/lsb-release | grep DISTRIB_CODENAME | awk -F '=' '{print $NF}')
sudo apt-get update
sudo apt-get install -y software-properties-common wget curl clang-format-18
- name: clang-format
run: |
set +e
FILES=$(find source examples tests -type f | egrep '\.(h|hpp|c|cpp)(|\.in)$')
FORMAT_OUT=$(clang-format-18 -output-replacements-xml ${FILES})
RET=$(echo ${FORMAT_OUT} | grep -c '<replacement ')
if [ "${RET}" -ne 0 ]; then
echo -e "\nError! Code not formatted. Detected ${RET} lines\n"
clang-format-18 -i ${FILES}
git diff
exit ${RET}
fi

includes:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 6 months ago

To fix the problem, add a permissions block to the workflow file. The best practice is to set this at the top level of the workflow, so it applies to all jobs unless overridden. Since the jobs in this workflow only check formatting and do not need to write to the repository or interact with issues or pull requests, the minimal required permission is contents: read. This change should be made near the top of the file, after the name and run-name fields and before the on block, or immediately after the on block. No additional methods, imports, or definitions are needed.


Suggested changeset 1
.github/workflows/rocprofiler-systems-formatting.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/rocprofiler-systems-formatting.yml b/.github/workflows/rocprofiler-systems-formatting.yml
--- a/.github/workflows/rocprofiler-systems-formatting.yml
+++ b/.github/workflows/rocprofiler-systems-formatting.yml
@@ -3,2 +3,4 @@
 run-name: formatting
+permissions:
+  contents: read
 
EOF
@@ -3,2 +3,4 @@
run-name: formatting
permissions:
contents: read

Copilot is powered by AI and may make mistakes. Always verify output.
Comment on lines +22 to +47
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v4
with:
sparse-checkout: projects/rocprofiler-systems
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
cd projects/rocprofiler-systems/source/python/gui
python -m pip install --upgrade pip
pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
cd projects/rocprofiler-systems/source/python/gui
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# flake8 options are defined in setup.cfg
flake8 . --count --statistics

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 6 months ago

To fix the problem, add a permissions block to the workflow to explicitly set the minimal required permissions for the GITHUB_TOKEN. Since the workflow only checks out code and runs linting, it only needs read access to repository contents. The best way to do this is to add permissions: contents: read at the top level of the workflow file, just after the name and run-name fields and before the on block. This will apply the permission restriction to all jobs in the workflow. No other changes are needed.


Suggested changeset 1
.github/workflows/rocprofiler-systems-python.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/rocprofiler-systems-python.yml b/.github/workflows/rocprofiler-systems-python.yml
--- a/.github/workflows/rocprofiler-systems-python.yml
+++ b/.github/workflows/rocprofiler-systems-python.yml
@@ -2,2 +2,4 @@
 run-name: Python
+permissions:
+  contents: read
 
EOF
@@ -2,2 +2,4 @@
run-name: Python
permissions:
contents: read

Copilot is powered by AI and may make mistakes. Always verify output.
@amd-hsivasun amd-hsivasun merged commit a964aa7 into develop Jul 30, 2025
41 of 51 checks passed
amd-hsivasun added a commit that referenced this pull request Jul 30, 2025
amd-hsivasun added a commit that referenced this pull request Jul 30, 2025
systems-assistant bot pushed a commit that referenced this pull request Aug 5, 2025
The target_graphics_version was not formatted properly and was
showing incorrect Target Name. Corrected this by fomatting
major, minor and revision numbers.

Signed-off-by: Bindhiya Kanangot Balakrishnan <[email protected]>
systems-assistant bot pushed a commit that referenced this pull request Aug 5, 2025
systems-assistant bot pushed a commit that referenced this pull request Aug 5, 2025
Updating README to add a note about doc on rocm.docs portal

Co-authored-by: srawat <[email protected]>
Co-authored-by: Bhardwaj, Gopesh <[email protected]>
jayhawk-commits pushed a commit that referenced this pull request Aug 5, 2025
Co-authored-by: Jonathan R. Madsen <[email protected]>

[ROCm/rocprofiler-register commit: 9338b9a]
jayhawk-commits pushed a commit that referenced this pull request Aug 5, 2025
Updating README to add a note about doc on rocm.docs portal

Co-authored-by: srawat <[email protected]>
Co-authored-by: Bhardwaj, Gopesh <[email protected]>

[ROCm/rocprofiler commit: 578db22]
ammallya pushed a commit that referenced this pull request Aug 6, 2025
* Rename some examples still using the "omni" prefix.

* CMake formatting

[ROCm/rocprofiler-systems commit: 656b34b]
jayhawk-commits pushed a commit that referenced this pull request Aug 8, 2025
The target_graphics_version was not formatted properly and was
showing incorrect Target Name. Corrected this by fomatting
major, minor and revision numbers.

Signed-off-by: Bindhiya Kanangot Balakrishnan <[email protected]>

[ROCm/rocm_smi_lib commit: 94dca70]
jayhawk-commits pushed a commit that referenced this pull request Aug 8, 2025
The target_graphics_version was not formatted properly and was
showing incorrect Target Name. Corrected this by fomatting
major, minor and revision numbers.

Signed-off-by: Bindhiya Kanangot Balakrishnan <[email protected]>

[ROCm/rocm_smi_lib commit: 6337f7b]
jayhawk-commits pushed a commit that referenced this pull request Aug 11, 2025
jayhawk-commits pushed a commit that referenced this pull request Aug 18, 2025
ammallya pushed a commit that referenced this pull request Nov 17, 2025
Updated amd-smi set help text
---------

Signed-off-by: gabrpham <[email protected]>
Signed-off-by: Pham, Gabriel <[email protected]>
ammallya pushed a commit that referenced this pull request Nov 18, 2025
Updated amd-smi set help text
---------

Signed-off-by: gabrpham <[email protected]>
Signed-off-by: Pham, Gabriel <[email protected]>

[ROCm/amdsmi commit: 93a027e]
ammallya pushed a commit that referenced this pull request Nov 21, 2025
Updated amd-smi set help text
---------

Signed-off-by: gabrpham <[email protected]>
Signed-off-by: Pham, Gabriel <[email protected]>

[ROCm/amdsmi commit: 93a027e]
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.

3 participants