Skip to content

Commit

Permalink
Merged PR 26271: Update CI pipeline triggers
Browse files Browse the repository at this point in the history
Updates to the CI triggers:
- Stop running parallel CI runs, i.e. if a pipeline is running, it must finish before new runs are started.
- Exclude paths to files, which are not related to/critical the codebase
- Downloading MKL from a mirror hosting server
  • Loading branch information
Roman Grundkiewicz committed Nov 1, 2022
1 parent 4d3702c commit a6de1b7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
31 changes: 27 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,24 @@ parameters:
# The pipeline CI trigger is set on the branch master only and PR trigger on a
# (non-draft) pull request to any branch
trigger:
- master
# This minimizes the number of parallel pipeline runs. When a pipeline is
# running, the CI waits until it is completed before starting another one.
batch: true
branches:
include:
- master
paths:
exclude:
- azure-regression-tests.yml
- contrib
- doc
- examples
- regression-tests
- scripts
- VERSION
- vs
- '**/*.md'
- '**/*.txt'

pool:
name: Azure Pipelines
Expand All @@ -32,7 +49,7 @@ variables:
- name: MKL_DIR
value: "$(Build.SourcesDirectory)/mkl"
- name: MKL_URL
value: "https://romang.blob.core.windows.net/mariandev/ci/mkl-2020.1-windows-static.zip"
value: "https://data.statmt.org/romang/marian-regression-tests/ci/mkl-2020.1-windows-static.zip"
- name: VCPKG_COMMIT
value: 2022.03.10
- name: VCPKG_DIR
Expand All @@ -52,6 +69,7 @@ stages:

######################################################################
- job: BuildWindows
cancelTimeoutInMinutes: 1
condition: eq(${{ parameters.runBuilds }}, true)
displayName: Windows

Expand Down Expand Up @@ -188,6 +206,7 @@ stages:
######################################################################
- job: BuildUbuntu
cancelTimeoutInMinutes: 1
condition: eq(${{ parameters.runBuilds }}, true)
displayName: Ubuntu
timeoutInMinutes: 120
Expand Down Expand Up @@ -324,6 +343,7 @@ stages:
######################################################################
- job: BuildMacOS
cancelTimeoutInMinutes: 1
condition: eq(${{ parameters.runBuilds }}, true)
displayName: macOS CPU clang

Expand Down Expand Up @@ -373,6 +393,7 @@ stages:
######################################################################
- job: BuildInstall
cancelTimeoutInMinutes: 1
condition: eq(${{ parameters.runBuilds }}, true)
displayName: Linux CPU library install

Expand Down Expand Up @@ -435,6 +456,7 @@ stages:

######################################################################
- job: TestWindows
cancelTimeoutInMinutes: 1
displayName: Windows CPU+FBGEMM

pool:
Expand Down Expand Up @@ -535,7 +557,7 @@ stages:
ls
displayName: Prepare tests
env:
AWS_SECRET_SAS_TOKEN: $(blob-sas-token)
SAS_TOKEN: $(blob-sas-token)
workingDirectory: marian-prod-tests
# Avoid using $(Build.SourcesDirectory) in bash tasks because on Windows pools it uses '\'
Expand All @@ -560,6 +582,7 @@ stages:

######################################################################
- job: TestLinux
cancelTimeoutInMinutes: 1
displayName: Linux CPU+FBGEMM

pool:
Expand Down Expand Up @@ -636,7 +659,7 @@ stages:
ls
displayName: Prepare tests
env:
AWS_SECRET_SAS_TOKEN: $(blob-sas-token)
AZURE_STORAGE_SAS_TOKEN: $(blob-sas-token)
workingDirectory: marian-prod-tests
- bash: MARIAN=../marian-dev/build bash ./run_mrt.sh '#cpu' '#basics' '#devops'
Expand Down
3 changes: 3 additions & 0 deletions azure-regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ stages:

######################################################################
- job: TestsGPULinux
cancelTimeoutInMinutes: 1
displayName: Linux GPU tests
timeoutInMinutes: 120

Expand Down Expand Up @@ -108,6 +109,8 @@ stages:
git pull origin master
make install
displayName: Prepare regression tests
env:
AZURE_STORAGE_SAS_TOKEN: $(blob-sas-token)
workingDirectory: regression-tests
# Continue on error to be able to collect outputs and publish them as an artifact
Expand Down

0 comments on commit a6de1b7

Please sign in to comment.