Skip to content

Commit 9f96422

Browse files
Attempt to catch mac crash
1 parent 90ac6f8 commit 9f96422

1 file changed

Lines changed: 33 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,24 @@ jobs:
252252
253253
- name: Run integration tests
254254
if: matrix.e2e-testing
255-
timeout-minutes: 5
255+
timeout-minutes: 45
256256
shell: bash
257257
env:
258258
RUST_LOG: "metrics=debug"
259259
run: |
260260
set -euo pipefail
261261
source .token_helpers/set_data_track_test_tokens.bash
262-
build-release/bin/livekit_integration_tests \
263-
--gtest_output=xml:build-release/integration-test-results.xml
262+
# TMP: Mac crash debug - begin lldb wrapper
263+
if [[ "$RUNNER_OS" == "macOS" ]]; then
264+
lldb --batch \
265+
-o "run --gtest_repeat=10 --gtest_output=xml:build-release/integration-test-results.xml" \
266+
-o "thread backtrace all" \
267+
-- build-release/bin/livekit_integration_tests
268+
else
269+
build-release/bin/livekit_integration_tests \
270+
--gtest_output=xml:build-release/integration-test-results.xml
271+
fi
272+
# TMP: Mac crash debug - end lldb wrapper
264273
265274
- name: Stop livekit-server
266275
if: always() && matrix.e2e-testing
@@ -276,6 +285,27 @@ jobs:
276285
shell: bash
277286
run: tail -n 500 livekit-server.log || true
278287

288+
# TMP: Mac crash debug - begin crash report collection
289+
- name: Collect macOS crash reports
290+
if: failure() && runner.os == 'macOS' && matrix.e2e-testing
291+
shell: bash
292+
run: |
293+
set -euxo pipefail
294+
mkdir -p crash-reports
295+
sleep 5
296+
cp -v "$HOME"/Library/Logs/DiagnosticReports/livekit_integration_tests*.crash crash-reports/ || true
297+
cp -v /Library/Logs/DiagnosticReports/livekit_integration_tests*.crash crash-reports/ || true
298+
299+
- name: Upload macOS crash reports
300+
if: failure() && runner.os == 'macOS' && matrix.e2e-testing
301+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
302+
with:
303+
name: macos-crash-reports-${{ matrix.name }}
304+
path: crash-reports/**
305+
if-no-files-found: ignore
306+
retention-days: 7
307+
# TMP: Mac crash debug - end crash report collection
308+
279309
# ---------- Upload results ----------
280310
- name: Upload test results
281311
if: always()

0 commit comments

Comments
 (0)