Skip to content

Commit

Permalink
Update prow and testgrid for knative/observability (knative#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivashegde86 authored and knative-prow-robot committed May 6, 2019
1 parent 68872ca commit 49f428b
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 0 deletions.
140 changes: 140 additions & 0 deletions ci/prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1512,6 +1512,112 @@ presubmits:
- name: covbot-token
secret:
secretName: covbot-token
knative/observability:
- name: pull-knative-observability-build-tests
agent: kubernetes
context: pull-knative-observability-build-tests
always_run: true
rerun_command: "/test pull-knative-observability-build-tests"
trigger: "(?m)^/test (all|pull-knative-observability-build-tests),?(\\s+|$)"
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"
- "--build-tests"
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-observability-unit-tests
agent: kubernetes
context: pull-knative-observability-unit-tests
always_run: true
rerun_command: "/test pull-knative-observability-unit-tests"
trigger: "(?m)^/test (all|pull-knative-observability-unit-tests),?(\\s+|$)"
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"
- "--unit-tests"
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-observability-integration-tests
agent: kubernetes
context: pull-knative-observability-integration-tests
always_run: true
rerun_command: "/test pull-knative-observability-integration-tests"
trigger: "(?m)^/test (all|pull-knative-observability-integration-tests),?(\\s+|$)"
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"
- "--integration-tests"
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
periodics:
- cron: "1 */2 * * *"
name: ci-knative-serving-continuous
Expand Down Expand Up @@ -2958,6 +3064,40 @@ periodics:
- "--profile-name=coverage_profile.txt"
- "--cov-target=."
- "--cov-threshold-percentage=50"
- cron: "30 * * * *"
name: ci-knative-observability-continuous
agent: kubernetes
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/knative/observability"
- "--root=/go/src"
- "--service-account=/etc/test-account/service-account.json"
- "--upload=gs://knative-prow/logs"
- "--timeout=50" # Avoid overrun
- "--" # end bootstrap args, scenario args below
- "--" # end kubernetes_execute_bazel flags (consider following flags as text)
- "./test/presubmit-tests.sh"
- "--all-tests"
- "--emit-metrics"
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
- cron: "0 19 * * 1"
name: ci-knative-cleanup
agent: kubernetes
Expand Down
9 changes: 9 additions & 0 deletions ci/prow/config_knative.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ presubmits:
- integration-tests: true
- go-coverage: true
go-coverage-threshold: 50

knative/observability:
- build-tests: true
- unit-tests: true
- integration-tests: true

periodics:
knative/serving:
Expand Down Expand Up @@ -226,3 +231,7 @@ periodics:

knative/client:
- continuous: false

knative/observability:
- continuous: true
cron: "30 * * * *" # Run every hour and 30 minutes
10 changes: 10 additions & 0 deletions ci/testgrid/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ test_groups:
gcs_prefix: knative-prow/logs/ci-knative-client-go-coverage
num_failures_to_alert: 9999
short_text_metric: "coverage"
- name: ci-knative-observability-continuous
gcs_prefix: knative-prow/logs/ci-knative-observability-continuous
alert_stale_results_hours: 3
num_failures_to_alert: 3
- name: ci-knative-serving-0.4-continuous
gcs_prefix: knative-prow/logs/ci-knative-serving-0.4-continuous
- name: ci-knative-serving-0.5-continuous
Expand Down Expand Up @@ -322,6 +326,11 @@ dashboards:
- name: coverage
test_group_name: pull-knative-client-test-coverage
base_options: "exclude-filter-by-regex=Overall$&group-by-directory=&expand-groups=&sort-by-name="
- name: knative-observability
dashboard_tab:
- name: continuous
test_group_name: ci-knative-observability-continuous
base_options: "sort-by-name="
- name: knative-serving-0.4
dashboard_tab:
- name: continuous
Expand Down Expand Up @@ -359,6 +368,7 @@ dashboard_groups:
- "knative-pkg"
- "knative-caching"
- "knative-client"
- "knative-observability"
- name: knative-0.4
dashboard_names:
- "knative-serving-0.4"
Expand Down

0 comments on commit 49f428b

Please sign in to comment.