Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup presubmit smoke E2E tests for serving #908

Merged
merged 1 commit into from
Jun 12, 2019
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
40 changes: 40 additions & 0 deletions ci/prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,46 @@ presubmits:
- name: test-account
secret:
secretName: test-account
- name: pull-knative-serving-smoke-tests
agent: kubernetes
context: pull-knative-serving-smoke-tests
always_run: true
rerun_command: "/test pull-knative-serving-smoke-tests"
trigger: "(?m)^/test (all|pull-knative-serving-smoke-tests),?(\\s+|$)"
skip_branches:
- "release-0.4"
- "release-0.5"
- "release-0.6"
spec:
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests:stable
imagePullPolicy: Always
args:
- "--scenario=kubernetes_execute_bazel"
- "--clean"
- "--job=$(JOB_NAME)"
- "--repo=github.com/$(REPO_OWNER)/$(REPO_NAME)=$(PULL_REFS)"
- "--root=/go/src"
- "--service-account=/etc/test-account/service-account.json"
- "--upload=gs://knative-prow/pr-logs"
- "--" # end bootstrap args, scenario args below
- "--" # end kubernetes_execute_bazel flags (consider following flags as text)
- "./test/presubmit-tests.sh"
- "--run-test"
- "./test/e2e-smoke-tests.sh"
volumeMounts:
- name: test-account
mountPath: /etc/test-account
readOnly: true
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/test-account/service-account.json
- name: E2E_CLUSTER_REGION
value: us-central1
volumes:
- name: test-account
secret:
secretName: test-account
- name: pull-knative-serving-go-coverage
agent: kubernetes
context: pull-knative-serving-go-coverage
Expand Down
8 changes: 8 additions & 0 deletions ci/prow/config_knative.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ presubmits:
args:
- "--run-test"
- "./test/e2e-upgrade-tests.sh"
- custom-test: smoke-tests
skip_branches: # Skip these branches, as test isn't available.
- release-0.4
- release-0.5
- release-0.6
args:
- "--run-test"
- "./test/e2e-smoke-tests.sh"
- go-coverage: true
go-coverage-threshold: 80
- custom-test: perf-tests
Expand Down