From 652036e29f1109480060ecd903ea4fbb5be66c84 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 20 Jun 2020 13:22:57 -0400 Subject: [PATCH] github actions SITL tests upload logs to flight review on failure --- .github/workflows/sitl_tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/sitl_tests.yml b/.github/workflows/sitl_tests.yml index 2b864b2344..41572f309a 100644 --- a/.github/workflows/sitl_tests.yml +++ b/.github/workflows/sitl_tests.yml @@ -76,6 +76,9 @@ jobs: - name: Look at core files if: failure() run: gdb build/px4_sitl_default/bin/px4 px4.core -ex "thread apply all bt" -ex "quit" + - name: Upload logs to flight review + if: failure() + run: ./Tools/upload_log.py -q --description "${GITHUB_WORKFLOW} ${GITHUB_RUN_ID}" --feedback "${GITHUB_WORKFLOW} ${GITHUB_RUN_ID} ${GITHUB_REPOSITORY} ${GITHUB_REF}" --source CI ./build/px4_sitl_default/tmp/rootfs/log/*/*.ulg - name: Upload px4 coredump if: failure() uses: actions/upload-artifact@v2-preview