Skip to content

test(cli): stop the chDB streak test leaking exit code 78 - #3271

Merged
Makisuo merged 1 commit into
mainfrom
fix/cli-test-exit-code-leak
Dec 4, 2026
Merged

Makisuo merged 1 commit into
mainfrom
fix/cli-test-exit-code-leak

test(cli): restore the exit code to 0, not undefined, after the chDB …

08f1732
Select commit
Loading
Failed to load commit list.
Maple Review Bot / Maple / review succeeded Dec 4, 2026 in 45s

Confidence 10/10 · No issues found

🟢 Confidence 10/10 · safe to merge. One-line test fix that matches the existing ?? 0 pattern in expected-outcomes.test.ts:38; nothing in production code changes.
no findings · tests not needed · risk low

The streak test now restores process.exitCode to 0 instead of assigning undefined, so the 78 a chDB refusal sets can no longer leak into the CLI test job. Correct and safe to merge.

What was checked
  • expected-outcomes.test.ts:38 already restores with previousExitCode ?? 0, so this follows the file's own convention
  • in-memory-store.test.ts saves and restores exitCode in exactly one place (:151, :156)
  • A non-zero saved code is preserved; only the undefined case is coerced to the default 0

08f1732 · Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.