Repository navigation
test: isolate flaky service and tab checks - #42582
opencode-agent[bot] wants to merge 1 commit into
Conversation
e98a2f5 to
729eafc
Compare
Scope: de-flakes two suites: extracts service registration into
|
|
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Summary
Root causes
The TUI test raced the client's 10 ms event batch and then depended on best-effort
fs.watchpropagation between two storage providers. The service test measured full CLI startup against a fixed registration polling deadline, which intermittently expired on loaded Windows runners before the process reached the registration callback.Verification
bun test test/context/session-tabs.test.tsx -t "only the foreground TUI mutates unread state" --rerun-each 50 --timeout 30000bun test test/context/session-tabs.test.tsx --timeout 30000bun test --timeout 30000 test/service.test.ts -t "service registration replaces a stale owner with the bound address" --rerun-each 50bun test --timeout 30000 test/service.test.ts -t "configured managed service port overrides the channel default"bun test --timeout 45000 test/service.test.ts -t "port contender recognizes an incumbent registered during the bind race"bun typecheckinpackages/tuibun typecheckinpackages/cliRequested by: @kitlangton (Kit Langton via Slack)