Skip to content
Merged
Show file tree
Hide file tree
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
28 changes: 28 additions & 0 deletions quest/m0/shots-exit-segfault.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# [S] A shots test's process exits cleanly under load

## Goal

A `just shots` test process that passed never crashes on its way out, even on
a loaded host, fixed at the root cause in the studio's teardown, wgpu, or
lavapipe (the last two upstream). No retry and no skipped teardown. Under
nextest a crash after a pass still fails the run.

## Plan

Decided 2026-11-26 (maintainer, /quest-run): ✅ keep this quest (rejected:
drop it). A rare crash after a pass will turn into a CI flake under nextest.

What is known: while
[shots-scene-remove-flake](https://github.com/moq-dev/studio/pull/271) was
being reproduced, `shots::a_scene_removes_from_its_pad` printed `test result:
ok` and then died with SIGSEGV in 3 of 384 runs. That was 96 copies at once on
a 24-core host. In 48 runs at one copy per core it never crashed. Shots
tests that stop the engine with `quit` do it in one of two orders. That test
calls `quit` while its harness is still alive. The named views drop the
harness first and then call `quit` (`shoot` in `rs/moq-studio/src/shots.rs`).
Whether both orders crash is still open.

Start by catching a core (`coredumpctl`, or `ulimit -c` under the stress loop
that PR describes) and reading its backtrace. If the crash is in the studio,
fix the order things drop in. If it is upstream, file it there and add a
`Waiting` item.
32 changes: 0 additions & 32 deletions quest/m0/shots-scene-remove-flake.md

This file was deleted.

12 changes: 5 additions & 7 deletions rs/moq-studio/src/shots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,13 +822,11 @@ fn a_scene_removes_from_its_pad() {
harness.run_steps(2);

// A scene only leaving program in a transition goes with the transition
// finished on the scene it goes to.
engine
.state
.lock()
.unwrap()
.take("Interview", kio::clock::Instant::now())
.unwrap();
// finished on the scene it goes to. The transition starts an hour from now,
// so the program clock holds it at its start rather than ending it while
// the pad works, which would also shorten the sheet under its Remove.
let later = kio::clock::Instant::now().saturating_add(Duration::from_secs(3600));
engine.state.lock().unwrap().take("Interview", later).unwrap();
assert!(engine.state.lock().unwrap().compositor.transitioning());
more(&mut harness, "Main");
harness.get_all_by_label("Remove").last().unwrap().click();
Expand Down