Excludes (more) docs-only changes from .azuredevops/rocm_ci_caller.yml. (#2615)
Motivation
We wish to avoid triggering full Jenkins runs for docs-only PRs, as this takes up testing resources and slows development time. rocm_ci_caller.yml already excludes some docs-only changes, but this can be improved to exclude them along more paths.
Technical Details
The checks that rocm_ci_caller.yml uses to determine if a changed file in a PR is worth a Jenkins run has been increased to exclude more paths and more file suffixes.
JIRA ID
AIROCDOC-78, AIROCDOC-424
Test Plan
Created a test branch users/dsclear/shorten_workflows_test_root with the changes in this PR, branched from develop.
Branched users/dsclear/shorten_workflows_test_bin_3 and users/dsclear/shorten_workflows_test_text_3 from users/dsclear/shorten_workflows_test_root.
Modified users/dsclear/shorten_workflows_test_bin_3 to add two .h files, and submitted a PR into users/dsclear/shorten_workflows_test_root (Test PR, do not merge. Test PR to test Jenkins CI/CD modifications. #2613).
Modified users/dsclear/shorten_workflows_test_text_3 to add a new .txt file, and submitted a PR into users/dsclear/shorten_workflows_test_root (Test PR, do not merge. Test PR to test Jenkins CI/CD modifications (docs only). #2614).
Test Result
The test PR in step 3 caused rocm_ci_caller.yml to attempt to trigger Jenkins, as this is a 'non-docs' change.
The test PR in step 4 had the attempt to trigger Jenkins skipped, as this is a 'docs-only' change.
This commit is contained in:
@@ -60,13 +60,29 @@ jobs:
|
|||||||
if [[ "$file" == projects/clr/* || "$file" == projects/hip/* || "$file" == projects/hip-tests/* ]]; then
|
if [[ "$file" == projects/clr/* || "$file" == projects/hip/* || "$file" == projects/hip-tests/* ]]; then
|
||||||
WINDOWS_SKIP=false
|
WINDOWS_SKIP=false
|
||||||
fi
|
fi
|
||||||
if [[ "$file" == projects/hip/docs/* || \
|
|
||||||
"$file" == projects/rdc/docs/* || \
|
# Exclude paths:
|
||||||
"$file" == projects/rocm-smi-lib/docs/* || \
|
# docs/**
|
||||||
"$file" == projects/rocminfo/docs/* || \
|
# *.md
|
||||||
"$file" == projects/rocprofiler-compute/docs/* || \
|
# *.rtf
|
||||||
"$file" == projects/rocprofiler-systems/docs/* || \
|
# *.rst
|
||||||
"$file" == projects/rocr-runtime/runtime/docs/* ]]; then
|
#
|
||||||
|
# projects/*/docs/**
|
||||||
|
# **/.markdownlint-ci2.yaml
|
||||||
|
# **/.readthedocs.yaml
|
||||||
|
# **/.spellcheck.local.yaml
|
||||||
|
# **/.wordlist.txt
|
||||||
|
if [[ "${file}" == docs/* || \
|
||||||
|
"${file}" == *.md || \
|
||||||
|
"${file}" == *.rtf || \
|
||||||
|
"${file}" == *.rst
|
||||||
|
]] || \
|
||||||
|
grep --quiet --extended-regexp '^projects/[^/.]+/docs/.*$' <<< "${file}" || \
|
||||||
|
grep --quiet --extended-regexp '^([^/.]+/)*.markdownlint-ci2.yaml$' <<< "${file}" || \
|
||||||
|
grep --quiet --extended-regexp '^([^/.]+/)*.readthedocs.yaml$' <<< "${file}" || \
|
||||||
|
grep --quiet --extended-regexp '^([^/.]+/)*.spellcheck.local.yaml$' <<< "${file}" || \
|
||||||
|
grep --quiet --extended-regexp '^([^/.]+/)*.wordlist.txt$' <<< "${file}" \
|
||||||
|
; then
|
||||||
WINDOWS_SKIP=true
|
WINDOWS_SKIP=true
|
||||||
MATCH_FOUND=false
|
MATCH_FOUND=false
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user