Skip to content

Commit 1b85a74

Browse files
authored
Merge pull request #35966 from janetkuo/skip-tests-docs
agent-sandbox: optimize presubmit job triggers
2 parents 6efd952 + d7dac6d commit 1b85a74

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

config/jobs/kubernetes-sigs/agent-sandbox/agent-sandbox-presubmits-main.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ presubmits:
22
kubernetes-sigs/agent-sandbox:
33
- name: presubmit-test-autogen-up-to-date
44
cluster: eks-prow-build-cluster
5-
always_run: true
5+
# Skip ONLY config/metadata, docs/ and md files, but will run for site/.
6+
skip_if_only_changed: "^docs/|\\.md$|^(\\.gitignore|LICENSE|netlify\\.toml|OWNERS)$"
67
decorate: true
78
labels:
89
preset-service-account: 'true'
@@ -25,7 +26,7 @@ presubmits:
2526
testgrid-num-columns-recent: '30'
2627
- name: presubmit-agent-sandbox-unit-test
2728
cluster: eks-prow-build-cluster
28-
always_run: true
29+
skip_if_only_changed: "^(docs|site)/|\\.md$|^(\\.gitignore|LICENSE|netlify\\.toml|OWNERS)$"
2930
decorate: true
3031
spec:
3132
containers:
@@ -44,7 +45,7 @@ presubmits:
4445
testgrid-tab-name: presubmit-unit-test
4546
- name: presubmit-agent-sandbox-lint-go
4647
cluster: eks-prow-build-cluster
47-
always_run: true
48+
run_if_changed: "^.*\\.go$|^go\\.(mod|sum)$|^dev/ci/presubmits/lint-go$"
4849
decorate: true
4950
spec:
5051
containers:
@@ -63,7 +64,7 @@ presubmits:
6364
testgrid-tab-name: presubmit-lint-go
6465
- name: presubmit-agent-sandbox-e2e-test
6566
cluster: eks-prow-build-cluster
66-
always_run: true
67+
skip_if_only_changed: "^(docs|site)/|\\.md$|^(\\.gitignore|LICENSE|netlify\\.toml|OWNERS)$"
6768
decorate: true
6869
labels:
6970
preset-dind-enabled: "true"

0 commit comments

Comments
 (0)