Skip to content

fix(tests): fail-soft live-Core probe when no checkout is present - #11

Merged
Xuepoo merged 1 commit into
mainfrom
cmd/fix-live-skip-ci
Oct 5, 2026
Merged

Xuepoo merged 1 commit into
mainfrom
cmd/fix-live-skip-ci

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Priority: P1 | Area: architecture | Labels: bug,P1,area:architecture | Milestone: v0.1.0 | Task: cmd-fix-live-skip-ci

Unblocks bitty-terminal/bitty-plugins#73: the plugins CI job has no bitty Core alongside. Every parity row in tests/verify-parity.test.ts runs hermetic against the SDK mock (Core cited at bitty@1df0459e, never read from disk), but it had no explicit fail-soft gate.

Skip semantics: add a fail-soft probe resolving Core via BITTY_WORKSPACE/relative fallback (never a hardcoded path) with fresh origin/main read-only plumbing for crates/bitty-terminal/src/editor_host.rs. The probe uses the curried bun API describe.skipIf(!CORE_PRESENT)(...) and prints an explicit console notice when skipping (not silent); ALL 12 mock assertions keep running in both modes. With BITTY_WORKSPACE pointed at a real workspace the probe executes (proves the skip never masks a real run).

Evidence (worktree cmd/fix-live-skip-ci, commit 4627576, base origin/main d7d39df):

  • BITTY_WORKSPACE=/tmp/nonexistent-bitty-workspace bun test tests/verify-parity.test.ts -> 12 pass, 1 skip, notice printed
  • BITTY_WORKSPACE=$BITTY_WORKSPACE bun test tests/verify-parity.test.ts -> 13 pass
  • Full suite without Core -> 52 pass, 1 skip; with Core -> 53 pass
  • just check green both modes (exit 0)

Scope: tests/verify-parity.test.ts only (imports + helpers + 1 probe). No lua/, no manifest.

Do NOT merge (per task; awaiting review + CI).

The plugins CI job (bitty-terminal/bitty-plugins#73) has no bitty Core
alongside. Every parity row runs hermetic against the SDK mock (Core
cited at bitty@1df0459e, never read from disk), but add an explicit
fail-soft probe resolving Core via BITTY_WORKSPACE/relative fallback
(never a hardcoded path): skip with a printed notice when absent,
execute when present. ALL mock assertions keep running.

Evidence: BITTY_WORKSPACE=/tmp/nonexistent-bitty-workspace bun test ->
52 pass, 1 skip; BITTY_WORKSPACE=$BITTY_WORKSPACE bun test -> 53 pass.
just check green both modes.
@Xuepoo Xuepoo added this to the v0.1.0 milestone Oct 5, 2026
@Xuepoo Xuepoo added bug Something isn't working P1 area:architecture labels Oct 5, 2026
@Xuepoo
Xuepoo merged commit 2762e34 into main Oct 5, 2026
7 checks passed
@Xuepoo
Xuepoo deleted the cmd/fix-live-skip-ci branch October 5, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:architecture bug Something isn't working P1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant