Repository navigation
[CTX-1924] fix(test): record why the multi-pane kitty spawn is already gated - #3292
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Xuepoo
commented
Nov 21, 2026
Xuepoo
left a comment
Contributor
Author
There was a problem hiding this comment.
Comment-only pty-gate exemption recording why the multi-pane kitty spawn is already Unix-gated; all six guard checks pass.
- PASS — Diff scope: 16be2ee..9bf88a0 touches only crates/bitty-runtime/tests/kitty_images_present.rs (3 insertions, 0 deletions).
- PASS — Assertions intact: the 3 added lines (crates/bitty-runtime/tests/kitty_images_present.rs:1708-1710) are comments; the live spawn with
.expect("spawn pane shell")(:1711-1712) and the global-store boundassert_eq!(rt.kitty_image_count(), bitty_rich::KITTY_PLACE_MAX_IMAGES, …)(:1716-1720) are untouched, so the test can still fail. - PASS — Rationale accurate: the spawn at :1711 really is inside the
#[cfg(unix)]block opened at :1697 (compiled out on Windows), while the enclosing fn at :1646-1647 is a plain#[test]; scripts/check-pty-gated-tests.sh classifies hits only via the attribute lines above the enclosing fn, so it cannot see a body-level cfg block — the recorded reason matches the lint's actual behavior. - PASS — Lint:
just -llistspty-gate(justfile:186-187), which is the fast script ./scripts/check-pty-gated-tests.sh (rg/sed, no cargo build); executed in this worktree:OK: all live-spawn test markers are gated.exit 0. - PASS — Commit hygiene:
git log -1 --format=%scarries the[CTX-1924]prefix; the added comments are English; no hardcoded paths, hosts, or environment values in the added lines. - PASS — CI buckets:
gh pr checks 3292shows every bucket pass or skipping except "Windows check and test" pending, which is acceptable per guard policy; no failures.
Independent review by guard subagent, tick 2026-11-21 13:20 CST, reviewed sha 9bf88a0
VERDICT: APPROVE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Priority: P1 | Area: runtime | Labels: fix,P1,area:runtime | Milestone: v0.1.0 | RFC: none | Task: CTX-1924
Closes #3291. Unblocks the 0.0.47 release gate:
just checkfails onmainatpty-gate.Cause
crates/bitty-runtime/tests/kitty_images_present.rs:1708spawns a pane shell inside a#[cfg(unix)] { … }block. That is a real gate — the code does not exist on Windows — but the lint classifies a hit by the enclosing function's attributes, and the function is a plain#[test].Change
One audited per-hit exemption naming that reason. No code, no behavior, no test-semantics change: the spawn still only runs on Unix.
Verification
./scripts/check-pty-gated-tests.sh→OK: all live-spawn test markers are gated.(fails before, passes after)rustfmt --edition 2024 --checkon the file → clean.