From ba1ca4c4a670b2772a6081c8c2c321dff91f4961 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Thu, 17 Dec 2020 08:03:32 -0700 Subject: [PATCH] github: Improve logging and reporting Display the high-level log, test-suite.log, in the github work for all jobs. Also, archive the functional test logs to facilitate debugging a failed run. Signed-off-by: Tom Hromatka --- .github/workflows/continuous-integration.yml | 18 ++++++++++++++++++ googletest | 2 +- tests | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 675e8cb5..634a9f55 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -38,6 +38,8 @@ jobs: pushd tests/gunit make check popd + - name: Display test logs + run: cat tests/gunit/test-suite.log - name: Collate code coverage results run: lcov -d . -c > lcov.info - name: Upload code coverage results @@ -62,6 +64,14 @@ jobs: uses: ./.github/actions/setup-libcgroup - name: Run functional tests run: make check + - name: Display test logs + run: cat tests/ftests/test-suite.log + - name: Archive test logs + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: Cgroup v1 test logs + path: tests/ftests/*.log - name: Collate code coverage results run: lcov -d . -c > lcov.info - name: Upload code coverage results @@ -96,6 +106,14 @@ jobs: uses: ./.github/actions/setup-libcgroup - name: Run functional tests run: make check + - name: Display test logs + run: cat tests/ftests/test-suite.log + - name: Archive test logs + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: Cgroup v2 test logs + path: tests/ftests/*.log - name: Collate code coverage results run: lcov -d . -c > lcov.info - name: Upload code coverage results diff --git a/googletest b/googletest index 8ffb7e5c..ec44c6c1 160000 --- a/googletest +++ b/googletest @@ -1 +1 @@ -Subproject commit 8ffb7e5c88b20a297a2e786c480556467496463b +Subproject commit ec44c6c1675c25b9827aacd08c02433cccde7780 diff --git a/tests b/tests index d54844c3..918443bd 160000 --- a/tests +++ b/tests @@ -1 +1 @@ -Subproject commit d54844c34b2261f34b43fe522872d4983c4c8a9a +Subproject commit 918443bd89efb807d92c1754b0b3fbff4bd3304f -- 2.47.2