Skip to content

Commit

Permalink
Add knative/net-contour CI jobs (knative#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmoor authored and knative-prow-robot committed Jan 28, 2020
1 parent 2bd4539 commit c2f9c1b
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 0 deletions.
144 changes: 144 additions & 0 deletions ci/prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ tide:
- "knative/eventing"
- "knative/eventing-contrib"
- "knative/eventing-operator"
- "knative/net-contour"
- "knative/observability"
- "knative/pkg"
- "knative/sample-controller"
Expand Down Expand Up @@ -4356,6 +4357,111 @@ presubmits:
- name: covbot-token
secret:
secretName: covbot-token
knative/net-contour:
- name: pull-knative-net-contour-build-tests
agent: kubernetes
context: pull-knative-net-contour-build-tests
always_run: true
rerun_command: "/test pull-knative-net-contour-build-tests"
trigger: "(?m)^/test (all|pull-knative-net-contour-build-tests),?(\\s+|$)"
decorate: true
path_alias: knative.dev/net-contour
spec:
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests-go112:stable
imagePullPolicy: Always
command:
- runner.sh
args:
- "./test/presubmit-tests.sh"
- "--build-tests"
volumeMounts:
- name: repoview-token
mountPath: /etc/repoview-token
readOnly: true
- 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: repoview-token
secret:
secretName: repoview-token
- name: test-account
secret:
secretName: test-account
- name: pull-knative-net-contour-unit-tests
agent: kubernetes
labels:
prow.k8s.io/pubsub.project: knative-tests
prow.k8s.io/pubsub.topic: knative-monitoring
prow.k8s.io/pubsub.runID: pull-knative-net-contour-unit-tests
context: pull-knative-net-contour-unit-tests
always_run: true
rerun_command: "/test pull-knative-net-contour-unit-tests"
trigger: "(?m)^/test (all|pull-knative-net-contour-unit-tests),?(\\s+|$)"
decorate: true
path_alias: knative.dev/net-contour
spec:
containers:
- image: gcr.io/knative-tests/test-infra/prow-tests-go112:stable
imagePullPolicy: Always
command:
- runner.sh
args:
- "./test/presubmit-tests.sh"
- "--unit-tests"
volumeMounts:
- name: repoview-token
mountPath: /etc/repoview-token
readOnly: true
- 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: repoview-token
secret:
secretName: repoview-token
- name: test-account
secret:
secretName: test-account
- name: pull-knative-net-contour-go-coverage
agent: kubernetes
context: pull-knative-net-contour-go-coverage
always_run: true
rerun_command: "/test pull-knative-net-contour-go-coverage"
trigger: "(?m)^/test (all|pull-knative-net-contour-go-coverage),?(\\s+|$)"
optional: true
decorate: true
path_alias: knative.dev/net-contour
spec:
containers:
- image: gcr.io/knative-tests/test-infra/coverage-go112:latest
imagePullPolicy: Always
command:
- "/coverage"
args:
- "--postsubmit-job-name=post-knative-net-contour-go-coverage"
- "--artifacts=$(ARTIFACTS)"
- "--cov-threshold-percentage=50"
- "--github-token=/etc/covbot-token/token"
volumeMounts:
- name: covbot-token
mountPath: /etc/covbot-token
readOnly: true
volumes:
- name: covbot-token
secret:
secretName: covbot-token
knative/serving-operator:
- name: pull-knative-serving-operator-build-tests
agent: kubernetes
Expand Down Expand Up @@ -8000,6 +8106,28 @@ periodics:
args:
- "--artifacts=$(ARTIFACTS)"
- "--cov-threshold-percentage=50"
- cron: "0 1 * * *"
name: ci-knative-net-contour-go-coverage
labels:
prow.k8s.io/pubsub.project: knative-tests
prow.k8s.io/pubsub.topic: knative-monitoring
prow.k8s.io/pubsub.runID: ci-knative-net-contour-go-coverage
agent: kubernetes
decorate: true
extra_refs:
- org: knative
repo: net-contour
base_ref: master
path_alias: knative.dev/net-contour
spec:
containers:
- image: gcr.io/knative-tests/test-infra/coverage-go112:latest
imagePullPolicy: Always
command:
- "/coverage"
args:
- "--artifacts=$(ARTIFACTS)"
- "--cov-threshold-percentage=50"
- cron: "0 */6 * * *"
name: ci-knative-cleanup
labels:
Expand Down Expand Up @@ -8977,6 +9105,22 @@ postsubmits:
args:
- "--artifacts=$(ARTIFACTS)"
- "--cov-threshold-percentage=0"
knative/net-contour:
- name: post-knative-net-contour-go-coverage
branches:
- master
agent: kubernetes
decorate: true
path_alias: knative.dev/net-contour
spec:
containers:
- image: gcr.io/knative-tests/test-infra/coverage-go112:latest
imagePullPolicy: Always
command:
- "/coverage"
args:
- "--artifacts=$(ARTIFACTS)"
- "--cov-threshold-percentage=0"
knative/serving-operator:
- name: post-knative-serving-operator-go-coverage
branches:
Expand Down
10 changes: 10 additions & 0 deletions ci/prow/config_knative.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,16 @@ presubmits:
- integration-tests: true
- go-coverage: true

knative/net-contour:
- build-tests: true
dot-dev: true
- unit-tests: true
dot-dev: true
- integration-tests: false
dot-dev: true
- go-coverage: true
dot-dev: true

knative/serving-operator:
- repo-settings:
go112-branches:
Expand Down
25 changes: 25 additions & 0 deletions ci/prow/plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ approve:
- "knative/eventing"
- "knative/eventing-contrib"
- "knative/eventing-operator"
- "knative/net-contour"
- "knative/observability"
- "knative/pkg"
- "knative/sample-controller"
Expand Down Expand Up @@ -267,6 +268,30 @@ plugins:
- wip
- yuks
- project
knative/net-contour:
- approve
- assign
- blunderbuss
- buildifier
- cat
- dog
- golint
- heart
- help
- hold
- label
- lgtm
- lifecycle
- milestone
- owners-label
- shrug
- size
- skip
- trigger
- verify-owners
- wip
- yuks
- project
knative/observability:
- approve
- assign
Expand Down
10 changes: 10 additions & 0 deletions ci/prow/testgrid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ test_groups:
gcs_prefix: knative-prow/logs/ci-knative-eventing-operator-go-coverage
num_failures_to_alert: 9999
short_text_metric: "coverage"
- name: pull-knative-net-contour-test-coverage
gcs_prefix: knative-prow/logs/ci-knative-net-contour-go-coverage
num_failures_to_alert: 9999
short_text_metric: "coverage"
- name: ci-knative-serving-0.9-continuous
gcs_prefix: knative-prow/logs/ci-knative-serving-0.9-continuous
- name: ci-knative-eventing-0.9-continuous
Expand Down Expand Up @@ -480,6 +484,11 @@ dashboards:
- name: coverage
test_group_name: pull-knative-eventing-operator-test-coverage
base_options: "exclude-filter-by-regex=Overall$&group-by-directory=&expand-groups=&sort-by-name="
- name: net-contour
dashboard_tab:
- name: coverage
test_group_name: pull-knative-net-contour-test-coverage
base_options: "exclude-filter-by-regex=Overall$&group-by-directory=&expand-groups=&sort-by-name="
- name: knative-gcp
dashboard_tab:
- name: continuous
Expand Down Expand Up @@ -580,6 +589,7 @@ dashboard_groups:
- "test-infra"
- "serving-operator"
- "eventing-operator"
- "net-contour"
- name: google
dashboard_names:
- "knative-gcp"

0 comments on commit c2f9c1b

Please sign in to comment.