Skip to content

[CTX-1924] fix(test): record why the multi-pane kitty spawn is already gated - #3292

Merged
Xuepoo merged 1 commit into
mainfrom
ctx-1924/fix-pty-gate-spawn
Nov 21, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
ctx-1924/fix-pty-gate-spawn

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

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 check fails on main at pty-gate.

Cause

crates/bitty-runtime/tests/kitty_images_present.rs:1708 spawns 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 --check on the file → clean.

@Xuepoo Xuepoo added this to the v0.1.0 milestone Nov 21, 2026
@Xuepoo Xuepoo added fix Bug fix P1 Priority: high area:runtime Area: runtime orchestration labels Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d51f00bf-2525-4a30-a19a-6d51a36d809b
Commits

Reviewing files that changed from the base of the PR and between 16be2ee and 9bf88a0.

Files selected for processing: 1

  • crates/bitty-runtime/tests/kitty_images_present.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@Xuepoo Xuepoo left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment-only pty-gate exemption recording why the multi-pane kitty spawn is already Unix-gated; all six guard checks pass.

  1. PASS — Diff scope: 16be2ee..9bf88a0 touches only crates/bitty-runtime/tests/kitty_images_present.rs (3 insertions, 0 deletions).
  2. 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 bound assert_eq!(rt.kitty_image_count(), bitty_rich::KITTY_PLACE_MAX_IMAGES, …) (:1716-1720) are untouched, so the test can still fail.
  3. 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.
  4. PASS — Lint: just -l lists pty-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.
  5. PASS — Commit hygiene: git log -1 --format=%s carries the [CTX-1924] prefix; the added comments are English; no hardcoded paths, hosts, or environment values in the added lines.
  6. PASS — CI buckets: gh pr checks 3292 shows 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

@Xuepoo
Xuepoo merged commit d47a160 into main Nov 21, 2026
21 checks passed
@Xuepoo
Xuepoo deleted the ctx-1924/fix-pty-gate-spawn branch November 21, 2026 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:runtime Area: runtime orchestration fix Bug fix P1 Priority: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pty-gate fails on main: multi-pane kitty test spawns inside a cfg(unix) block

1 participant