git/ci
SZEDER Gábor aea8879a6a travis-ci: include the trash directories of failed tests in the trace log
The trash directory of a failed test might contain invaluable
information about the cause of the failure, but we have no access to
the trash directories of Travis CI build jobs.  The only feedback we
get from there is the build job's trace log, so...

Modify 'ci/print-test-failures.sh' to create a tar.gz archive of the
trash directory of each failed test, encode that archive with base64,
and print the resulting block of ASCII text, so it gets embedded in
the trace log.  Furthermore, run tests with '--immediate' to
faithfully preserve the failed state.

Extracting the trash directories from the trace log turned out to be a
bit of a hassle, partly because of the size of these logs (usually
resulting in several hundreds or even thousands of lines of
base64-encoded text), and partly because these logs have CRLF, CRCRLF
and occasionally even CRCRCRLF line endings, which cause 'base64 -d'
from coreutils to complain about "invalid input".  For convenience add
a small script 'ci/util/extract-trash-dirs.sh', which will extract and
unpack all base64-encoded trash directories embedded in the log fed to
its standard input, and include an example command to be copy-pasted
into a terminal to do it all at the end of the failure report.

A few of our tests create sizeable trash directories, so limit the
size of each included base64-encoded block, let's say, to 1MB.  And
just in case something fundamental gets broken and a lot of tests fail
at once, don't include trash directories when the combined size of the
included base64-encoded blocks would exceed 1MB.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-08-01 09:59:36 -07:00
..
util travis-ci: include the trash directories of failed tests in the trace log 2018-08-01 09:59:36 -07:00
install-dependencies.sh travis-ci: set GIT_TEST_HTTPD in 'ci/lib-travisci.sh' 2017-12-12 12:58:28 -08:00
lib-travisci.sh travis-ci: include the trash directories of failed tests in the trace log 2018-08-01 09:59:36 -07:00
print-test-failures.sh travis-ci: include the trash directories of failed tests in the trace log 2018-08-01 09:59:36 -07:00
run-build-and-tests.sh ci: exercise the whole test suite with uncommon code in pack-objects 2018-04-16 12:38:59 +09:00
run-linux32-build.sh travis-ci: don't fail if user already exists on 32 bit Linux build job 2018-01-30 13:27:19 -08:00
run-linux32-docker.sh travis-ci: don't run the test suite as root in the 32 bit Linux build 2018-01-30 13:27:19 -08:00
run-static-analysis.sh travis-ci: record and skip successfully built trees 2018-01-02 11:25:58 -08:00
run-windows-build.sh travis-ci: record and skip successfully built trees 2018-01-02 11:25:58 -08:00
test-documentation.sh travis-ci: check that all build artifacts are .gitignore-d 2018-01-03 13:29:19 -08:00