mirror of
https://github.com/gravitational/teleport
synced 2024-10-19 16:53:57 +00:00
21caa7cbd8
In order to make it easier to do post-analysis in test logs, this patch makes the CI build save the JSON-formatted logs into a Google Cloud Storage bucket. GCB has a built-in artifact storage system, but unfortunately it only stores artifacts on successful builds. Given that we're interested on doing post-analysis on failed builds, this is unhelpful. The build scripts instead use the GCP API to explicitly upload the test logs to a bucket. This patch * Adds an artifact uploader using the GCP Storage API * Updates the build yaml files to point to the appropriate artifacts & bucket * Updates the makefile to save JSON logs to $TELEPORT/test-logs when running tests * Adds entries to .gitignore to not automatically commit test reports The existing test rendering filter formats the JSON outut for human consumption, meaning that we can both save the JSON logs and that humans manually running tests with via make will still get an intelligible report. In addition to the above, this patch also: * standardizes the build scripts on `logrus` for logging, as this was used by some dependencies. * adds a self-test to the CI code, run as part of `make test`
72 lines
789 B
Plaintext
72 lines
789 B
Plaintext
# this file gets generated by make
|
|
gitref.go
|
|
.data
|
|
debug
|
|
default.etcd
|
|
darwin
|
|
|
|
# web asset directory
|
|
/lib/web/build
|
|
|
|
# usually release tarballs get in the way
|
|
*.gz
|
|
*.zip
|
|
|
|
# editors
|
|
.vscode
|
|
*.swp
|
|
.idea
|
|
|
|
# Compiled binaries, Object files, Static and Dynamic libs (Shared Objects)
|
|
out
|
|
build
|
|
*.o
|
|
*.a
|
|
*.so
|
|
|
|
# Folders
|
|
_obj
|
|
_test
|
|
tmp
|
|
target/
|
|
test-logs/
|
|
|
|
# Architecture specific extensions/prefixes
|
|
[568vq].out
|
|
|
|
*.cgo1.go
|
|
*.cgo2.c
|
|
_cgo_defun.c
|
|
_cgo_gotypes.go
|
|
_cgo_export.*
|
|
.bash_history
|
|
|
|
_testmain.go
|
|
|
|
*.exe
|
|
*.test
|
|
*.prof
|
|
*.tmp
|
|
flymake*
|
|
|
|
# mkdocs
|
|
docs/latest
|
|
docs/latest.yaml
|
|
|
|
# terraform
|
|
.terraform
|
|
terraform.tfstate
|
|
|
|
# macOS
|
|
**/.DS_Store
|
|
|
|
# ansible stuff
|
|
ssh.config
|
|
*.retry
|
|
|
|
# Code signing certificate for Windows binaries
|
|
/windows-signing-cert.pfx
|
|
|
|
# build tooling
|
|
build.assets/tooling/bin/**
|