mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 08:47:36 +00:00
Base/CI: Run tests from /usr/Tests in GitHub Actions
Uncomment the tests that were disabled due to frequent freezes when running without KVM. This also adds a new github actions group for every single test, which makes it easier to browse test boundaries during test runs. Move catting the serial output log back to its own step, so that it has higher visibility. The previous solution was also shown to not actually cat the log in the case of a failed boot and timeout :^(.
This commit is contained in:
parent
7e905ea201
commit
0d0f52337c
2 changed files with 39 additions and 20 deletions
22
.github/workflows/cmake.yml
vendored
22
.github/workflows/cmake.yml
vendored
|
@ -141,24 +141,20 @@ jobs:
|
|||
if: ${{ matrix.debug-macros == 'NORMAL_DEBUG'}}
|
||||
working-directory: ${{ github.workspace }}/Build
|
||||
env:
|
||||
SERENITY_QEMU_CPU: "max,vmx=off"
|
||||
SERENITY_KERNEL_CMDLINE: "boot_mode=self-test"
|
||||
SERENITY_RUN: "ci"
|
||||
run: |
|
||||
echo "::group::ninja run # Qemu output"
|
||||
run_worked=y
|
||||
ninja run || run_worked=n
|
||||
ninja run
|
||||
echo "::endgroup::"
|
||||
echo "::group::cat debug.log # Serenity output"
|
||||
if [ "y" = "${run_worked}" ] ; then
|
||||
cat debug.log
|
||||
else
|
||||
echo "skipped (qemu had non-zero exit-code)"
|
||||
fi
|
||||
echo "::endgroup::"
|
||||
[ "y" = ${run_worked} ]
|
||||
timeout-minutes: 10
|
||||
# FIXME: When stable, remove continue on error. (See issue #5541)
|
||||
continue-on-error: true
|
||||
timeout-minutes: 20
|
||||
|
||||
- name: Print Target Logs
|
||||
# Extremely useful if Serenity hangs trying to run one of the tests
|
||||
if: ${{ !cancelled() && matrix.debug-macros == 'NORMAL_DEBUG'}}
|
||||
working-directory: ${{ github.workspace }}/Build
|
||||
run: '[ ! -e debug.log ] || cat debug.log'
|
||||
|
||||
build_and_test_lagom:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue