From 28ec3744a66102a190c56e518556e31e333c3815 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 8 Apr 2020 17:52:35 +0200 Subject: [PATCH] workflows: add core dumps and backtrace to CI --- .github/workflows/sitl_tests.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sitl_tests.yml b/.github/workflows/sitl_tests.yml index 69b82b90f8..1805930429 100644 --- a/.github/workflows/sitl_tests.yml +++ b/.github/workflows/sitl_tests.yml @@ -17,7 +17,9 @@ jobs: bionic, focal ] - container: px4io/px4-dev-simulation-${{ matrix.ubuntu_release }}:2020-04-01 + container: + image: px4io/px4-dev-simulation-${{ matrix.ubuntu_release }}:2020-04-01 + options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined steps: - uses: actions/checkout@v1 with: @@ -39,6 +41,10 @@ jobs: run: DONT_RUN=1 make px4_sitl PX4_CMAKE_BUILD_TYPE=Coverage gazebo mavsdk_tests - name: ccache post-run run: ccache -s && ccache -z + - name: Core dump settings + run: | + ulimit -c unlimited + echo '/tmp/core.%e.%t' > /proc/sys/kernel/core_pattern - name: Run SITL tests run: test/mavsdk_tests/mavsdk_test_runner.py --speed-factor 20 --abort-early test/mavsdk_tests/configs/sitl.json - name: Run SITL tests in Southern hemisphere @@ -47,6 +53,12 @@ jobs: - name: Run SITL tests far in the West run: PX4_HOME_LAT=59.6176928 PX4_HOME_LON=-151.1453163 PX4_HOME_ALT=48 | test/mavsdk_tests/mavsdk_test_runner.py --speed-factor 20 --abort-early test/mavsdk_tests/configs/sitl.json + - name: Show core files + if: always() + run: find /tmp -name "core*" + - name: Look for core files + if: always() + run: find /tmp -name "core.px4.*" | xargs -I '{}' gdb build/px4_sitl_default/bin/px4 '{}' -ex "thread apply all bt" -ex "quit" # Report test coverage - name: disable the keychain credential helper