Repository navigation
test(install): time the unattended question beside its real read - #2359
Conversation
Record the child read's monotonic elapsed time independently of delayed parent output delivery. Preserve timing bounds and cover observation after child exit. Co-authored-by: Copilot <[email protected]> Copilot-Session: 88b3fe6d-1ac4-4bcc-a615-85748478224c
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Measure and verify the timed read scripts/install-star.test.ts |
The Bash stand-in records timestamps around the timed read. atTerminal can wait for child exit and returns the measured read duration. The no-answer test checks the duration in both output-observation modes. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Suggested reviewers: devswha
Merge Risk: 
Minimal · up to c688a
-
The change affects installer test timing, not installer behavior. No merge-blocking issue was identified.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title "test(install): time the unattended question beside its real read" matches the main change: the installer test now measures the child-side duration of the real
read -r -t 20instead of starting the timer when the parent receives output. It is specific and conventional, and it does not describe unrelated work.
Full details: Description check
-
Explanation
The description follows the repository template. It has a Change section that explains the problem (the parent-side stopwatch reports zero elapsed time when output is observed late), the fix (monotonic timestamps around the unchanged read), and the new delayed-observer regression. It has a Validation section listing the failing-before-fix run, the 41-test file result, the mutation check, and the
bun run check fastresult. The template's HTTP/WS contract-test prompt does not apply, and the author states that no HTTP/WS contracts changed. The template's CONTRIBUTING.md and changelog.d/ reminder is not addressed. Changelog entries are not mentioned, so the author should confirm whether a changelog.d/ entry is needed.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
|
Merging c688a27, thank you @YuuuXie! Test-only: the unattended installer-question test in scripts/install-star.test.ts now times the child's real |
## Release 0.4.21 The release PR, prepared by step 1 of [docs/development.md#releasing](https://github.com/devswha/ovis/blob/main/docs/development.md#releasing), now re-folded on main `1ef6ea329108a0985b823e8235b03daddcd0a5f4` after the owner held 0.4.21 for more work. The merge pass reported the 0.4.21 queue empty. **Do not merge yet:** the owner judges the final build before release. No tag and no Release run from this PR's author. - **Version:** `version` is 0.4.21 in `package.json` and `herdr-plugin.toml`. - **Changelog:** `bun scripts/changelog-fold.ts 0.4.21 2026-10-30` folded 63 fragments into the 2026-10-30 section of `CHANGELOG.md` (71 entries), linked their PRs and deleted the fragments; `changelog.d` holds only `README.md`. - `by @login` on every outside contributor's PR link: #2361 @eddieparc, #2333 @IdrisGit, #2355 @imurfutur3, #2341 @sulthonzh, #2359 @YuuuXie, #2377 @IdrisGit, #2269 @CharleoYang, #2405 @jpcarranza94, #2414 @homebodify, #2417 @cheol-95, #2418 @eddieparc, #2435 @cheol-95. - Two outside PRs had no fragment and got an entry by hand: #2341 (OpenCode background commands, Added) and #2359 (installer test timing, Maintenance). - Issue reporters are credited in their entries: @blaker3115-Agri (#1488), @Hyd3-14 (#2026), @osamahbeig (#2343), @Shunamxiao (#2329), @matiemer (#2362), @kilhyeonjun (#2344), @eddieparc (#2360), @Ploppy3 (#2236), @sulthonzh (#2340), @WOULDU-pres (#2056), @odfalik (#2038), @aNNdii (#511), @Noobear (#2281, fixed by #2424); #2435 fixes @cheol-95's own #2434. - Two fragments ran past the changelog's width (#2418, #2269); their entries are re-wrapped, words unchanged. #2382's entry reads "OpenCode's installer puts its folder first" (reviewed earlier on this PR). - Maintainer PRs without a fragment and without a user-facing change have no entry: #2353 (check tool), #2371 (guide docs), #2396 and #2397 (tests), #2403 and #2433 (server and client transport seams, no behaviour change), #2437 (test-only fix for #2435's check). #2438's own entry (the sidebar selection marked by its fill again) is dropped: the stroke #2352 added never shipped, so users see no change; #2352's entry keeps only the Windows high-contrast Highlight bar. - **Release summaries:** en, ko, ja and zh each have 5 new, 5 improved and 5 fixed lines. Since the first review: New lists the in-browser Claude Code / Codex sign-in (#2428) in place of the tab/workspace shortcut line; Improved lists Settings → Agents (#2427) in place of the sidebar fold line; Fixed lists the Codex wrong-session fix (#2426, #2430) in place of the phone screenshot paste line. The Artifacts and Claude status-line lines keep their reviewed wording (turned on in Settings). Not in 0.4.21: #2420 (Codex chat behind Kiro), #2065 (Portal sign-in) and #2436 (relay foundations) stay open for a later release. - **Remote bundle:** `REMOTE_BUNDLE_VERSION` rises from 39 to 40 because the bundle inputs (`server/`, `shared/`, `patches/`) changed since remote-v39. After merge: push `remote-v40` on the merged commit and wait for the Remote PC bundles workflow before running Release. - **iOS:** `CURRENT_PROJECT_VERSION` stays 3 (#2370 changed `Info.plist`; build 3 is not known to be uploaded yet). ## Validation - `bun scripts/release-guards.ts --base v0.4.20`: "Release 0.4.21: remote bundle, telemetry Worker and release metadata are in order." - `dori heavy … bun run check fast` on this branch: workflow syntax, generated types and themes, typecheck, build, unit tests all ok. Unit: 9166 pass, 0 fail, 36 skip in 591 files. - Every PR in `v0.4.20..main` was pre-run for the owner's hands-on guide on isolated copies (own herdr session, fresh state, never the owner's live session). Items that need a real device (iPhone tap dictation #2370, dictation keyboards #2386, the installed desktop app's title-bar overlay #2381) are left for the owner's final check. This is a release-metadata PR: it changes no code path. Per the release steps, merge it after CI and the owner's go, then push `remote-v40`, wait for its bundles, and run Release with `0.4.21`.
Change
Measure the unattended installer question's actual child-side read duration rather than starting its stopwatch when the parent eventually receives terminal output.
The existing Bash stand-in records monotonic timestamps around the unchanged real
read -r -t 20. The test keeps its 19-second minimum, 27-second maximum, 40-second overall bound, and 45-second backstop. The installer and application behavior are unchanged.Add a regression that deliberately reads terminal output only after the installer exits. The previous parent-side measurement reports zero elapsed time in that case, despite the real 20-second read.
Validation
bun run check fast: workflow syntax, generated types/themes, typecheck, build, and all 553 unit-test files passed (8,645 passed, 0 failed, 35 skipped). Source-state report verified unchanged source.This is a test-only fix. No HTTP/WS contracts, workflows, permissions, timeouts, or security controls changed.