Skip to content

Commit

Permalink
Measure Test Code Coverage for Tekton Results repo
Browse files Browse the repository at this point in the history
  • Loading branch information
xinredhat authored and tekton-robot committed Sep 14, 2023
1 parent a51f672 commit 74e5d53
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,30 @@ presubmits:
limits:
cpu: 3500m
memory: 8Gi
- name: pull-tekton-results-go-coverage
labels:
preset-github-token: "true"
agent: kubernetes
always_run: true
rerun_command: "/test pull-tekton-results-go-coverage"
trigger: "(?m)^/test (all|pull-tekton-results-go-coverage),?(\\s+|$)"
optional: true
decorate: true
clone_uri: "https://github.com/tektoncd/results.git"
spec:
containers:
- image: gcr.io/tekton-releases/dogfooding/coverage:latest
imagePullPolicy: Always
command:
- "/coverage"
args:
- "--postsubmit-gcs-bucket=tekton-prow"
- "--postsubmit-job-name=post-tekton-results-go-coverage"
- "--artifacts=$(ARTIFACTS)"
- "--profile-name=coverage_profile.txt"
- "--cov-target=."
- "--cov-threshold-percentage=0"
- "--github-token=/etc/github-token/oauth"
tektoncd/triggers:
- name: pull-tekton-triggers-build-tests
labels:
Expand Down Expand Up @@ -1921,7 +1945,21 @@ postsubmits:
args:
- "--artifacts=$(ARTIFACTS)"
- "--cov-threshold-percentage=0"

tektoncd/results:
- name: post-tekton-results-go-coverage
branches:
- main
agent: kubernetes
decorate: true
spec:
containers:
- image: gcr.io/tekton-releases/dogfooding/coverage:latest
imagePullPolicy: Always
command:
- "/coverage"
args:
- "--artifacts=$(ARTIFACTS)"
- "--cov-threshold-percentage=0"
periodics:
- cron: "5 2 * * *"
name: ci-tekton-pipeline-upgrade-tests
Expand Down

0 comments on commit 74e5d53

Please sign in to comment.