From 1a8dcb0d123edc675f18f05f6b6f066ea9b568bb Mon Sep 17 00:00:00 2001 From: Dmitrii Petukhov Date: Fri, 1 Nov 2024 17:34:49 +0200 Subject: [PATCH] Collect core dumps and broker executable on failure Signed-off-by: Dmitrii Petukhov --- .github/workflows/build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 044c8702bf..bbd3bfeadc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -207,8 +207,17 @@ jobs: deps /opt/bb/include key: cache-${{ github.sha }} + + - name: Setup Core Dumps config + run: | + sudo mkdir /cores + sudo chmod 777 /cores + echo "/cores/%e.%p.%s.%t" | sudo tee /proc/sys/kernel/core_pattern + - name: Run Integration Tests run: | + # Allow core dumps + ulimit -c unlimited pip install -r ${{ github.workspace }}/src/python/requirements.txt ${{ github.workspace }}/src/integration-tests/run-tests "${{ matrix.mode }} and ${{ matrix.cluster }}" \ --log-level ERROR \ @@ -229,6 +238,22 @@ jobs: path: ${{ github.workspace }}/src/integration-tests/failure-logs retention-days: 5 + - name: Upload broker core dump as artifacts + if: failure() + uses: actions/upload-artifact@v4 + with: + name: core_dumps + path: /cores + retention-days: 5 + + - name: Upload broker executable as artifacts to debug the core + if: failure() + uses: actions/upload-artifact@v4 + with: + name: bmqbrkr + path: ${{ github.workspace }}/build/blazingmq/src/applications/bmqbrkr/bmqbrkr.tsk + retention-days: 5 + fuzz_tests_ubuntu: name: Fuzz test [${{ matrix.request }}] strategy: