Repository navigation
test: strengthen CLI and mobile behavior checks - #33526
Conversation
|
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
ef1d2874-11e2-4e17-9d0a-c2590b79a417
Files selected for processing: 9-
mobile/src/transport/foreground-stale-dial-restart.test.tsmobile/src/transport/mobile-direct-endpoint-probe.test.tsmobile/src/transport/mobile-endpoint-lifecycle-host-edit.test.tsmobile/src/transport/mobile-endpoint-supervisor-direct-probe.test.tsmobile/src/transport/mobile-endpoint-supervisor-nudge.test.tssrc/cli/orchestration-session-caller-cli.test.tssrc/cli/runtime-client.test.tssrc/cli/skills-install.test.tssrc/cli/skills-reference-selector.test.ts
Files with no reviewable changes: 1-
- src/cli/skills-reference-selector.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
-
| lifecycle.stop() | ||
| finishCredentialWrite() | ||
| await new Promise((resolve) => setTimeout(resolve, 0)) | ||
| await vi.advanceTimersByTimeAsync(0) |
There was a problem hiding this comment.
Prune the wall-clock test ratchet baseline.
After this PR replaces real-time waits with fake-timer advancement, the required validation job fails. The test-no-wall-clock count is 0, but its checked-in baseline is 2. Run pnpm check:flaky-test-pattern-ratchet --prune and include the baseline update so the job can pass.
Source: Pipeline failures
Several CLI and mobile tests accepted unrelated handler failures, mocked their own session migration, or relied on unrealistic persistence fixtures. Repair 18 cases and remove three duplicate or inventory declarations across nine test files.
CLI tests now require successful caller dispatch, coordinate timeouts with actual socket receipt, and check skill links with platform-aware path semantics. Mobile tests exercise actual stable-session cutover and withdrawal, verify stale socket closure, and retain keyed storage while checking host edits and probe cleanup. Prune the two obsolete host-edit wall-clock findings from the ratchet baseline. Application code is unchanged.
Validation: independently checked original/candidate runs, retained-case witnesses, real-owner fault controls and sealed source/support evidence for 14 reviewed files (135 original declarations). Current scoped formatting, lint and the changed flaky-test ratchet pass; full fresh PR CI supplies aggregate validation before merge. The installed local pnpm wrapper cannot complete the required aggregate command, and no dependency/native builds were run locally. Linux runtime evidence uses explicit native substitutes; upstream Hermes capability data drift was reviewed separately and is validated against current code by CI.