Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
ci(gpui): run the macOS Metal patch tests under lldb so a crash leaves a backtrace
Richie McIlroy4e3c30876c17
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 7a2bf6b2e..70bb14815 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -482,7 +482,20 @@ jobs:WGPU_BACKEND=gl cargo +1.95.0 test -p gpui_wgpu --lib wgpu_atlas -- --nocaptureelif [[ "$RUNNER_OS" == "macOS" ]]; thencargo +1.95.0 test -p gpui_wgpu --lib wgpu_atlas -- --nocapture- cargo +1.95.0 test -p gpui_macos --lib -- metal_atlas metal_renderer+ # Run under lldb: a SIGSEGV in these tests (1 run in about 36 so+ # far) leaves no Rust backtrace, and Blacksmith's macOS VMs write+ # no crash reports. lldb exits 0 whatever the tests return, so+ # pass their exit status through.+ exe=$(cargo +1.95.0 test -p gpui_macos --lib --no-run --message-format json \+ | jq -r 'select(.reason == "compiler-artifact" and .target.name == "gpui_macos" and .profile.test) | .executable' | tail -1)+ lldb --batch -o "process launch" -k "thread backtrace all" -k "quit 1" \+ -- "$exe" metal_atlas metal_renderer 2>&1 | tee "$RUNNER_TEMP/gpui-macos-tests.log"+ if grep -q "stop reason = " "$RUNNER_TEMP/gpui-macos-tests.log"; then+ echo "::error::gpui_macos tests crashed; the backtrace is above"+ exit 1+ fi+ status=$(sed -n 's/.*exited with status = \([0-9]*\).*/\1/p' "$RUNNER_TEMP/gpui-macos-tests.log" | tail -1)+ [[ "$status" == 0 ]] || { echo "::error::gpui_macos tests exited with status ${status:-unknown}"; exit 1; }elsecargo +1.95.0 test -p gpui_windows --lib directx_atlasfi