Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Collect core dumps and broker executable on failure #509

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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:
Expand Down
Loading