From 12a37cdcaf003da7725737eba45b5a1dc4e7a046 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 3 Mar 2021 15:15:55 +0800 Subject: [PATCH] add a debug option to the GitHub Action integrationtest workflow --- .github/workflows/integration.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 8259320a7..d9d3dc192 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -8,6 +8,7 @@ jobs: go: [ "1.15.x", "1.16.x" ] runs-on: ubuntu-latest env: + DEBUG: false # set this to true to export qlogs and save them as artifacts TIMESCALE_FACTOR: 3 name: Integration Tests (Go ${{ matrix.go }}) steps: @@ -21,9 +22,22 @@ jobs: run: go install github.com/onsi/ginkgo/ginkgo - name: Install dependencies run: go install + - name: set qlogger + if: ${{ env.DEBUG }} + run: echo "QLOGFLAG=-- -qlog" >> $GITHUB_ENV - name: Run tests - run: ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests + run: | + ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace -skipPackage self integrationtests + ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests/self ${{ env.QLOGFLAG }} - name: Run tests (32 bit) env: GOARCH: 386 - run: ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests + run: | + ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace -skipPackage self integrationtests + ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests/self ${{ env.QLOGFLAG }} + - name: save qlogs + if: ${{ always() && env.DEBUG }} + uses: actions/upload-artifact@v2 + with: + name: qlogs + path: integrationtests/self/*.qlog