diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2020-04-11 00:18:14 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-10 10:30:40 -0700 |
commit | f72f328bc57e1b0db380ef76e0c1e94a9ed0ac7c (patch) | |
tree | 813da494c2ddf70379cb3757ccca9e739eb32480 /ci | |
parent | ci: add a problem matcher for GitHub Actions (diff) | |
download | tgif-f72f328bc57e1b0db380ef76e0c1e94a9ed0ac7c.tar.xz |
ci: let GitHub Actions upload failed tests' directories
Arguably, CI builds' most important task is to not only identify
regressions, but to make it as easy as possible to investigate what went
wrong.
In that light, we will want to provide users with a way to inspect the
tests' output as well as the corresponding directories.
This commit adds build steps that are only executed when tests failed,
uploading the relevant information as build artifacts. These artifacts
can then be downloaded by interested parties to diagnose the failures
more efficiently.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/print-test-failures.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/print-test-failures.sh b/ci/print-test-failures.sh index e688a26f0d..92a983a265 100755 --- a/ci/print-test-failures.sh +++ b/ci/print-test-failures.sh @@ -46,6 +46,13 @@ do mv "$trash_dir" failed-test-artifacts continue ;; + github-actions) + mkdir -p failed-test-artifacts + echo "::set-env name=FAILED_TEST_ARTIFACTS::t/failed-test-artifacts" + cp "${TEST_EXIT%.exit}.out" failed-test-artifacts/ + tar czf failed-test-artifacts/"$test_name".trash.tar.gz "$trash_dir" + continue + ;; *) echo "Unhandled CI type: $CI_TYPE" >&2 exit 1 |