Skip to content

test/ci: CI and test-suite health sweep (ssw.2-4, 6nh.1, 6nh.3, nm2.4) - #5

Merged
catesandrew merged 8 commits into
mainfrom
sweep/followups
Nov 16, 2026
Merged

catesandrew merged 8 commits into
mainfrom
sweep/followups

Conversation

@catesandrew

Copy link
Copy Markdown
Collaborator

Batch A of the backlog sweep: CI and test-suite health, plus coverage.

  • log-cli-ssw.2: tests/fixtures.test.ts guards the examples/*.log entry-count contract (mixed.log 5 = 3 json + 2 text; mixed-2.log 3 = 2 json + 1 text). The fixtures themselves landed in 8165602.
  • log-cli-ssw.3: Flake baseline. 10 consecutive bun test runs against a freshly built dist/cli.js all passed (108/108 each). The two elapsedMs < 1500 bounds are now < 3000, which still catches a fallback to the 5000ms summary timeout. Commit message has the reasoning for the other timing points.
  • log-cli-ssw.4: Pins bun-version: 1.4.2 (same as packageManager) in ci/release-cli/version workflows. Sets knowledge-base/config.yml test_command to bun run build && bun test && tsc --noEmit. CI already ran build before test, because turbo's test task dependsOn: ["build"].
  • log-cli-6nh.1: tests/pathValue.test.ts covers all parsePath throw paths, the found:false short-circuit, and .[] == [].
  • log-cli-6nh.3: Extracts a pure readTerminalSize helper from useTerminalSize and tests it. Runtime behavior is unchanged.
  • log-cli-nm2.4: tests/cmdSource.test.ts documents that stdout and stderr are both captured, with source tagging and the stderr | prefix.

ssw.4's acceptance asks for 3 consecutive green CI runs on this PR. That check is still open.

Revert plan if main goes red after merge: git revert <merge-commit>, or revert only the workflow commit (ci: pin bun 1.4.2 ...).

Local: typecheck clean, lint 0 errors, 108/108 tests, build OK.

🤖 Generated with Claude Code

catesandrew and others added 8 commits November 14, 2026 13:18
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…g-cli-6nh.1)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…li-6nh.3)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…m2.4)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…est_command (log-cli-ssw.4)

turbo's test task already dependsOn build, so CI was build-before-test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…li-ssw.3)

Flake baseline: 10 consecutive bun test runs against a freshly built
dist/cli.js, 108/108 pass each. The two elapsedMs bounds guard against the
5000ms summary fallback, so 3000ms keeps that signal. The 120ms URL gap and
0.06s command sleep are input timing, not assertions: runSummary only finishes
once every source reports done, so they cannot race the 150ms quiet window.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… (log-cli-ssw.1)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@catesandrew
catesandrew merged commit 4f615d7 into main Nov 16, 2026
1 check passed
@catesandrew
catesandrew deleted the sweep/followups branch November 16, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant