From ad00aa4e7b07f60a5d7c2f83763b45f7e1f8f33e Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Thu, 21 Sep 2023 20:09:46 -0400 Subject: [PATCH] [sig-node] Move a couple of jobs to podutils Signed-off-by: Davanum Srinivas --- .../sig-node/sig-node-presubmit.yaml | 59 ++++++++++++------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/config/jobs/kubernetes/sig-node/sig-node-presubmit.yaml b/config/jobs/kubernetes/sig-node/sig-node-presubmit.yaml index 9522ea18aaed..6d648f23198a 100644 --- a/config/jobs/kubernetes/sig-node/sig-node-presubmit.yaml +++ b/config/jobs/kubernetes/sig-node/sig-node-presubmit.yaml @@ -3,6 +3,19 @@ presubmits: - name: pull-kubernetes-e2e-containerd-gce always_run: false optional: true + decorate: true + decoration_config: + timeout: 105m + path_alias: k8s.io/kubernetes + extra_refs: + - org: kubernetes + repo: test-infra + base_ref: master + path_alias: k8s.io/test-infra + - org: kubernetes + repo: release + base_ref: master + path_alias: k8s.io/release skip_branches: - release-\d+\.\d+ # per-release image annotations: @@ -16,14 +29,10 @@ presubmits: preset-pull-kubernetes-e2e-gce: "true" spec: containers: - - args: - - --root=/go/src - - --repo=k8s.io/kubernetes=$(PULL_REFS) - - --repo=k8s.io/release - - --upload=gs://kubernetes-jenkins/pr-logs - - --timeout=105 - - --scenario=kubernetes_e2e - - -- + - command: + - runner.sh + - /home/prow/go/src/k8s.io/test-infra/scenarios/kubernetes_e2e.py + args: - --build=quick - --cluster= - --extract=local @@ -37,7 +46,11 @@ presubmits: - --timeout=80m # thinking about making this longer? don't! 80m is a hard cap, and should get down to no more than 60m. image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230727-ea685f8747-master resources: + limits: + cpu: "4" + memory: "6Gi" requests: + cpu: "4" memory: "6Gi" securityContext: privileged: true @@ -51,6 +64,15 @@ presubmits: testgrid-num-failures-to-alert: "10" always_run: true optional: false + decorate: true + decoration_config: + timeout: 90m + path_alias: k8s.io/kubernetes + extra_refs: + - org: kubernetes + repo: test-infra + base_ref: master + path_alias: k8s.io/test-infra cluster: k8s-infra-prow-build max_concurrency: 12 labels: @@ -59,15 +81,10 @@ presubmits: spec: containers: - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230727-ea685f8747-master + command: + - runner.sh + - /home/prow/go/src/k8s.io/test-infra/scenarios/kubernetes_e2e.py args: - - --root=/go/src - - --job=$(JOB_NAME) - - --repo=k8s.io/$(REPO_NAME)=$(PULL_REFS) - - --service-account=/etc/service-account/service-account.json - - --upload=gs://kubernetes-jenkins/pr-logs - - --timeout=90 - - --scenario=kubernetes_e2e - - -- - --deployment=node - --gcp-zone=us-west1-b - '--node-test-args=--container-runtime-endpoint=unix:///run/containerd/containerd.sock --container-runtime-process-name=/usr/bin/containerd --container-runtime-pid-file= --kubelet-flags="--cgroup-driver=systemd --cgroups-per-qos=true --cgroup-root=/ --runtime-cgroups=/system.slice/containerd.service" --extra-log="{\"name\": \"containerd.log\", \"journalctl\": [\"-u\", \"containerd*\"]}"' @@ -75,14 +92,14 @@ presubmits: - --provider=gce - --test_args=--nodes=8 --focus="\[NodeConformance\]" --skip="\[Flaky\]|\[Slow\]|\[Serial\]" - --timeout=65m - - --node-args=--image-config-file=/workspace/test-infra/jobs/e2e_node/containerd/image-config-systemd.yaml + - --node-args=--image-config-file=/home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/image-config-systemd.yaml resources: limits: - cpu: 4 - memory: 6Gi + cpu: "4" + memory: "6Gi" requests: - cpu: 4 - memory: 6Gi + cpu: "4" + memory: "6Gi" - name: pull-kubernetes-node-e2e-containerd-ec2 skip_branches: - release-\d+\.\d+ # per-release image