From 81460e20b404550ed342246878c425ed4f44c453 Mon Sep 17 00:00:00 2001 From: Sajia Zafreen Date: Wed, 15 Nov 2023 13:55:05 -0800 Subject: [PATCH 1/2] Update CNI-plugin unit tests triggers --- jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml | 2 +- jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml | 2 +- jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml | 2 +- jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml | 2 +- jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml | 2 +- .../jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml index f9252a7f4..af8dd5dc9 100644 --- a/jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml @@ -22,7 +22,7 @@ presubmits: aws/eks-distro: - name: cni-plugins-1-24-test-presubmit always_run: false - run_if_changed: "^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-24)" + run_if_changed: "projects/containernetworking/plugins/1-24/(GIT_TAG|patches)" max_concurrency: 10 cluster: "prow-presubmits-cluster" skip_report: false diff --git a/jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml index 11db021a6..678f2eb5a 100644 --- a/jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml @@ -22,7 +22,7 @@ presubmits: aws/eks-distro: - name: cni-plugins-1-25-test-presubmit always_run: false - run_if_changed: "^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-25)" + run_if_changed: "projects/containernetworking/plugins/1-25/(GIT_TAG|patches)" max_concurrency: 10 cluster: "prow-presubmits-cluster" skip_report: false diff --git a/jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml index 799d8e844..f31f05976 100644 --- a/jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml @@ -22,7 +22,7 @@ presubmits: aws/eks-distro: - name: cni-plugins-1-26-test-presubmit always_run: false - run_if_changed: "^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-26)" + run_if_changed: "projects/containernetworking/plugins/1-26/(GIT_TAG|patches)" max_concurrency: 10 cluster: "prow-presubmits-cluster" skip_report: false diff --git a/jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml index 490e3d1df..f82790345 100644 --- a/jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml @@ -22,7 +22,7 @@ presubmits: aws/eks-distro: - name: cni-plugins-1-27-test-presubmit always_run: false - run_if_changed: "^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-27)" + run_if_changed: "projects/containernetworking/plugins/1-27/(GIT_TAG|patches)" max_concurrency: 10 cluster: "prow-presubmits-cluster" skip_report: false diff --git a/jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml index 83d3917fd..a65c7a54a 100644 --- a/jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml @@ -22,7 +22,7 @@ presubmits: aws/eks-distro: - name: cni-plugins-1-28-test-presubmit always_run: false - run_if_changed: "^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-28)" + run_if_changed: "projects/containernetworking/plugins/1-28/(GIT_TAG|patches)" max_concurrency: 10 cluster: "prow-presubmits-cluster" skip_report: false diff --git a/templater/jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml b/templater/jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml index 37364763d..14aa9bc4e 100644 --- a/templater/jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml +++ b/templater/jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml @@ -1,5 +1,5 @@ jobName: cni-plugins-{{ .releaseBranch }}-test-presubmit -runIfChanged: ^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|{{ .releaseBranch }}) +runIfChanged: projects/containernetworking/plugins/{{ .releaseBranch }}/(GIT_TAG|patches) commands: - make test -C $PROJECT_PATH projectPath: projects/containernetworking/plugins From a236eda4fbb9ae6e69f8ff3c9a7f34e73cf972b0 Mon Sep 17 00:00:00 2001 From: Sajia Zafreen Date: Thu, 16 Nov 2023 11:33:26 -0800 Subject: [PATCH 2/2] add golang trigger --- jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml | 2 +- jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml | 2 +- jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml | 2 +- jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml | 2 +- jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml | 2 +- .../jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml index af8dd5dc9..8b48515cd 100644 --- a/jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml @@ -22,7 +22,7 @@ presubmits: aws/eks-distro: - name: cni-plugins-1-24-test-presubmit always_run: false - run_if_changed: "projects/containernetworking/plugins/1-24/(GIT_TAG|patches)" + run_if_changed: "projects/containernetworking/plugins/1-24/(GIT_TAG|patches|GOLANG_VERSION)" max_concurrency: 10 cluster: "prow-presubmits-cluster" skip_report: false diff --git a/jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml index 678f2eb5a..5a1851bc8 100644 --- a/jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml @@ -22,7 +22,7 @@ presubmits: aws/eks-distro: - name: cni-plugins-1-25-test-presubmit always_run: false - run_if_changed: "projects/containernetworking/plugins/1-25/(GIT_TAG|patches)" + run_if_changed: "projects/containernetworking/plugins/1-25/(GIT_TAG|patches|GOLANG_VERSION)" max_concurrency: 10 cluster: "prow-presubmits-cluster" skip_report: false diff --git a/jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml index f31f05976..f22003b00 100644 --- a/jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml @@ -22,7 +22,7 @@ presubmits: aws/eks-distro: - name: cni-plugins-1-26-test-presubmit always_run: false - run_if_changed: "projects/containernetworking/plugins/1-26/(GIT_TAG|patches)" + run_if_changed: "projects/containernetworking/plugins/1-26/(GIT_TAG|patches|GOLANG_VERSION)" max_concurrency: 10 cluster: "prow-presubmits-cluster" skip_report: false diff --git a/jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml index f82790345..901d09ba9 100644 --- a/jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml @@ -22,7 +22,7 @@ presubmits: aws/eks-distro: - name: cni-plugins-1-27-test-presubmit always_run: false - run_if_changed: "projects/containernetworking/plugins/1-27/(GIT_TAG|patches)" + run_if_changed: "projects/containernetworking/plugins/1-27/(GIT_TAG|patches|GOLANG_VERSION)" max_concurrency: 10 cluster: "prow-presubmits-cluster" skip_report: false diff --git a/jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml index a65c7a54a..ef8f3614c 100644 --- a/jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml @@ -22,7 +22,7 @@ presubmits: aws/eks-distro: - name: cni-plugins-1-28-test-presubmit always_run: false - run_if_changed: "projects/containernetworking/plugins/1-28/(GIT_TAG|patches)" + run_if_changed: "projects/containernetworking/plugins/1-28/(GIT_TAG|patches|GOLANG_VERSION)" max_concurrency: 10 cluster: "prow-presubmits-cluster" skip_report: false diff --git a/templater/jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml b/templater/jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml index 14aa9bc4e..176de80a7 100644 --- a/templater/jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml +++ b/templater/jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml @@ -1,5 +1,5 @@ jobName: cni-plugins-{{ .releaseBranch }}-test-presubmit -runIfChanged: projects/containernetworking/plugins/{{ .releaseBranch }}/(GIT_TAG|patches) +runIfChanged: projects/containernetworking/plugins/{{ .releaseBranch }}/(GIT_TAG|patches|GOLANG_VERSION) commands: - make test -C $PROJECT_PATH projectPath: projects/containernetworking/plugins