Skip to content

Commit

Permalink
adjust run_if_changed for serverless, keda-manager and warden jobs (#…
Browse files Browse the repository at this point in the history
…9370)

* adjust run_if_changed for serverless, keda-manager and warden jobs

* rename run_if_changed_without_documentation localSet to skip_if_only_changed_documentation
  • Loading branch information
anoipm authored Nov 23, 2023
1 parent 6796161 commit 946a76f
Show file tree
Hide file tree
Showing 12 changed files with 102 additions and 72 deletions.
8 changes: 4 additions & 4 deletions prow/jobs/kyma-project/keda-manager/keda-manager-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-keda-module-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '^keda.yaml$|^.env$|^hack/ci/*/.*$|^pkg/*/.*$|^controllers/*/.*$|^charts/*/.*$|^api/*/.*$|^config.yaml$|^Dockerfile$|^(go.mod|go.sum)$|^*/(.*.go|Makefile|.*.sh)|^PROJECT$|^config/*/.*$|^docs/*/.*$'
skip_if_only_changed: '^docs/|^examples/|\.md$'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -55,7 +55,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-keda-manager-operator-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
always_run: true
skip_if_only_changed: '^docs/|^examples/|\.md$'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -108,7 +108,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.runID: "post-keda-module-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '^keda.yaml$|^.env$|^hack/ci/*/.*$|^pkg/*/.*$|^controllers/*/.*$|^charts/*/.*$|^api/*/.*$|^config.yaml$|^Dockerfile$|^(go.mod|go.sum)$|^*/(.*.go|Makefile|.*.sh)|^PROJECT$|^config/*/.*$|^docs/*/.*$'
skip_if_only_changed: '^docs/|^examples/|\.md$'
skip_report: false
decorate: true
cluster: trusted-workload
Expand Down Expand Up @@ -150,7 +150,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
preset-signify-prod-secret: "true"
always_run: true
skip_if_only_changed: '^docs/|^examples/|\.md$'
skip_report: false
decorate: true
cluster: trusted-workload
Expand Down
2 changes: 1 addition & 1 deletion prow/jobs/kyma-project/keda-manager/keda-manager-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pre-keda-manager-operator-lint"
prow.k8s.io/pubsub.topic: "prowjobs"
run_if_changed: '^(go.mod|go.sum|main.go|.golangci.yaml)$|^*/(.*.go|Makefile|.*.sh)$'
always_run: true
optional: true
skip_report: false
decorate: true
Expand Down
8 changes: 4 additions & 4 deletions prow/jobs/kyma-project/keda-manager/keda-manager-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ presubmits: # runs on PRs
preset-dind-enabled: "true"
preset-docker-push-repository-kyma: "true"
preset-sa-kyma-push-images: "true"
run_if_changed: '^(go.mod|go.sum)$|^*/(.*.go|Makefile|Dockerfile|.*.sh)'
skip_if_only_changed: '^docs/|^examples/|\.md$'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -49,7 +49,7 @@ presubmits: # runs on PRs
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-kyma-guard-bot-github-token: "true"
always_run: true
skip_if_only_changed: '^docs/|^examples/|\.md$'
optional: false
skip_report: false
decorate: true
Expand Down Expand Up @@ -98,7 +98,7 @@ postsubmits: # runs on main
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-kyma-guard-bot-github-token: "true"
always_run: true
skip_if_only_changed: '^docs/|^examples/|\.md$'
optional: true
skip_report: false
decorate: true
Expand Down Expand Up @@ -144,7 +144,7 @@ postsubmits: # runs on main
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
preset-kyma-guard-bot-github-token: "true"
always_run: true
skip_if_only_changed: '^docs/|^examples/|\.md$'
optional: true
skip_report: false
decorate: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-serverless-module-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '^config/operator/.*$|^sec-scanners-config.yaml$|^.version$|^module-config-template.yaml$'
run_if_changed: '^config/|^components/|^sec-scanners-config.yaml$|^.version$|^module-config-template.yaml$'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -56,7 +56,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-serverless-operator-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
always_run: true
run_if_changed: '^config/|^components/|^sec-scanners-config.yaml$|^.version$|^module-config-template.yaml$'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -113,7 +113,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.runID: "post-serverless-module-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '^config/operator/.*$|^sec-scanners-config.yaml$|^.version$|^module-config-template.yaml$'
run_if_changed: '^config/|^components/|^sec-scanners-config.yaml$|^.version$|^module-config-template.yaml$'
skip_report: false
decorate: true
cluster: trusted-workload
Expand Down Expand Up @@ -156,7 +156,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
preset-signify-prod-secret: "true"
always_run: true
run_if_changed: '^config/|^components/|^sec-scanners-config.yaml$|^.version$|^module-config-template.yaml$'
skip_report: false
decorate: true
cluster: trusted-workload
Expand Down
16 changes: 8 additions & 8 deletions prow/jobs/kyma-project/serverless/serverless-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-serverless-controller-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '^components/serverless/'
run_if_changed: '^components/serverless/|^config/serverless/'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -59,7 +59,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-serverless-webhook-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '^components/serverless/'
run_if_changed: '^components/serverless/|^config/serverless/'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -106,7 +106,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-serverless-jobinit-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '^components/serverless/'
run_if_changed: '^components/serverless/|^config/serverless/'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -153,7 +153,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-serverless-registry-gc-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '^components/serverless/'
run_if_changed: '^components/serverless/|^config/serverless/'
optional: true
skip_report: false
decorate: true
Expand Down Expand Up @@ -206,7 +206,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
preset-signify-prod-secret: "true"
run_if_changed: '^components/serverless/'
run_if_changed: '^components/serverless/|^config/serverless/'
skip_report: false
decorate: true
cluster: trusted-workload
Expand Down Expand Up @@ -256,7 +256,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
preset-signify-prod-secret: "true"
run_if_changed: '^components/serverless/'
run_if_changed: '^components/serverless/|^config/serverless/'
skip_report: false
decorate: true
cluster: trusted-workload
Expand Down Expand Up @@ -306,7 +306,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
preset-signify-prod-secret: "true"
run_if_changed: '^components/serverless/'
run_if_changed: '^components/serverless/|^config/serverless/'
skip_report: false
decorate: true
cluster: trusted-workload
Expand Down Expand Up @@ -356,7 +356,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
preset-signify-prod-secret: "true"
run_if_changed: '^components/serverless/'
run_if_changed: '^components/serverless/|^config/serverless/'
optional: true
skip_report: false
decorate: true
Expand Down
4 changes: 2 additions & 2 deletions prow/jobs/kyma-project/serverless/serverless-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pre-serverless-controller-lint"
prow.k8s.io/pubsub.topic: "prowjobs"
run_if_changed: '^components/serverless/(.*\.go|.golangci.yaml)$'
run_if_changed: '^components/serverless/'
optional: true
skip_report: false
decorate: true
Expand Down Expand Up @@ -44,7 +44,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pre-serverless-operator-lint"
prow.k8s.io/pubsub.topic: "prowjobs"
run_if_changed: '^components/operator/(.*\.go|.golangci.yaml)$'
run_if_changed: '^components/operator/'
optional: true
skip_report: false
decorate: true
Expand Down
8 changes: 4 additions & 4 deletions prow/jobs/kyma-project/serverless/serverless-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pre-serverless-controller-unit-test"
prow.k8s.io/pubsub.topic: "prowjobs"
run_if_changed: '^components/serverless/.*\.go$'
run_if_changed: '^components/serverless/'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand All @@ -34,18 +34,18 @@ presubmits: # runs on PRs
requests:
memory: 1Gi
cpu: 100m
- name: pre-serverless-operator-tests
- name: pre-serverless-operator-unit-tests
annotations:
description: "serverless operator tests"
owner: "otters"
labels:
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pre-serverless-operator-tests"
prow.k8s.io/pubsub.runID: "pre-serverless-operator-unit-tests"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-dind-enabled: "true"
preset-docker-push-repository-kyma: "true"
preset-sa-kyma-push-images: "true"
run_if_changed: '^(go.mod|go.sum)$|^*/(.*.go|Makefile|Dockerfile|.*.sh)'
run_if_changed: '^components/operator/'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down
2 changes: 1 addition & 1 deletion prow/jobs/kyma-project/warden/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ presubmits:
prow.k8s.io/pubsub.topic: "prowjobs"
cluster: untrusted-workload
decorate: true
run_if_changed: '.*\.go$|charts/'
skip_if_only_changed: '^docs/|\.md$'
spec:
containers:
- image: europe-docker.pkg.dev/kyma-project/prod/testimages/e2e-dind-k3d:v20231122-2a5515a2
Expand Down
18 changes: 9 additions & 9 deletions prow/jobs/kyma-project/warden/warden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-warden-admission-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '.*\.go|docker/admission/'
skip_if_only_changed: '^docs/|\.md$'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -59,7 +59,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-warden-operator-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '.*\.go|docker/operator/'
skip_if_only_changed: '^docs/|\.md$'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -106,7 +106,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.runID: "pre-warden-module-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '^\.env$|^(go\.mod|go\.sum)$|^(.*/)?(.*\.go|Makefile|.*\.sh|.*\.yaml|Dockerfile)$|^PROJECT$'
skip_if_only_changed: '^docs/|\.md$'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -143,7 +143,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pre-warden-lint"
prow.k8s.io/pubsub.topic: "prowjobs"
run_if_changed: '^(go.mod|go.sum|.golangci.yaml)$|^*/(.*.go|Makefile|.*.sh)$'
always_run: true
optional: true
skip_report: false
decorate: true
Expand Down Expand Up @@ -176,7 +176,7 @@ presubmits: # runs on PRs
prow.k8s.io/pubsub.project: "sap-kyma-prow"
prow.k8s.io/pubsub.runID: "pre-warden-unit-test"
prow.k8s.io/pubsub.topic: "prowjobs"
run_if_changed: '.*\.go$'
skip_if_only_changed: '^docs/|\.md$'
skip_report: false
decorate: true
cluster: untrusted-workload
Expand Down Expand Up @@ -213,7 +213,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
preset-signify-prod-secret: "true"
run_if_changed: '.*\.go|docker/admission/'
skip_if_only_changed: '^docs/|\.md$'
skip_report: false
decorate: true
cluster: trusted-workload
Expand Down Expand Up @@ -262,7 +262,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
preset-signify-prod-secret: "true"
run_if_changed: '.*\.go|docker/operator/'
skip_if_only_changed: '^docs/|\.md$'
skip_report: false
decorate: true
cluster: trusted-workload
Expand Down Expand Up @@ -310,7 +310,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.runID: "post-warden-module-build"
prow.k8s.io/pubsub.topic: "prowjobs"
preset-sa-kyma-push-images: "true"
run_if_changed: '^\.env$|^(go\.mod|go\.sum)$|^(.*/)?(.*\.go|Makefile|.*\.sh|.*\.yaml|Dockerfile)$|^PROJECT$'
skip_if_only_changed: '^docs/|\.md$'
skip_report: false
decorate: true
cluster: trusted-workload
Expand Down Expand Up @@ -349,7 +349,7 @@ postsubmits: # runs on main
prow.k8s.io/pubsub.topic: "prowjobs"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
always_run: true
skip_if_only_changed: '^docs/|\.md$'
optional: true
skip_report: false
decorate: true
Expand Down
Loading

0 comments on commit 946a76f

Please sign in to comment.