containerd/script/setup
Brian Goff af1e2af720 ci: upload junit formatted test results
This allows us to dig more details out of test runs and maintain a
better history.

For this we can use `gotestsum`, which is a utility that wraps `go test`
so that it outputs test2json (go's format) and output junit (a format
more easily imported into other systems).

The PR makes it possible to override the Makefile's use of `go test` to
use any other command tto executet the test. For CI we'll use `gotestsum
--`, where `gotestsum` expects everything after the `--` to be flags for
`go test`.
We then use environment variables to configure `gotestsum` (e.g.
`GOTESTSUM_JUNITFILE` is an env var accepted by `gotestsum`).

For cri tests, the test suite supports outputing test results to a
directory, these are in junit format already. The file is not named
properly just because the code that creates it (in ginkgo) is not
configured well. We can fix that upstream to give us a better name...
until then I'm keeping those results in a separate dir.

A second workflow is also added so the test results can be summed up and
a report added to the workflow run. The 2nd workflow is required for
this since PR runs do not have access to do some of this due to safety
reasons
(https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2021-03-31 17:00:49 +00:00
..
config-containerd Update Vagrantfile for testing SELinux 2020-08-10 01:55:44 -07:00
config-selinux Update Vagrantfile for testing SELinux 2020-08-10 01:55:44 -07:00
critools-version adds critools-version 2021-03-24 10:58:40 -05:00
install-cni clean up install-cni and install-critools 2021-03-11 10:21:32 -06:00
install-cni-windows script/setup: use git clone instead of go get -d 2021-03-03 15:34:54 -05:00
install-critools adds critools-version 2021-03-24 10:58:40 -05:00
install-dev-tools Fix exported comments enforcer in CI 2021-03-12 08:47:05 -08:00
install-gotestsum ci: upload junit formatted test results 2021-03-31 17:00:49 +00:00
install-protobuf vendor protobuf & grpc 2020-02-26 10:57:05 +09:00
install-runc Prevent runc inheriting BUILDTAGS from containerd 2021-03-12 18:37:18 +01:00
install-seccomp Fix incorrect comment from copy/paste of starting script 2020-02-13 11:48:12 -05:00
runc-version move runc version to a separate file for easier consumption 2021-03-10 14:28:29 +01:00