package
0.0.0-20200602012033-d7993bfd538c
Repository: https://github.com/chizhg/test-infra.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
Overview
The code coverage tool has two major features:
- As a pre-submit tool, it runs code coverage on every single commit to Github and reports coverage changes back to the PR as a comment by a robot account. If made a required job on the repository, it can be used to block a PR from merging if coverage falls below a certain threshold.
- As a periodic running job, it outputs a Junit XML that can be read from other tools like TestGrid to get overall coverage metrics.
Design
See the design document.
Build and Release
In the /images/prow-tests
directory, run make push_coverage_dev
to build and
upload a staging version, intended for testing and debugging. The staging
version can be triggered on a PR through the comment
/test pull-knative-serving-go-coverage-dev
. Note that staging version can only
be tested against the serving repository because the staging jobs only exist in
the serving repository.
Validating the staging version
- To run the pre-submit workflow, add the comment
/test pull-knative-serving-go-coverage-dev
to a PR. - To run the periodic workflow, (re)run a
post-knative-serving-go-coverage-dev
job. - The beta-prow-tests dashboard also has coverage running from prow-tests:beta