2.6 KiB
2.6 KiB
Approve.
Delta reviewed:
- Re-reviewed the fix commit
b30b43b9 test: cfg-gate e2e observer payloadsafter the earlier request-changes review. - Inspected the updated observer module boundary and call sites in
crates/tui/src/lib.rsandcrates/tui/src/multi_pod.rs, plus the unchanged harness/tests intests/e2e.
Evidence:
e2e_observeris now only compiled fromcrates/tui/src/lib.rsunder#[cfg(feature = "e2e-test")]; the previous normal-build no-op facade was removed.- Observer payload construction is gated at call sites with
#[cfg(feature = "e2e-test")], includingpanel_ready,selection_changed,action_requested,quit_requested, andemit_rows_renderedcalls. - Panel E2E DTOs/helpers (
PanelE2eRowKey,PanelE2eRect,PanelE2eRenderedRow,PanelE2eRowsRendered,App::emit_rows_rendered) are now behind#[cfg(feature = "e2e-test")], so the normal panel render path no longer builds row snapshots or retains that runtime helper path. - The background-task hold seam is still feature-gated:
check_background_task_holdandrelease_background_task_holdcalls are under#[cfg(feature = "e2e-test")], andYOI_TUI_TEST_HOLD_BACKGROUND_TASKbehavior lives in the gated observer module. - Mouse capture tracking remains intact in the harness: it tracks
?1000hand?1006h,click(...)requires both capture modes before injecting PTY bytes, the test waits for rendered rows, assertsselection_changed, and asserts noaction_requesteddispatch. - Quit-latency coverage remains intact: the test waits for
panel_ready, then verifies an actual pendingreloadbackground-task barrier before sending Ctrl+C through the PTY and asserting bounded exit. - The production/non-production boundary now satisfies the Ticket intent: the harness remains opt-in, observability is read-only and feature-gated, and no UI input/action path is bypassed.
Validation run in /home/hare/Projects/yoi/.worktree/e2e-harness:
git diff --check 134e8b8b..HEAD— passed.cargo fmt --check— passed.cargo check -p tui --all-targets— passed.cargo check -p yoi --all-targets— passed.cargo check -p tui --all-targets --features e2e-test— passed.cargo check -p yoi --all-targets --features e2e-test— passed.cargo build -p yoi --features e2e-test— passed.YOI_E2E_BIN=/home/hare/Projects/yoi/.worktree/e2e-harness/target/debug/yoi cargo test -p yoi-e2e --features e2e --test panel -- --nocapture— passed; 2 tests passed.cargo check -p yoi-e2e --all-targets --features e2e— passed.
No source changes were made during re-review.