diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3898f98248..52c88d2ca0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -175,8 +175,16 @@ jobs: /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 \ @@ -197,6 +205,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: