Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions .azuredevops/hipblas-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,7 @@ trigger:
exclude:
- projects/hipblas-common/*.md

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- projects/hipblas-common
exclude:
- projects/hipblas-common/*.md
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/hipBLAS-common.yml@pipelines_repo
Expand Down
17 changes: 1 addition & 16 deletions .azuredevops/hipblaslt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,7 @@ trigger:
- projects/hipblaslt/.*.y*ml
- projects/hipblaslt/*.md

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- projects/hipblaslt
exclude:
- projects/hipblaslt/.githooks
- projects/hipblaslt/.github
- projects/hipblaslt/docs
- projects/hipblaslt/CODEOWNERS
- projects/hipblaslt/.*.y*ml
- projects/hipblaslt/*.md
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/hipBLASLt.yml@pipelines_repo
Expand Down
20 changes: 1 addition & 19 deletions .azuredevops/hipcub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,7 @@ trigger:
- projects/hipcub/LICENSE.txt
- projects/hipcub/NOTICES.txt

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- projects/hipcub
exclude:
- projects/hipcub/.githooks
- projects/hipcub/.github
- projects/hipcub/.gitlab
- projects/hipcub/.jenkins
- projects/hipcub/docs
- projects/hipcub/.*.y*ml
- projects/hipcub/*.md
- projects/hipcub/LICENSE.txt
- projects/hipcub/NOTICES.txt
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/hipCUB.yml@pipelines_repo
Expand Down
17 changes: 1 addition & 16 deletions .azuredevops/hipfft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,7 @@ trigger:
- projects/hipfft/.*.y*ml
- projects/hipfft/*.md

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- projects/hipfft
exclude:
- projects/hipfft/.githooks
- projects/hipfft/.github
- projects/hipfft/.jenkins
- projects/hipfft/docs
- projects/hipfft/.*.y*ml
- projects/hipfft/*.md
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/hipFFT.yml@pipelines_repo
Expand Down
18 changes: 1 addition & 17 deletions .azuredevops/hiprand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,7 @@ trigger:
- projects/hiprand/*.md
- projects/hiprand/LICENSE.txt

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- projects/hiprand
exclude:
- projects/hiprand/.githooks
- projects/hiprand/.github
- projects/hiprand/.jenkins
- projects/hiprand/docs
- projects/hiprand/.*.y*ml
- projects/hiprand/*.md
- projects/hiprand/LICENSE.txt
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/hipRAND.yml@pipelines_repo
Expand Down
18 changes: 1 addition & 17 deletions .azuredevops/rocblas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,7 @@ trigger:
- projects/rocblas/*.md
- projects/rocblas/*.rst

pr:
autoCancel: true
branches:
include:
- develop
- mainline
paths:
include:
- projects/rocblas
exclude:
- projects/rocblas/.githooks
- projects/rocblas/.github
- projects/rocblas/.jenkins
- projects/rocblas/docs
- projects/rocblas/.*.y*ml
- projects/rocblas/*.md
- projects/rocblas/*.rst
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/rocBLAS.yml@pipelines_repo
Expand Down
17 changes: 1 addition & 16 deletions .azuredevops/rocfft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,7 @@ trigger:
- projects/rocfft/.*.y*ml
- projects/rocfft/*.md

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- projects/rocfft
exclude:
- projects/rocfft/.githooks
- projects/rocfft/.github
- projects/rocfft/.jenkins
- projects/rocfft/docs
- projects/rocfft/.*.y*ml
- projects/rocfft/*.md
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/rocFFT.yml@pipelines_repo
Expand Down
20 changes: 1 addition & 19 deletions .azuredevops/rocprim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,7 @@ trigger:
- projects/rocprim/LICENSE.txt
- projects/rocprim/NOTICES.txt

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- projects/rocprim
exclude:
- projects/rocprim/.githooks
- projects/rocprim/.github
- projects/rocprim/.gitlab
- projects/rocprim/.jenkins
- projects/rocprim/docs
- projects/rocprim/.*.y*ml
- projects/rocprim/*.md
- projects/rocprim/LICENSE.txt
- projects/rocprim/NOTICES.txt
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/rocPRIM.yml@pipelines_repo
Expand Down
18 changes: 1 addition & 17 deletions .azuredevops/rocrand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,7 @@ trigger:
- projects/rocrand/*.md
- projects/rocrand/LICENSE.txt

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- projects/rocrand
exclude:
- projects/rocrand/.githooks
- projects/rocrand/.github
- projects/rocrand/.jenkins
- projects/rocrand/docs
- projects/rocrand/.*.y*ml
- projects/rocrand/*.md
- projects/rocrand/LICENSE.txt
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/rocRAND.yml@pipelines_repo
Expand Down
16 changes: 1 addition & 15 deletions .azuredevops/rocsolver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,7 @@ trigger:
- projects/rocsolver/.*.y*ml
- projects/rocsolver/*.md

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- projects/rocsolver
exclude:
- projects/rocsolver/.github
- projects/rocsolver/.jenkins
- projects/rocsolver/docs
- projects/rocsolver/.*.y*ml
- projects/rocsolver/*.md
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/rocSOLVER.yml@pipelines_repo
Expand Down
20 changes: 1 addition & 19 deletions .azuredevops/rocthrust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,7 @@ trigger:
- projects/rocthrust/LICENSE
- projects/rocthrust/NOTICES.txt

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- projects/rocthrust
exclude:
- projects/rocthrust/.githooks
- projects/rocthrust/.github
- projects/rocthrust/.jenkins
- projects/rocthrust/doc
- projects/rocthrust/docs
- projects/rocthrust/.*.y*ml
- projects/rocthrust/*.md
- projects/rocthrust/LICENSE
- projects/rocthrust/NOTICES.txt
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/rocThrust.yml@pipelines_repo
Expand Down
17 changes: 1 addition & 16 deletions .azuredevops/tensile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,7 @@ trigger:
- shared/tensile/*.md
- shared/tensile/.*.y*ml

pr:
autoCancel: true
branches:
include:
- develop
- release-staging/rocm-rel-7.*
paths:
include:
- shared/tensile
exclude:
- shared/tensile/.github
- shared/tensile/.jenkins
- shared/tensile/docs
- shared/tensile/tuning_docs
- shared/tensile/*.md
- shared/tensile/.*.y*ml
pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/Tensile.yml@pipelines_repo
Expand Down
33 changes: 28 additions & 5 deletions .github/workflows/azure-ci-dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,30 @@
name: Dispatch Azure CI

on:
workflow_dispatch:
pull_request:
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review
- labeled
branches:
- develop
- staging
- main
- release-staging/rocm-rel-7.*
paths-ignore:
- '.github/**'
- 'docs/**'
- '*.md'

concurrency:
group: azure-ci-dispatcher-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
dispatch-azure-ci:
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'ci:azure' }}
name: Dispatch Azure CI
runs-on: ubuntu-latest
steps:
Expand All @@ -47,7 +56,7 @@ jobs:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
sparse-checkout: .github
sparse-checkout-cone-mode: true
token: token: ${{ steps.generate-token.outputs.token }}
token: ${{ steps.generate-token.outputs.token }}

- name: Install dependencies
run: |
Expand All @@ -57,7 +66,7 @@ jobs:
- name: Detect changed subtrees
id: detect
env:
GH_TOKEN: token: ${{ steps.generate-token.outputs.token }}
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
python .github/scripts/pr_detect_changed_subtrees.py \
--repo "${{ github.repository }}" \
Expand All @@ -69,7 +78,7 @@ jobs:
id: dispatch
if: steps.detect.outputs.subtrees
env:
GH_TOKEN: token: ${{ steps.generate-token.outputs.token }}
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
echo "${{ steps.detect.outputs.subtrees }}" > changed_subtrees.txt

Expand Down Expand Up @@ -193,3 +202,17 @@ jobs:
if [[ $exit_status -ne 0 ]] then
exit $exit_status
fi

- name: Cancel Azure CI runs
if: ${{ cancelled() }}
run: |
run_ids=(${{ steps.dispatch.outputs.run_ids }})
echo "Cancelling runs: ${run_ids[*]}"

for run_id in "${run_ids[@]}"; do
response=$(curl -sSX PATCH https://dev.azure.com/ROCm-CI/ROCm-CI/_apis/build/builds/$run_id?api-version=7.1 \
-u ":${{ secrets.AZ_PAT }}" \
-H "Content-Type: application/json" \
-d '{"status": "cancelling"}')
echo $response | jq -r '.status' || echo "Failed to cancel run $run_id"
done