Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prow/jobs/images/build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ docker build -f "$IMAGE_DIR/Dockerfile.deploy" --quiet=$QUIET -t "prow/deploy" "
docker build -f "$IMAGE_DIR/Dockerfile.docs" --quiet=$QUIET -t "prow/docs" "${IMAGE_DIR}"
docker build -f "$IMAGE_DIR/Dockerfile.soak" --quiet=$QUIET --build-arg DEPLOY_BASE_TAG="prow/deploy" -t "prow/soak" "${IMAGE_DIR}"

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

for IMAGE_TYPE in integration unit; do
Expand Down
42 changes: 42 additions & 0 deletions prow/jobs/jinja/presubmits/service_tests.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,48 @@
value: {{ service }}
- name: DUMP_CONTROLLER_LOGS
value: "true"
- name: ENABLE_E2E_TESTS
value: "true"
- name: ENABLE_HELM_CHART_TEST
value: "false"
command: ["wrapper.sh", "bash", "-c", "make kind-test SERVICE=$SERVICE"]

- name: {{ service }}-release-test
decorate: true
optional: false
always_run: true
labels:
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
extra_refs:
- org: aws-controllers-k8s
repo: code-generator
base_ref: main
workdir: false
- org: aws-controllers-k8s
repo: test-infra
base_ref: main
workdir: true
spec:
serviceAccountName: pre-submit-service-account
containers:
- image: public.ecr.aws/m5q3e4b2/prow:prow-integration-0.0.3
securityContext:
privileged: true
resources:
requests:
cpu: 2
limits:
cpu: 8
env:
- name: SERVICE
value: {{ service }}
- name: DUMP_CONTROLLER_LOGS
value: "true"
- name: ENABLE_E2E_TESTS
value: "false"
- name: ENABLE_HELM_CHART_TEST
value: "true"
command: ["wrapper.sh", "bash", "-c", "make kind-test SERVICE=$SERVICE"]

- name: {{ service }}-unit-test
Expand Down
Loading