Skip to content

test(install): time the unattended question beside its real read - #2359

Merged
devswha merged 1 commit into
devswha:mainfrom
YuuuXie:fix/installer-question-clock
Oct 29, 2026
Merged

devswha merged 1 commit into
devswha:mainfrom
YuuuXie:fix/installer-question-clock

Conversation

@YuuuXie

@YuuuXie YuuuXie commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

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

  • Deterministic delayed-observer case failed before the fix: expected at least 19 seconds, received zero.
  • Entire installer test file: 41 passed, including normal and delayed output observation.
  • Mutation check: temporarily shortening the stand-in's actual read to one second still failed the unchanged 19-second minimum; mutation restored before final 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.
  • Independent code and validation-evidence reviews found no significant issues.

This is a test-only fix. No HTTP/WS contracts, workflows, permissions, timeouts, or security controls changed.

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
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: devswha/ovis
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: e604183
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5a176a4f-a04a-48b6-83c7-ee086146cf66
Commits

Reviewing files that changed from the base of the PR and between e604183 and c688a27.

Files selected for processing: 1
  • scripts/install-star.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

📝 Summary

Summary by CodeRabbit

  • Tests
    • Improved coverage for unanswered installer prompts, verifying that they remain open for the expected duration and that the installer completes within a reasonable overall time.
    • Added checks to ensure results remain consistent when output is collected after the installer exits.

The installer test harness now measures the timed question read using monotonic timestamps. The no-answer test checks the read duration with output observed both before and after the child process exits.

Changes: Installer timeout test

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: Low

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: Passed 5
Check name Status Explanation
Title check Passed 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 20 instead of sta…
Description check Passed 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 (monotoni…
Docstring Coverage Passed 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. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
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 20 instead 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 fast result. 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Merging c688a27, thank you @YuuuXie! Test-only: the unattended installer-question test in scripts/install-star.test.ts now times the child's real read -r -t 20 with monotonic timestamps written beside it by the bash stand-in, instead of starting its stopwatch when this process happens to receive the terminal output (which reads zero when the output is consumed late). The 19-27 s window and the 40 s / 45 s bounds are unchanged; a new case reads the output only after the installer exits and still sees the real 20 s. The merge pass read the whole diff (one test file; the stand-in writes two timestamps into the test's scratch folder) before approving the fork's CI runs. Installer and app behaviour are unchanged.

@devswha
devswha merged commit 85b9efd into devswha:main Oct 29, 2026
11 checks passed
@devswha devswha mentioned this pull request Oct 30, 2026
devswha added a commit that referenced this pull request Oct 30, 2026
## 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`.
@YuuuXie
YuuuXie deleted the fix/installer-question-clock branch November 3, 2026 14:55
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.

2 participants