Skip to content

Commit

Permalink
CI: Exclude some eng/pipelines files from triggering pipelines
Browse files Browse the repository at this point in the history
```yml
    # src/workloads is only used in runtime-official builds
    # where evaluate-paths is not used
    _always_exclude: [
        eng/pipelines/common/evaluate-default-paths.yml
        eng/pipelines/coreclr/*
        eng/pipelines/installer/*
        eng/pipelines/libraries/*
        eng/pipelines/mono/*
        eng/pipelines/runtime*
        src/workloads/*
    ]
```
  • Loading branch information
radical committed Sep 23, 2022
1 parent 9110d01 commit 0b6ac21
Showing 1 changed file with 19 additions and 32 deletions.
51 changes: 19 additions & 32 deletions eng/pipelines/common/evaluate-default-paths.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ parameters:
eng/pipelines/common/templates/runtime/wasm*
eng/pipelines/coreclr/*wasm*
]
# src/workloads is only used in runtime-official builds
# where evaluate-paths is not used
_always_exclude: [
eng/pipelines/common/evaluate-default-paths.yml
eng/pipelines/coreclr/*
eng/pipelines/installer/*
eng/pipelines/libraries/*
eng/pipelines/mono/*
eng/pipelines/runtime*
src/workloads/*
]

jobs:
- template: /eng/pipelines/common/evaluate-paths-job.yml
Expand All @@ -48,11 +59,8 @@ jobs:
- src/libraries/*
- src/native/libs/*
- src/tests/*
- eng/pipelines/installer/*
- eng/pipelines/mono/*
- eng/pipelines/libraries/*
- eng/pipelines/common/evaluate-default-paths.yml
- ${{ parameters._const_paths._wasm_pipelines }}
- ${{ parameters._const_paths._always_exclude }}

- subset: mono_excluding_wasm
include:
Expand All @@ -63,6 +71,7 @@ jobs:
exclude:
- ${{ parameters._const_paths._wasm_specific_only }}
- ${{ parameters._const_paths._wasm_pipelines }}
- ${{ parameters._const_paths._always_exclude }}

- eng/Version.Details.xml
- '*.md'
Expand All @@ -75,10 +84,6 @@ jobs:
- src/libraries/*
- src/native/libs/*
- src/tests/*
- eng/pipelines/installer/*
- eng/pipelines/coreclr/*
- eng/pipelines/libraries/*
- eng/pipelines/common/evaluate-default-paths.yml

- subset: libraries
exclude:
Expand All @@ -93,11 +98,8 @@ jobs:
- src/coreclr/*
- src/tests/*
- src/native/eventpipe/*
- eng/pipelines/coreclr/*
- eng/pipelines/mono/*
- eng/pipelines/installer/*
- eng/pipelines/common/evaluate-default-paths.yml
- ${{ parameters._const_paths._wasm_pipelines }}
- ${{ parameters._const_paths._always_exclude }}

- subset: runtimetests
include:
Expand All @@ -107,10 +109,7 @@ jobs:
exclude:
- src/tests/*
- ${{ parameters._const_paths._wasm_pipelines }}

# having this ensures that change in evaluate-default-paths.yml
# doesn't trigger jobs
- eng/pipelines/common/evaluate-default-paths.yml
- ${{ parameters._const_paths._always_exclude }}

- subset: installer
include:
Expand All @@ -127,11 +126,8 @@ jobs:
- src/libraries/*
- src/tests/*
- src/native/eventpipe/*
- eng/pipelines/coreclr/*
- eng/pipelines/mono/*
- eng/pipelines/libraries/*
- eng/pipelines/common/evaluate-default-paths.yml
- ${{ parameters._const_paths._wasm_pipelines }}
- ${{ parameters._const_paths._always_exclude }}

# We have limited Apple Silicon testing capacity
# We want PR testing on a narrower set of changes
Expand Down Expand Up @@ -196,10 +192,7 @@ jobs:
- src/mono/wasm/Wasm.Build.Tests/*
- src/mono/wasm/debugger/*
- ${{ parameters._const_paths._wasm_pipelines }}

# having this ensures that change in evaluate-default-paths.yml
# doesn't trigger jobs
- eng/pipelines/common/evaluate-default-paths.yml
- ${{ parameters._const_paths._always_exclude }}

- subset: wasm_wbt_or_dbg
include:
Expand Down Expand Up @@ -238,16 +231,14 @@ jobs:
exclude:
- ${{ parameters._const_paths._wasm_specific_only }}
- ${{ parameters._const_paths._wasm_pipelines }}

# having this ensures that change in evaluate-default-paths.yml won't
# trigger non-onlywasm jobs
- eng/pipelines/common/evaluate-default-paths.yml
- ${{ parameters._const_paths._always_exclude }}

# anything other than mono, or wasm specific paths
- subset: non_mono_and_wasm
exclude:
- ${{ parameters._const_paths._wasm_specific_only }}
- ${{ parameters._const_paths._wasm_pipelines }}
- ${{ parameters._const_paths._always_exclude }}

- eng/testing/tests.mobile.targets
- src/mono/*
Expand All @@ -259,9 +250,5 @@ jobs:
- src/tasks/WasmBuildTasks/*
- src/tasks/WorkloadBuildTasks/*

# having this ensures that change in evaluate-default-paths.yml
# doesn't trigger jobs
- eng/pipelines/common/evaluate-default-paths.yml

- ${{ if ne(parameters.extraSubsets, '') }}:
- ${{ parameters.extraSubsets }}

0 comments on commit 0b6ac21

Please sign in to comment.