Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAPI Operator: use 'run_if_changed' consistently in presubmit jobs #29770

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
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ presubmits:
- name: pull-cluster-api-operator-apidiff-main
decorate: true
path_alias: sigs.k8s.io/cluster-api-operator
always_run: true
optional: true
labels:
preset-service-account: "true"
branches:
# The script this job runs is not in all branches.
- ^main$
run_if_changed: '^((api|cmd|config|controllers|hack|internal|scripts|test|util|webhook)/|go\.mod|go\.sum|Dockerfile|Makefile)'
spec:
containers:
- command:
Expand Down Expand Up @@ -80,12 +80,12 @@ presubmits:
- name: pull-cluster-api-operator-test-main
decorate: true
path_alias: sigs.k8s.io/cluster-api-operator
always_run: true
labels:
preset-service-account: "true"
branches:
# The script this job runs is not in all branches.
- ^main$
run_if_changed: '^((api|cmd|config|controllers|hack|internal|scripts|test|util|webhook)/|go\.mod|go\.sum|Dockerfile|Makefile)'
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230513-7e1db2f1bb-1.25
Expand All @@ -99,8 +99,7 @@ presubmits:
path_alias: "sigs.k8s.io/cluster-api-operator"
optional: false
decorate: true
# please see: https://play.golang.org/p/JJSVylVPd53 for more insights
run_if_changed: (^[^d].*$)|(^d$)|(^.[^o].*$)|(^do$)|(^..[^c].*$)|(^doc$)|(^...[^s].*$)|(^docs$)|(^....[^/].*$)|(^[^d][^o][^c][^s]/.*$)
run_if_changed: '^((api|cmd|config|controllers|hack|internal|scripts|test|util|webhook)/|go\.mod|go\.sum|Dockerfile|Makefile)'
max_concurrency: 5
labels:
preset-dind-enabled: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ presubmits:
- name: pull-cluster-api-operator-apidiff-release-0-3
decorate: true
path_alias: sigs.k8s.io/cluster-api-operator
always_run: true
optional: true
labels:
preset-service-account: "true"
branches:
# The script this job runs is not in all branches.
- ^release-0.3$
run_if_changed: '^((api|cmd|config|controllers|hack|internal|scripts|test|util|webhook)/|go\.mod|go\.sum|Dockerfile|Makefile)'
spec:
containers:
- command:
Expand Down Expand Up @@ -80,12 +80,12 @@ presubmits:
- name: pull-cluster-api-operator-test-release-0-3
decorate: true
path_alias: sigs.k8s.io/cluster-api-operator
always_run: true
labels:
preset-service-account: "true"
branches:
# The script this job runs is not in all branches.
- ^release-0.3$
run_if_changed: '^((api|cmd|config|controllers|hack|internal|scripts|test|util|webhook)/|go\.mod|go\.sum|Dockerfile|Makefile)'
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230513-7e1db2f1bb-1.25
Expand All @@ -99,8 +99,7 @@ presubmits:
path_alias: "sigs.k8s.io/cluster-api-operator"
optional: false
decorate: true
# please see: https://play.golang.org/p/JJSVylVPd53 for more insights
run_if_changed: (^[^d].*$)|(^d$)|(^.[^o].*$)|(^do$)|(^..[^c].*$)|(^doc$)|(^...[^s].*$)|(^docs$)|(^....[^/].*$)|(^[^d][^o][^c][^s]/.*$)
run_if_changed: '^((api|cmd|config|controllers|hack|internal|scripts|test|util|webhook)/|go\.mod|go\.sum|Dockerfile|Makefile)'
max_concurrency: 5
labels:
preset-dind-enabled: "true"
Expand Down