From 7252956947b9b30af2d970add0c32f7c824e618c Mon Sep 17 00:00:00 2001 From: Mangirdas Judeikis Date: Mon, 2 Nov 2026 16:41:26 +0200 Subject: [PATCH] Rework prow config --- .prow.yaml | 66 +++++++++++++++++++++++++++++++++++++--- hack/ci/run-e2e-tests.sh | 2 +- 2 files changed, 62 insertions(+), 6 deletions(-) diff --git a/.prow.yaml b/.prow.yaml index bf981d64..efbbee64 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -102,10 +102,24 @@ presubmits: env: - name: KCP_VERSION value: "0.29.3" + # kcp state (etcd included) lives on the RAM-backed kcp-data volume + # so etcd is not stalled by node disk contention. Use a subdirectory: + # the script rm -rf's it, which fails on the mount point itself. + - name: KCP_ROOT_DIRECTORY + value: /kcp-data/kcp resources: requests: - memory: 4Gi + # includes the kcp-data tmpfs, which is charged to the pod + memory: 6Gi cpu: 2 + volumeMounts: + - name: kcp-data + mountPath: /kcp-data + volumes: + - name: kcp-data + emptyDir: + medium: Memory + sizeLimit: 2Gi - name: pull-api-syncagent-test-e2e-kcp-0.30 always_run: true @@ -121,10 +135,24 @@ presubmits: env: - name: KCP_VERSION value: "0.30.3" + # kcp state (etcd included) lives on the RAM-backed kcp-data volume + # so etcd is not stalled by node disk contention. Use a subdirectory: + # the script rm -rf's it, which fails on the mount point itself. + - name: KCP_ROOT_DIRECTORY + value: /kcp-data/kcp resources: requests: - memory: 4Gi + # includes the kcp-data tmpfs, which is charged to the pod + memory: 6Gi cpu: 2 + volumeMounts: + - name: kcp-data + mountPath: /kcp-data + volumes: + - name: kcp-data + emptyDir: + medium: Memory + sizeLimit: 2Gi - name: pull-api-syncagent-test-e2e-kcp-0.31 always_run: true @@ -140,10 +168,24 @@ presubmits: env: - name: KCP_VERSION value: "0.31.0" + # kcp state (etcd included) lives on the RAM-backed kcp-data volume + # so etcd is not stalled by node disk contention. Use a subdirectory: + # the script rm -rf's it, which fails on the mount point itself. + - name: KCP_ROOT_DIRECTORY + value: /kcp-data/kcp resources: requests: - memory: 4Gi + # includes the kcp-data tmpfs, which is charged to the pod + memory: 6Gi cpu: 2 + volumeMounts: + - name: kcp-data + mountPath: /kcp-data + volumes: + - name: kcp-data + emptyDir: + medium: Memory + sizeLimit: 2Gi - name: pull-api-syncagent-test-e2e-kcp-0.32 always_run: true @@ -159,7 +201,21 @@ presubmits: env: - name: KCP_VERSION value: "0.32.0" + # kcp state (etcd included) lives on the RAM-backed kcp-data volume + # so etcd is not stalled by node disk contention. Use a subdirectory: + # the script rm -rf's it, which fails on the mount point itself. + - name: KCP_ROOT_DIRECTORY + value: /kcp-data/kcp resources: requests: - memory: 4Gi - cpu: 2 \ No newline at end of file + # includes the kcp-data tmpfs, which is charged to the pod + memory: 6Gi + cpu: 2 + volumeMounts: + - name: kcp-data + mountPath: /kcp-data + volumes: + - name: kcp-data + emptyDir: + medium: Memory + sizeLimit: 2Gi \ No newline at end of file diff --git a/hack/ci/run-e2e-tests.sh b/hack/ci/run-e2e-tests.sh index 55c8e743..aa075f69 100755 --- a/hack/ci/run-e2e-tests.sh +++ b/hack/ci/run-e2e-tests.sh @@ -37,7 +37,7 @@ source <(make --no-print-directory envtest-env) # start a shared kcp process KCP="$(UGET_PRINT_PATH=relative make --no-print-directory install-kcp)" -KCP_ROOT_DIRECTORY=.kcp.e2e +KCP_ROOT_DIRECTORY="${KCP_ROOT_DIRECTORY:-.kcp.e2e}" KCP_LOGFILE="$ARTIFACTS/kcp.log" KCP_TOKENFILE=hack/ci/testdata/e2e-kcp.tokens