From 311e279596a7f951039047bddca24727c244a18f Mon Sep 17 00:00:00 2001 From: David Galiffi Date: Wed, 13 Aug 2025 09:42:49 -0400 Subject: [PATCH] Add "branch" requirement to "push" workflows. (#329) * Add "branch" requirement to "push" workflows. * Deleted obsolete workflow files Signed-off-by: David Galiffi * Fix path to the `check-copyright.sh` in `pre-commit-config.yaml` --------- Signed-off-by: David Galiffi --- .../rocprofiler-systems-containers.yml | 2 ++ .github/workflows/rocprofiler-systems-cpack.yml | 2 ++ .../rocprofiler-systems-formatting.yml | 2 ++ .../workflows/rocprofiler-systems-opensuse.yml | 2 ++ .../workflows/rocprofiler-systems-python.yml | 2 ++ .../workflows/rocprofiler-systems-redhat.yml | 2 ++ .../rocprofiler-systems-ubuntu-jammy.yml | 2 ++ .../rocprofiler-systems-ubuntu-noble.yml | 2 ++ projects/rocprofiler-systems/.github/CODEOWNERS | 8 -------- .../rocprofiler-systems/.github/dependabot.yml | 17 ----------------- .../rocprofiler-systems/.pre-commit-config.yaml | 2 +- 11 files changed, 17 insertions(+), 26 deletions(-) delete mode 100644 projects/rocprofiler-systems/.github/CODEOWNERS delete mode 100644 projects/rocprofiler-systems/.github/dependabot.yml diff --git a/.github/workflows/rocprofiler-systems-containers.yml b/.github/workflows/rocprofiler-systems-containers.yml index fd93df1e75..b9d9bef8a2 100644 --- a/.github/workflows/rocprofiler-systems-containers.yml +++ b/.github/workflows/rocprofiler-systems-containers.yml @@ -7,6 +7,8 @@ on: schedule: - cron: 0 5 * * * push: + branches: + - develop paths: - '.github/workflows/rocprofiler-systems-containers.yml' - 'projects/rocprofiler-systems/docker/**' diff --git a/.github/workflows/rocprofiler-systems-cpack.yml b/.github/workflows/rocprofiler-systems-cpack.yml index fea8884084..ee5b03c095 100644 --- a/.github/workflows/rocprofiler-systems-cpack.yml +++ b/.github/workflows/rocprofiler-systems-cpack.yml @@ -4,6 +4,8 @@ run-name: cpack on: workflow_dispatch: push: + branches: + - develop paths: - 'projects/rocprofiler-systems/docker/**' - '!projects/rocprofiler-systems/*.md' diff --git a/.github/workflows/rocprofiler-systems-formatting.yml b/.github/workflows/rocprofiler-systems-formatting.yml index e04b2f89d8..872fbccd2f 100644 --- a/.github/workflows/rocprofiler-systems-formatting.yml +++ b/.github/workflows/rocprofiler-systems-formatting.yml @@ -4,6 +4,8 @@ run-name: formatting on: push: + branches: + - develop paths: - 'projects/rocprofiler-systems/**' pull_request: diff --git a/.github/workflows/rocprofiler-systems-opensuse.yml b/.github/workflows/rocprofiler-systems-opensuse.yml index 0975db1345..d3d7fb32e3 100644 --- a/.github/workflows/rocprofiler-systems-opensuse.yml +++ b/.github/workflows/rocprofiler-systems-opensuse.yml @@ -3,6 +3,8 @@ run-name: opensuse-15 on: push: + branches: + - develop paths: - '.github/workflows/rocprofiler-systems-opensuse.yml' - 'projects/rocprofiler-systems/**' diff --git a/.github/workflows/rocprofiler-systems-python.yml b/.github/workflows/rocprofiler-systems-python.yml index 37cd5f6db3..342e5b86ac 100644 --- a/.github/workflows/rocprofiler-systems-python.yml +++ b/.github/workflows/rocprofiler-systems-python.yml @@ -3,6 +3,8 @@ run-name: Python on: push: + branches: + - develop paths: - 'projects/rocprofiler-systems/**' - 'projects/rocprofiler-systems/source/python/gui/*.py' diff --git a/.github/workflows/rocprofiler-systems-redhat.yml b/.github/workflows/rocprofiler-systems-redhat.yml index 218cbf149e..63b490e052 100644 --- a/.github/workflows/rocprofiler-systems-redhat.yml +++ b/.github/workflows/rocprofiler-systems-redhat.yml @@ -3,6 +3,8 @@ run-name: redhat on: push: + branches: + - develop paths: - '.github/workflows/rocprofiler-systems-redhat.yml' - 'projects/rocprofiler-systems/**' diff --git a/.github/workflows/rocprofiler-systems-ubuntu-jammy.yml b/.github/workflows/rocprofiler-systems-ubuntu-jammy.yml index 2de949fb73..10d198ffb1 100644 --- a/.github/workflows/rocprofiler-systems-ubuntu-jammy.yml +++ b/.github/workflows/rocprofiler-systems-ubuntu-jammy.yml @@ -3,6 +3,8 @@ run-name: ubuntu-jammy on: push: + branches: + - develop paths: - '.github/workflows/rocprofiler-systems-ubuntu-jammy.yml' - 'projects/rocprofiler-systems/**' diff --git a/.github/workflows/rocprofiler-systems-ubuntu-noble.yml b/.github/workflows/rocprofiler-systems-ubuntu-noble.yml index 46e2d06022..a2a24b1189 100644 --- a/.github/workflows/rocprofiler-systems-ubuntu-noble.yml +++ b/.github/workflows/rocprofiler-systems-ubuntu-noble.yml @@ -3,6 +3,8 @@ run-name: ubuntu-noble on: push: + branches: + - develop paths: - '.github/workflows/rocprofiler-systems-ubuntu-noble.yml' - 'projects/rocprofiler-systems/**' diff --git a/projects/rocprofiler-systems/.github/CODEOWNERS b/projects/rocprofiler-systems/.github/CODEOWNERS deleted file mode 100644 index 7718f62c65..0000000000 --- a/projects/rocprofiler-systems/.github/CODEOWNERS +++ /dev/null @@ -1,8 +0,0 @@ -* @ROCm/rocprof-sys @jrmadsen - -# Documentation files -docs/** @ROCm/rocm-documentation -*.md @ROCm/rocm-documentation -*.rst @ROCm/rocm-documentation -.readthedocs.yaml @ROCm/rocm-documentation -docs/sphinx/* @samjwu diff --git a/projects/rocprofiler-systems/.github/dependabot.yml b/projects/rocprofiler-systems/.github/dependabot.yml deleted file mode 100644 index d24c82f8f3..0000000000 --- a/projects/rocprofiler-systems/.github/dependabot.yml +++ /dev/null @@ -1,17 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "pip" # See documentation for possible values - directory: "/docs/sphinx" # Location of package manifests - open-pull-requests-limit: 10 - schedule: - interval: "daily" - labels: - - "documentation" - - "dependencies" - reviewers: - - "samjwu" diff --git a/projects/rocprofiler-systems/.pre-commit-config.yaml b/projects/rocprofiler-systems/.pre-commit-config.yaml index 9e0c2e1586..3f954dab5f 100644 --- a/projects/rocprofiler-systems/.pre-commit-config.yaml +++ b/projects/rocprofiler-systems/.pre-commit-config.yaml @@ -50,7 +50,7 @@ repos: - id: check-copyright name: copyright-detector require_serial: true # Slightly slower, but prevents hook running script many times - entry: ./scripts/check-copyright.sh + entry: ./projects/rocprofiler-systems/scripts/check-copyright.sh language: script files: \.(c|h|txt|cpp|hpp|py)$ exclude: ^\.|^docs/|^examples/lulesh/|^examples/mpi/|^examples/openmp/|^external/|^cmake/