Skip to content

Commit d5f490f

Browse files
authored
Sets heavy GitHub CI workflows to not trigger on text documentation-only changes. (#2417)
Sets heavy GitHub CI workflows to not trigger on docs-only changes. Specifically, sets azure-ci-dispatcher.yml and therock-ci.yml, as well as many rocprofiler workflows, to not trigger when the change consists entirely of docs-only files.
1 parent 95a31b1 commit d5f490f

27 files changed

Lines changed: 367 additions & 65 deletions

.github/scripts/therock_configure_ci.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,16 @@ def check_for_workflow_file_related_to_ci(paths: Optional[Iterable[str]]) -> boo
8888
"docs/*",
8989
".gitignore",
9090
"*.md",
91+
"*.rtf",
9192
"*.rst",
93+
"*/.markdownlint-ci2.yaml",
94+
"*/.readthedocs.yaml",
95+
"*/.spellcheck.local.yaml",
96+
"*/.wordlist.txt",
9297
"projects/*/docs/*",
9398
"projects/*/.gitignore",
94-
"projects/*/*.md",
95-
"projects/*/*.rst",
9699
"shared/*/docs/*",
97100
"shared/*/.gitignore",
98-
"shared/*/*.md",
99-
"shared/*/*.rst",
100101
]
101102

102103

.github/workflows/azure-ci-dispatcher.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ on:
2626
- staging
2727
- main
2828
- release-staging/rocm-rel-7.*
29+
paths-ignore: # Do not trigger full tests on documentation-only changes
30+
- '**/*.md'
31+
- '**/*.rtf'
32+
- '**/*.rst'
33+
- '**/.markdownlint-ci2.yaml'
34+
- '**/.readthedocs.yaml'
35+
- '**/.spellcheck.local.yaml'
36+
- '**/.wordlist.txt'
37+
- 'docs/**'
38+
- 'projects/*/docs/**'
2939

3040
concurrency:
3141
group: azure-ci-dispatcher-${{ github.event.pull_request.number || github.ref }}

.github/workflows/rocprofiler-compute-continuous-integration.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,33 @@ on:
1919
paths:
2020
- '.github/workflows/rocprofiler-compute-continuous-integration.yml'
2121
- 'projects/rocprofiler-compute/**'
22-
- '!projects/rocprofiler-compute/*.md'
22+
- '!**/*.md'
23+
- '!**/*.rtf'
24+
- '!**/*.rst'
25+
- '!**/.markdownlint-ci2.yaml'
26+
- '!**/.readthedocs.yaml'
27+
- '!**/.spellcheck.local.yaml'
28+
- '!**/.wordlist.txt'
2329
- '!projects/rocprofiler-compute/docs/**'
2430
- '!projects/rocprofiler-compute/source/docs/**'
2531
- '!projects/rocprofiler-compute/source/python/gui/**'
2632
- '!projects/rocprofiler-compute/docker/**'
27-
- '!projects/rocprofiler-compute/.wordlist.txt'
2833
- '!projects/rocprofiler-compute/CMakePresets.json'
2934
pull_request:
3035
paths:
3136
- '.github/workflows/rocprofiler-compute-continuous-integration.yml'
3237
- 'projects/rocprofiler-compute/**'
33-
- '!projects/rocprofiler-compute/*.md'
38+
- '!**/*.md'
39+
- '!**/*.rtf'
40+
- '!**/*.rst'
41+
- '!**/.markdownlint-ci2.yaml'
42+
- '!**/.readthedocs.yaml'
43+
- '!**/.spellcheck.local.yaml'
44+
- '!**/.wordlist.txt'
3445
- '!projects/rocprofiler-compute/docs/**'
3546
- '!projects/rocprofiler-compute/source/docs/**'
3647
- '!projects/rocprofiler-compute/source/python/gui/**'
3748
- '!projects/rocprofiler-compute/docker/**'
38-
- '!projects/rocprofiler-compute/.wordlist.txt'
3949
- '!projects/rocprofiler-compute/CMakePresets.json'
4050

4151
env:

.github/workflows/rocprofiler-compute-formatting.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ on:
1010
paths:
1111
- '.github/workflows/rocprofiler-compute-formatting.yml'
1212
- 'projects/rocprofiler-compute/**'
13+
- '!**/*.md'
14+
- '!**/*.rtf'
15+
- '!**/*.rst'
16+
- '!**/.markdownlint-ci2.yaml'
17+
- '!**/.readthedocs.yaml'
18+
- '!**/.spellcheck.local.yaml'
19+
- '!**/.wordlist.txt'
20+
- '!docs/**'
21+
- '!projects/*/docs/**'
1322

1423
concurrency:
1524
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/rocprofiler-compute-rhel-8.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,26 @@ on:
1010
paths:
1111
- '.github/workflows/rocprofiler-compute-rhel-8.yml'
1212
- 'projects/rocprofiler-compute/**'
13-
- '!projects/rocprofiler-compute/*.md'
14-
- '!projects/rocprofiler-compute/.github/**/*.md'
13+
- '!**/*.md'
14+
- '!**/*.rtf'
15+
- '!**/*.rst'
16+
- '!**/.markdownlint-ci2.yaml'
17+
- '!**/.readthedocs.yaml'
18+
- '!**/.spellcheck.local.yaml'
19+
- '!**/.wordlist.txt'
1520
- '!projects/rocprofiler-compute/docs/**'
1621
- '!projects/rocprofiler-compute/docker/**'
1722
pull_request:
1823
paths:
1924
- '.github/workflows/rocprofiler-compute-rhel-8.yml'
2025
- 'projects/rocprofiler-compute/**'
21-
- '!projects/rocprofiler-compute/*.md'
22-
- '!projects/rocprofiler-compute/.github/**/*.md'
26+
- '!**/*.md'
27+
- '!**/*.rtf'
28+
- '!**/*.rst'
29+
- '!**/.markdownlint-ci2.yaml'
30+
- '!**/.readthedocs.yaml'
31+
- '!**/.spellcheck.local.yaml'
32+
- '!**/.wordlist.txt'
2333
- '!projects/rocprofiler-compute/docs/**'
2434
- '!projects/rocprofiler-compute/docker/**'
2535

.github/workflows/rocprofiler-compute-tarball.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,26 @@ on:
77
paths:
88
- '.github/workflows/rocprofiler-compute-tarball.yml'
99
- 'projects/rocprofiler-compute/**'
10-
- '!projects/rocprofiler-compute/*.md'
10+
- '!**/*.md'
11+
- '!**/*.rtf'
12+
- '!**/*.rst'
13+
- '!**/.markdownlint-ci2.yaml'
14+
- '!**/.readthedocs.yaml'
15+
- '!**/.spellcheck.local.yaml'
16+
- '!**/.wordlist.txt'
1117
- '!projects/rocprofiler-compute/docs/**'
1218
- '!projects/rocprofiler-compute/docker/**'
1319
pull_request:
1420
paths:
1521
- '.github/workflows/rocprofiler-compute-tarball.yml'
1622
- 'projects/rocprofiler-compute/**'
17-
- '!projects/rocprofiler-compute/*.md'
23+
- '!**/*.md'
24+
- '!**/*.rtf'
25+
- '!**/*.rst'
26+
- '!**/.markdownlint-ci2.yaml'
27+
- '!**/.readthedocs.yaml'
28+
- '!**/.spellcheck.local.yaml'
29+
- '!**/.wordlist.txt'
1830
- '!projects/rocprofiler-compute/docs/**'
1931
- '!projects/rocprofiler-compute/docker/**'
2032

.github/workflows/rocprofiler-compute-ubuntu-jammy.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,26 @@ on:
99
paths:
1010
- '.github/workflows/rocprofiler-compute-ubuntu-jammy.yml'
1111
- 'projects/rocprofiler-compute/**'
12-
- '!projects/rocprofiler-compute/*.md'
13-
- '!projects/rocprofiler-compute/.github/**/*.md'
12+
- '!**/*.md'
13+
- '!**/*.rtf'
14+
- '!**/*.rst'
15+
- '!**/.markdownlint-ci2.yaml'
16+
- '!**/.readthedocs.yaml'
17+
- '!**/.spellcheck.local.yaml'
18+
- '!**/.wordlist.txt'
1419
- '!projects/rocprofiler-compute/docs/**'
1520
- '!projects/rocprofiler-compute/docker/**'
1621
pull_request:
1722
paths:
1823
- '.github/workflows/rocprofiler-compute-ubuntu-jammy.yml'
1924
- 'projects/rocprofiler-compute/**'
20-
- '!projects/rocprofiler-compute/*.md'
21-
- '!projects/rocprofiler-compute/.github/**/*.md'
25+
- '!**/*.md'
26+
- '!**/*.rtf'
27+
- '!**/*.rst'
28+
- '!**/.markdownlint-ci2.yaml'
29+
- '!**/.readthedocs.yaml'
30+
- '!**/.spellcheck.local.yaml'
31+
- '!**/.wordlist.txt'
2232
- '!projects/rocprofiler-compute/docs/**'
2333
- '!projects/rocprofiler-compute/docker/**'
2434

.github/workflows/rocprofiler-register-continuous-integration.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,25 @@ on:
66
- develop
77
paths:
88
- 'projects/rocprofiler-register/**'
9-
- '!projects/rocprofiler-register/*.md'
109
- '.github/workflows/rocprofiler-register-continuous-integration.yml'
10+
- '!**/*.md'
11+
- '!**/*.rtf'
12+
- '!**/*.rst'
13+
- '!**/.markdownlint-ci2.yaml'
14+
- '!**/.readthedocs.yaml'
15+
- '!**/.spellcheck.local.yaml'
16+
- '!**/.wordlist.txt'
1117
pull_request:
1218
paths:
1319
- 'projects/rocprofiler-register/**'
14-
- '!projects/rocprofiler-register/*.md'
1520
- '.github/workflows/rocprofiler-register-continuous-integration.yml'
21+
- '!**/*.md'
22+
- '!**/*.rtf'
23+
- '!**/*.rst'
24+
- '!**/.markdownlint-ci2.yaml'
25+
- '!**/.readthedocs.yaml'
26+
- '!**/.spellcheck.local.yaml'
27+
- '!**/.wordlist.txt'
1628

1729
concurrency:
1830
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/rocprofiler-sdk-code_coverage.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,29 @@ on:
1111
- develop
1212
paths:
1313
- 'projects/rocprofiler-sdk/**'
14+
- '.github/workflows/rocprofiler-sdk-code_coverage.yml'
15+
- '!**/*.md'
16+
- '!**/*.rtf'
17+
- '!**/*.rst'
18+
- '!**/.markdownlint-ci2.yaml'
19+
- '!**/.readthedocs.yaml'
20+
- '!**/.spellcheck.local.yaml'
21+
- '!**/.wordlist.txt'
1422
- '!projects/rocprofiler-sdk/CODEOWNERS'
1523
- '!projects/rocprofiler-sdk/source/docs/**'
16-
- '!projects/rocprofiler-sdk/*.md'
17-
- '!projects/rocprofiler-sdk/**/README.md'
18-
- '.github/workflows/rocprofiler-sdk-code_coverage.yml'
1924
pull_request:
2025
paths:
2126
- 'projects/rocprofiler-sdk/**'
27+
- '.github/workflows/rocprofiler-sdk-code_coverage.yml'
28+
- '!**/*.md'
29+
- '!**/*.rtf'
30+
- '!**/*.rst'
31+
- '!**/.markdownlint-ci2.yaml'
32+
- '!**/.readthedocs.yaml'
33+
- '!**/.spellcheck.local.yaml'
34+
- '!**/.wordlist.txt'
2235
- '!projects/rocprofiler-sdk/CODEOWNERS'
2336
- '!projects/rocprofiler-sdk/source/docs/**'
24-
- '!projects/rocprofiler-sdk/*.md'
25-
- '!projects/rocprofiler-sdk/**/README.md'
26-
- '.github/workflows/rocprofiler-sdk-code_coverage.yml'
2737

2838
concurrency:
2939
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/rocprofiler-sdk-codeql.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,31 @@ on:
66
paths:
77
- '.github/workflows/rocprofiler-sdk-codeql.yml'
88
- 'projects/rocprofiler-sdk/**'
9+
- '!**/*.md'
10+
- '!**/*.rtf'
11+
- '!**/*.rst'
12+
- '!**/.markdownlint-ci2.yaml'
13+
- '!**/.readthedocs.yaml'
14+
- '!**/.spellcheck.local.yaml'
15+
- '!**/.wordlist.txt'
916
- '!projects/rocprofiler-sdk/CODEOWNERS'
1017
- '!projects/rocprofiler-sdk/source/docs/**'
11-
- '!projects/rocprofiler-sdk/*.md'
1218

1319
push:
1420
branches:
1521
- develop
1622
paths:
1723
- '.github/workflows/rocprofiler-sdk-codeql.yml'
1824
- 'projects/rocprofiler-sdk/**'
25+
- '!**/*.md'
26+
- '!**/*.rtf'
27+
- '!**/*.rst'
28+
- '!**/.markdownlint-ci2.yaml'
29+
- '!**/.readthedocs.yaml'
30+
- '!**/.spellcheck.local.yaml'
31+
- '!**/.wordlist.txt'
1932
- '!projects/rocprofiler-sdk/CODEOWNERS'
2033
- '!projects/rocprofiler-sdk/source/docs/**'
21-
- '!projects/rocprofiler-sdk/*.md'
2234

2335
env:
2436
ROCM_PATH: "/opt/rocm"

0 commit comments

Comments
 (0)