mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
gitlab: show testlog.txt contents when cirrus/custom-runner jobs fail
When tests fail meson just displays a summary and tells you to look at the testlog.txt file for details. The native jobs on shared runners publish testlog.txt as an artifact. For the Cirrus jobs and custom runner jobs this is not currently possible. The best we can do is cat the log contents on failure, to give maintainers a fighting chance of diagnosing the problem. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220722130431.2319019-3-berrange@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220725140520.515340-3-alex.bennee@linaro.org>
This commit is contained in:
parent
feb6cb9369
commit
998f334722
5 changed files with 30 additions and 1 deletions
|
@ -32,5 +32,6 @@ build_task:
|
||||||
- $MAKE -j$(sysctl -n hw.ncpu)
|
- $MAKE -j$(sysctl -n hw.ncpu)
|
||||||
- for TARGET in $TEST_TARGETS ;
|
- for TARGET in $TEST_TARGETS ;
|
||||||
do
|
do
|
||||||
$MAKE -j$(sysctl -n hw.ncpu) $TARGET V=1 ;
|
$MAKE -j$(sysctl -n hw.ncpu) $TARGET V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
done
|
done
|
||||||
|
|
|
@ -23,6 +23,8 @@ centos-stream-8-x86_64:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../scripts/ci/org.centos/stream/8/x86_64/configure
|
- ../scripts/ci/org.centos/stream/8/x86_64/configure
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make -j"$JOBS"
|
- make -j"$JOBS"
|
||||||
- make NINJA=":" check
|
- make NINJA=":" check
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
- ../scripts/ci/org.centos/stream/8/x86_64/test-avocado
|
- ../scripts/ci/org.centos/stream/8/x86_64/test-avocado
|
||||||
|
|
|
@ -19,5 +19,7 @@ ubuntu-20.04-aarch32-all:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --cross-prefix=arm-linux-gnueabihf-
|
- ../configure --cross-prefix=arm-linux-gnueabihf-
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc --ignore=40`
|
- make --output-sync -j`nproc --ignore=40`
|
||||||
- make --output-sync -j`nproc --ignore=40` check V=1
|
- make --output-sync -j`nproc --ignore=40` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
|
@ -17,9 +17,12 @@ ubuntu-20.04-aarch64-all-linux-static:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --enable-debug --static --disable-system --disable-glusterfs --disable-libssh
|
- ../configure --enable-debug --static --disable-system --disable-glusterfs --disable-libssh
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc --ignore=40`
|
- make --output-sync -j`nproc --ignore=40`
|
||||||
- make --output-sync -j`nproc --ignore=40` check V=1
|
- make --output-sync -j`nproc --ignore=40` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
- make --output-sync -j`nproc --ignore=40` check-tcg V=1
|
- make --output-sync -j`nproc --ignore=40` check-tcg V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
||||||
ubuntu-20.04-aarch64-all:
|
ubuntu-20.04-aarch64-all:
|
||||||
needs: []
|
needs: []
|
||||||
|
@ -38,8 +41,10 @@ ubuntu-20.04-aarch64-all:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --disable-libssh
|
- ../configure --disable-libssh
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc --ignore=40`
|
- make --output-sync -j`nproc --ignore=40`
|
||||||
- make --output-sync -j`nproc --ignore=40` check V=1
|
- make --output-sync -j`nproc --ignore=40` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
||||||
ubuntu-20.04-aarch64-alldbg:
|
ubuntu-20.04-aarch64-alldbg:
|
||||||
needs: []
|
needs: []
|
||||||
|
@ -54,9 +59,11 @@ ubuntu-20.04-aarch64-alldbg:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --enable-debug --disable-libssh
|
- ../configure --enable-debug --disable-libssh
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make clean
|
- make clean
|
||||||
- make --output-sync -j`nproc --ignore=40`
|
- make --output-sync -j`nproc --ignore=40`
|
||||||
- make --output-sync -j`nproc --ignore=40` check V=1
|
- make --output-sync -j`nproc --ignore=40` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
||||||
ubuntu-20.04-aarch64-clang:
|
ubuntu-20.04-aarch64-clang:
|
||||||
needs: []
|
needs: []
|
||||||
|
@ -75,8 +82,10 @@ ubuntu-20.04-aarch64-clang:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --disable-libssh --cc=clang-10 --cxx=clang++-10 --enable-sanitizers
|
- ../configure --disable-libssh --cc=clang-10 --cxx=clang++-10 --enable-sanitizers
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc --ignore=40`
|
- make --output-sync -j`nproc --ignore=40`
|
||||||
- make --output-sync -j`nproc --ignore=40` check V=1
|
- make --output-sync -j`nproc --ignore=40` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
||||||
ubuntu-20.04-aarch64-tci:
|
ubuntu-20.04-aarch64-tci:
|
||||||
needs: []
|
needs: []
|
||||||
|
@ -95,6 +104,7 @@ ubuntu-20.04-aarch64-tci:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --disable-libssh --enable-tcg-interpreter
|
- ../configure --disable-libssh --enable-tcg-interpreter
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc --ignore=40`
|
- make --output-sync -j`nproc --ignore=40`
|
||||||
|
|
||||||
ubuntu-20.04-aarch64-notcg:
|
ubuntu-20.04-aarch64-notcg:
|
||||||
|
@ -114,5 +124,7 @@ ubuntu-20.04-aarch64-notcg:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --disable-libssh --disable-tcg
|
- ../configure --disable-libssh --disable-tcg
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc --ignore=40`
|
- make --output-sync -j`nproc --ignore=40`
|
||||||
- make --output-sync -j`nproc --ignore=40` check V=1
|
- make --output-sync -j`nproc --ignore=40` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
|
@ -17,9 +17,12 @@ ubuntu-20.04-s390x-all-linux-static:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --enable-debug --static --disable-system --disable-glusterfs --disable-libssh
|
- ../configure --enable-debug --static --disable-system --disable-glusterfs --disable-libssh
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc`
|
- make --output-sync -j`nproc`
|
||||||
- make --output-sync -j`nproc` check V=1
|
- make --output-sync -j`nproc` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
- make --output-sync -j`nproc` check-tcg V=1
|
- make --output-sync -j`nproc` check-tcg V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
||||||
ubuntu-20.04-s390x-all:
|
ubuntu-20.04-s390x-all:
|
||||||
needs: []
|
needs: []
|
||||||
|
@ -35,8 +38,10 @@ ubuntu-20.04-s390x-all:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --disable-libssh
|
- ../configure --disable-libssh
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc`
|
- make --output-sync -j`nproc`
|
||||||
- make --output-sync -j`nproc` check V=1
|
- make --output-sync -j`nproc` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
||||||
ubuntu-20.04-s390x-alldbg:
|
ubuntu-20.04-s390x-alldbg:
|
||||||
needs: []
|
needs: []
|
||||||
|
@ -55,9 +60,11 @@ ubuntu-20.04-s390x-alldbg:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --enable-debug --disable-libssh
|
- ../configure --enable-debug --disable-libssh
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make clean
|
- make clean
|
||||||
- make --output-sync -j`nproc`
|
- make --output-sync -j`nproc`
|
||||||
- make --output-sync -j`nproc` check V=1
|
- make --output-sync -j`nproc` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
||||||
ubuntu-20.04-s390x-clang:
|
ubuntu-20.04-s390x-clang:
|
||||||
needs: []
|
needs: []
|
||||||
|
@ -76,8 +83,10 @@ ubuntu-20.04-s390x-clang:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --disable-libssh --cc=clang --cxx=clang++ --enable-sanitizers
|
- ../configure --disable-libssh --cc=clang --cxx=clang++ --enable-sanitizers
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc`
|
- make --output-sync -j`nproc`
|
||||||
- make --output-sync -j`nproc` check V=1
|
- make --output-sync -j`nproc` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
||||||
ubuntu-20.04-s390x-tci:
|
ubuntu-20.04-s390x-tci:
|
||||||
needs: []
|
needs: []
|
||||||
|
@ -96,6 +105,7 @@ ubuntu-20.04-s390x-tci:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --disable-libssh --enable-tcg-interpreter
|
- ../configure --disable-libssh --enable-tcg-interpreter
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc`
|
- make --output-sync -j`nproc`
|
||||||
|
|
||||||
ubuntu-20.04-s390x-notcg:
|
ubuntu-20.04-s390x-notcg:
|
||||||
|
@ -115,5 +125,7 @@ ubuntu-20.04-s390x-notcg:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- ../configure --disable-libssh --disable-tcg
|
- ../configure --disable-libssh --disable-tcg
|
||||||
|
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
|
||||||
- make --output-sync -j`nproc`
|
- make --output-sync -j`nproc`
|
||||||
- make --output-sync -j`nproc` check V=1
|
- make --output-sync -j`nproc` check V=1
|
||||||
|
|| { cat meson-logs/testlog.txt; exit 1; } ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue