Skip to content

Commit ad1871e

Browse files
committed
add a new <service>-release-test presubmit job to test helm chart installations.
1 parent 14e3dad commit ad1871e

File tree

5 files changed

+966
-232
lines changed

5 files changed

+966
-232
lines changed

prow/jobs/images/build-images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ docker build -f "$IMAGE_DIR/Dockerfile.deploy" --quiet=$QUIET -t "prow/deploy" "
2828
docker build -f "$IMAGE_DIR/Dockerfile.docs" --quiet=$QUIET -t "prow/docs" "${IMAGE_DIR}"
2929
docker build -f "$IMAGE_DIR/Dockerfile.soak" --quiet=$QUIET --build-arg DEPLOY_BASE_TAG="prow/deploy" -t "prow/soak" "${IMAGE_DIR}"
3030

31-
export TEST_BASE_TAG="prow/test-$(uuidgen | cut -c1-8)"
31+
export TEST_BASE_TAG=$(echo "prow/test-$(uuidgen | cut -c1-8)" | tr '[:upper:]' '[:lower:]')
3232
docker build -f "$IMAGE_DIR/Dockerfile.test" --quiet=$QUIET -t $TEST_BASE_TAG "${IMAGE_DIR}"
3333

3434
for IMAGE_TYPE in integration unit; do

prow/jobs/jinja/presubmits/service_tests.jinja2

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,48 @@
3232
value: {{ service }}
3333
- name: DUMP_CONTROLLER_LOGS
3434
value: "true"
35+
- name: ENABLE_E2E_TESTS
36+
value: "true"
37+
- name: ENABLE_HELM_CHART_TEST
38+
value: "false"
39+
command: ["wrapper.sh", "bash", "-c", "make kind-test SERVICE=$SERVICE"]
40+
41+
- name: {{ service }}-release-test
42+
decorate: true
43+
optional: false
44+
always_run: true
45+
labels:
46+
preset-dind-enabled: "true"
47+
preset-kind-volume-mounts: "true"
48+
extra_refs:
49+
- org: aws-controllers-k8s
50+
repo: code-generator
51+
base_ref: main
52+
workdir: false
53+
- org: aws-controllers-k8s
54+
repo: test-infra
55+
base_ref: main
56+
workdir: true
57+
spec:
58+
serviceAccountName: pre-submit-service-account
59+
containers:
60+
- image: public.ecr.aws/m5q3e4b2/prow:prow-integration-0.0.3
61+
securityContext:
62+
privileged: true
63+
resources:
64+
requests:
65+
cpu: 2
66+
limits:
67+
cpu: 8
68+
env:
69+
- name: SERVICE
70+
value: {{ service }}
71+
- name: DUMP_CONTROLLER_LOGS
72+
value: "true"
73+
- name: ENABLE_E2E_TESTS
74+
value: "false"
75+
- name: ENABLE_HELM_CHART_TEST
76+
value: "true"
3577
command: ["wrapper.sh", "bash", "-c", "make kind-test SERVICE=$SERVICE"]
3678

3779
- name: {{ service }}-unit-test

0 commit comments

Comments
 (0)