Repository navigation
automation: demo-cleanups - #907
Conversation
Demo.zig holds a window's arrangement in its own struct instead of a placeholder Snapshot; the unread Keyframe.layout leaves the tape (its binary slot is padding, version unchanged); skipIfShown and skipIfGone wait for idle first so the skip reads a fresh frame. Part of fizzyedit/work#304 Agent-Team: macos Worker: claude Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Agent-Team: linux Worker: codex
Agent-Team: linux Worker: codex
PM note: how this PR will be handledWhat it is for: automation: demo-cleanups Rules that apply: touches the SDK or plugin ABI: the shape fingerprint must be recorded. Things to watch (checked by rule):
What happens next:
A living status comment below is kept current. Nothing here is a merge decision. |
Where this PR standsStage: Author's turn What the PM needs before approving (ticks as it is met; the full CI runs only at the end, after the reviews are clean):
Reviews at the current commit (
2 earlier reviews are for older commits and will be redone. Latest fixes comment: https://github.com/fizzyedit/work/issues/470#issuecomment-6443838013 (3 findings answered) Updated 2026-10-27 14:19 UTC by the PM. This comment is edited in place. |
Keep main's Demo.zig; this PR now adds only the snapshot-leak regression test. Agent-Team: linux Worker: claude
Part of fizzyedit/work#444
Rework: work#480
Goal
Regression test for the demo snapshot arrangement leak (rework of #876, whose
Arrangement.takefix already landed in main as 3b3d42e).What changed and why
Merged origin/main into the branch (no rebase) keeping main's Demo.zig, Tracks.zig and Script.zig. The PR is now one file, tests/demos.zig (+15): the bundled-demo test captures and releases one snapshot per demo under the leak-checking test allocator, and asserts it did. A comment states the allocator swap's dependency.
How it was verified
scripts/check-fmt.sh ok; zb build test 183/183 steps succeeded; zb build test-integration 94/94 steps succeeded. The SDK shape fingerprint did not move (no sdk/ change). Soak verdict run not executed.
Not done / follow-ups
Did not re-run the test against the pre-fix code.
Changes (1 files, +15/-0)
Gates: 6 of 6 passed
scripts/check-fmt.sh(exit 0)scripts/zb build --summary all(exit 0)scripts/zb build test --summary all(exit 0)scripts/zb build test-integration --summary all(exit 0)scripts/zb build check-web --summary all(exit 0)scripts/zb build test-sdk-version --summary all(exit 0)