ci: add a unit test for the trace command
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: jhchabran
Having recently broken the trace command script that wraps every test command in the pipeline generator, the necessity to make sure this script is working has become very obvious.
This PR adds:
.sh
in ./enterprise/dev/ci/scripts/
and will run them on every PR.
buildevents
replacement to solely test the script itself and not have any side effects.Example outputs:
Failed pipeline generation if we can't list those tests:
~/work/sourcegraph US devx/test-trace-command $ go run ./enterprise/dev/ci/gen-pipeline.go
2022/01/25 11:24:22 Failed to list CI scripts tests scripts: open ./enterprise/dev/ci/scripts/testsf: no such file or directory
exit status 1
Failed test:
Push commits to the source branch or add previously merged commits to review them.