Skip to content

Commit

Permalink
ICU-22721 Prevent redundant concurrent CI runs on the same PR branch
Browse files Browse the repository at this point in the history
  • Loading branch information
echeran committed Jun 30, 2024
1 parent cf7ff1b commit 2e00f38
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .ci-builds/.azure-exhaustive-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
# also batch up any pending changes so that we will only have at most
# one build running at a given time (since they take a long time).
trigger:
# batch=true to reduce number of concurrent runs on the same branch:
# https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/trigger?view=azure-pipelines#properties
# potential future feature to supersede batch=true:
# https://learn.microsoft.com/en-us/azure/devops/pipelines/process/stages?view=azure-devops&tabs=yaml#specify-queuing-policies
batch: true
branches:
include:
Expand Down
5 changes: 5 additions & 0 deletions .ci-builds/.azure-pipelines-icu4c.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Azure Pipelines (VSTS) configuration for CI builds for ICU.

trigger:
# batch=true to reduce number of concurrent runs on the same branch:
# https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/trigger?view=azure-pipelines#properties
# potential future feature to supersede batch=true:
# https://learn.microsoft.com/en-us/azure/devops/pipelines/process/stages?view=azure-devops&tabs=yaml#specify-queuing-policies
batch: true
branches:
include:
- main
Expand Down
5 changes: 5 additions & 0 deletions .ci-builds/.azure-pipelines-icu4j.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Azure Pipelines (VSTS) configuration for CI builds for ICU.

trigger:
# batch=true to reduce number of concurrent runs on the same branch:
# https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/trigger?view=azure-pipelines#properties
# potential future feature to supersede batch=true:
# https://learn.microsoft.com/en-us/azure/devops/pipelines/process/stages?view=azure-devops&tabs=yaml#specify-queuing-policies
batch: true
branches:
include:
- main
Expand Down
5 changes: 5 additions & 0 deletions .ci-builds/.azure-post-merge-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Azure Pipelines (VSTS) configuration for testing things post merging
trigger:
# batch=true to reduce number of concurrent runs on the same branch:
# https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/trigger?view=azure-pipelines#properties
# potential future feature to supersede batch=true:
# https://learn.microsoft.com/en-us/azure/devops/pipelines/process/stages?view=azure-devops&tabs=yaml#specify-queuing-policies
batch: true
branches:
include:
- main
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/icu4c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ on:
# To trigger the Env Test workflow manually, follow the instructions in
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow

# For non-release branches (namely: PRs), only run CI on the most recent commit. Cancel
# runs on previous commits mid-flight when new commits are pushed.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-on-specific-branches
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'maint/') && github.ref != 'main' }}

permissions:
contents: read

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/icu4j.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ on:
# To trigger the Env Test workflow manually, follow the instructions in
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow

# For non-release branches (namely: PRs), only run CI on the most recent commit. Cancel
# runs on previous commits mid-flight when new commits are pushed.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-on-specific-branches
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'maint/') && github.ref != 'main' }}

env:
SHARED_MVN_ARGS: '--show-version --no-transfer-progress'

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/icu_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ on:
# To trigger the Env Test workflow manually, follow the instructions in
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow

# For non-release branches (namely: PRs), only run CI on the most recent commit. Cancel
# runs on previous commits mid-flight when new commits are pushed.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-on-specific-branches
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'maint/') && github.ref != 'main' }}

env:
SHARED_MVN_ARGS: '--show-version --no-transfer-progress'

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/icu_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ on:
# To trigger the Env Test workflow manually, follow the instructions in
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow

# For non-release branches (namely: PRs), only run CI on the most recent commit. Cancel
# runs on previous commits mid-flight when new commits are pushed.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-on-specific-branches
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'maint/') && github.ref != 'main' }}

permissions:
contents: read

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/icu_merge_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ on:
# To trigger the Env Test workflow manually, follow the instructions in
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow

# For non-release branches (namely: PRs), only run CI on the most recent commit. Cancel
# runs on previous commits mid-flight when new commits are pushed.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-on-specific-branches
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'maint/') && github.ref != 'main' }}

env:
SHARED_MVN_ARGS: '--show-version --no-transfer-progress'

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/icu_valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ on:
- 'icu4c/**'
- '.github/workflows/**'

# For non-release branches (namely: PRs), only run CI on the most recent commit. Cancel
# runs on previous commits mid-flight when new commits are pushed.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-on-specific-branches
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'maint/') && github.ref != 'main' }}

permissions:
contents: read

Expand Down

0 comments on commit 2e00f38

Please sign in to comment.