Skip to content

Commit ca83afe

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

File tree

6 files changed

+784
-91
lines changed

6 files changed

+784
-91
lines changed

prow/jobs/images/Dockerfile.integration

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ RUN echo "Ensuring Legacy Iptables ..." \
4545
RUN curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.10.0/kind-linux-amd64 && \
4646
chmod +x ./kind && \
4747
mv ./kind /usr/bin/kind
48+
49+
RUN echo "Installing yq ..." \
50+
&& curl -L -s https://github.com/mikefarah/yq/releases/download/v4.2.0/yq_linux_amd64 --output /usr/bin/yq \
51+
&& chmod +x /usr/bin/yq
52+

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: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
spec:
2020
serviceAccountName: pre-submit-service-account
2121
containers:
22-
- image: public.ecr.aws/m5q3e4b2/prow:prow-integration-0.0.3
22+
- image: public.ecr.aws/m5q3e4b2/prow:prow-integration-0.0.4
2323
securityContext:
2424
privileged: true
2525
resources:
@@ -32,7 +32,45 @@
3232
value: {{ service }}
3333
- name: DUMP_CONTROLLER_LOGS
3434
value: "true"
35+
- name: ONLY_TEST_E2E
36+
value: "true"
3537
command: ["wrapper.sh", "bash", "-c", "make kind-test SERVICE=$SERVICE"]
38+
39+
- name: {{ service }}-release-test
40+
decorate: true
41+
optional: false
42+
always_run: true
43+
labels:
44+
preset-dind-enabled: "true"
45+
preset-kind-volume-mounts: "true"
46+
extra_refs:
47+
- org: aws-controllers-k8s
48+
repo: code-generator
49+
base_ref: main
50+
workdir: false
51+
- org: aws-controllers-k8s
52+
repo: test-infra
53+
base_ref: main
54+
workdir: true
55+
spec:
56+
serviceAccountName: pre-submit-service-account
57+
containers:
58+
- image: public.ecr.aws/m5q3e4b2/prow:prow-integration-0.0.4
59+
securityContext:
60+
privileged: true
61+
resources:
62+
requests:
63+
cpu: 2
64+
limits:
65+
cpu: 8
66+
env:
67+
- name: SERVICE
68+
value: {{ service }}
69+
- name: DUMP_CONTROLLER_LOGS
70+
value: "true"
71+
- name: ONLY_TEST_HELM_CHARTS
72+
value: "true"
73+
command: ["wrapper.sh", "bash", "-c", "make kind-test SERVICE=$SERVICE"]
3674

3775
- name: {{ service }}-unit-test
3876
decorate: true

0 commit comments

Comments
 (0)