You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(docs): stop leaning on README, CHANGELOG and guide prose; drop two unused modules - #4548
Test cleanup, bundle B3 of the test-suite plan: tests that leaned on prose and docs, and two modules nothing uses.
R1scripts/install-ovis-command.test.ts: drop "does not promise that another ovis is never hidden". It only checked that CHANGELOG lacks a phrase and that the guide has a sentence; no code reads either. The guide's Uninstall command stays covered by running it (the test just above).
R2src/lib/markdownHtml.test.ts: the parser test read the real README, so a README edit (logo path, width, links) could break a parser test. It now parses a README-shaped HTML header written in the test (centered logo with a width, <h1>, badges, a language row with a .md file link, a website link). Every parser assertion stays.
R3src/lib/textPreview.test.ts: the "ordinary document of the load limit's size stays well under the Preview limit" check read the head of the real CHANGELOG, which changes every release. It now builds a changelog of the same size (release headings, wrapped list items with code and links). The first check (short list items past the limit) is unchanged.
R5 remove src/lib/koreanParticle.ts (and its test) and src/lib/account/deviceKey.ts: nothing imports them (registerSigningBytes lives in shared/account-records.ts, which src/lib/account/service.ts uses). src/lib/account/deviceKey.test.ts stays: it tests the account service path, not that file. The stale koreanParticle.test.ts entry leaves scripts/ci-test-timings.json.
No production behaviour or UI changes.
Evidence: the rewritten tests still fail when the parser breaks
Each mutation applied to the production file, the test file run, then the file restored byte for byte (git status clean afterwards).
Mutation
Result
M1 shared/markdownHtml.ts:129 drops the image width
reads a README's HTML header as centered markdown, never as tag text fails (1 fail, 5 pass)
M2 shared/markdownHtml.ts:86 reads .md links as plain text
the README header test and links only to safe addresses and files fail (2 fail)
M3 src/lib/textPreview.ts counts one element per character of text
puts a file of the load limit's short list items past what a Preview draws fails on the generated changelog (1 fail)
Validation
bun test src/lib/markdownHtml.test.ts src/lib/textPreview.test.ts src/lib/account/deviceKey.test.ts scripts/install-ovis-command.test.ts scripts/ci-test-timings.test.ts: 73 pass, 0 fail.
…sed modules
- install-ovis-command: drop the prose pin on CHANGELOG/guide wording
- markdownHtml: parse a README-shaped HTML header written in the test, not the real README
- textPreview: measure a same-size generated changelog, not the real CHANGELOG head
- remove src/lib/koreanParticle.ts (and its test) and src/lib/account/deviceKey.ts: nothing imports them
Auto incremental reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Tests
Updated content-parsing checks to use self-contained sample data rather than repository documents.
Removed checks for Korean particle selection and command-installation guidance.
Chores
No end-user-facing changes are described.
The PR removes two helper exports and related test content, removes an install-command documentation assertion, and changes parser tests to use inline or generated input instead of repository files.
devswha/ovis#3685: Changes the same changelog-based assertion in scripts/install-ovis-command.test.ts; the PR descriptions indicate that merge order determines whether the assertion remains.
Merge Risk: Minimal · previous review 60048
This cleanup changes tests and removes unused helpers without intended production behavior changes. No concrete merge-blocking risk was found. The pull request title should be updated to the required type(scope): summary format so the title check passes.
Pre-merge checks: 4
Check name
Status
Explanation
Description check
The description follows the repository template's Change and Validation sections. The Change section describes the problem (tests reading README, CHANGELOG, and guide prose) and the resulting behavior…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title names test cleanup and removal of two unused modules. The changeset does that: it swaps README, CHANGELOG and guide dependencies for test fixtures and deletes koreanParticle and deviceKey. T…
Full details: Description check
Explanation
The description follows the repository template's Change and Validation sections. The Change section describes the problem (tests reading README, CHANGELOG, and guide prose) and the resulting behavior for each file, and it explains the module removals. The Validation section lists the commands run with results, mutation evidence, and the skipped lanes with reasons. The template asks for a linked issue for features only; this is a test cleanup, so no issue link is required. The template's changelog note (changelog.d/ entry) is not addressed. That is a minor gap, since the PR does not mention whether a changelog.d entry is needed for a test-only change.
Full details: Title check
Explanation
The title names test cleanup and removal of two unused modules. The changeset does that: it swaps README, CHANGELOG and guide dependencies for test fixtures and deletes koreanParticle and deviceKey. The title is specific and matches the main change, so it passes.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Fix failing CI checks
Commit to this branch
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.
Reviewing files that changed from the base of the PR and between 1d71a71 and 60048fa.
Files selected for processing: 7
scripts/ci-test-timings.json
scripts/install-ovis-command.test.ts
src/lib/account/deviceKey.ts
src/lib/koreanParticle.test.ts
src/lib/koreanParticle.ts
src/lib/markdownHtml.test.ts
src/lib/textPreview.test.ts
Files with no reviewable changes: 5
scripts/ci-test-timings.json
scripts/install-ovis-command.test.ts
src/lib/account/deviceKey.ts
src/lib/koreanParticle.test.ts
src/lib/koreanParticle.ts
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.
devswha
changed the title
test: stop leaning on README, CHANGELOG and guide prose; drop two unused modules
test(docs): stop leaning on README, CHANGELOG and guide prose; drop two unused modules
Nov 23, 2026
Merged through pr-merge at head 478f8827f. Seen before the merge was asked for: required checks green, no unresolved thread, no conflict, no hold, main not red, no release in progress. CodeRabbit said it did not review (a limit or a skip) since this head.
Test-only cleanup plus two unused modules removed. Reviews that ran: CodeRabbit reviewed the first head (no comments); a gate review by omo-native-gate-reviewer (APPROVE, re-ran the three parser mutations). The newest head adds only a merge of origin/main, which CodeRabbit skipped. The one Integration failure (server/relay/service.contract.test.ts handshake timing, not touched here) passed on rerun.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Test cleanup, bundle B3 of the test-suite plan: tests that leaned on prose and docs, and two modules nothing uses.
scripts/install-ovis-command.test.ts: drop "does not promise that another ovis is never hidden". It only checked that CHANGELOG lacks a phrase and that the guide has a sentence; no code reads either. The guide's Uninstall command stays covered by running it (the test just above).src/lib/markdownHtml.test.ts: the parser test read the real README, so a README edit (logo path, width, links) could break a parser test. It now parses a README-shaped HTML header written in the test (centered logo with a width,<h1>, badges, a language row with a.mdfile link, a website link). Every parser assertion stays.src/lib/textPreview.test.ts: the "ordinary document of the load limit's size stays well under the Preview limit" check read the head of the real CHANGELOG, which changes every release. It now builds a changelog of the same size (release headings, wrapped list items with code and links). The first check (short list items past the limit) is unchanged.src/lib/koreanParticle.ts(and its test) andsrc/lib/account/deviceKey.ts: nothing imports them (registerSigningByteslives inshared/account-records.ts, whichsrc/lib/account/service.tsuses).src/lib/account/deviceKey.test.tsstays: it tests the account service path, not that file. The stalekoreanParticle.test.tsentry leavesscripts/ci-test-timings.json.No production behaviour or UI changes.
Evidence: the rewritten tests still fail when the parser breaks
Each mutation applied to the production file, the test file run, then the file restored byte for byte (
git statusclean afterwards).shared/markdownHtml.ts:129drops the imagewidthreads a README's HTML header as centered markdown, never as tag textfails (1 fail, 5 pass)shared/markdownHtml.ts:86reads.mdlinks as plain textlinks only to safe addresses and filesfail (2 fail)src/lib/textPreview.tscounts one element per character of textputs a file of the load limit's short list items past what a Preview drawsfails on the generated changelog (1 fail)Validation
bun test src/lib/markdownHtml.test.ts src/lib/textPreview.test.ts src/lib/account/deviceKey.test.ts scripts/install-ovis-command.test.ts scripts/ci-test-timings.test.ts: 73 pass, 0 fail.bun run check fast(P620, 256 s): workflow syntax, generated types/themes, typecheck, build ok; unit 24,884 pass, 160 skip, 1 fail:scripts/conventions.test.ts"waits marked fixed" onscripts/relay-new-pc-press-regression.ts:180. That failure is onorigin/mainitself (1d71a71, test(isolation): keep tests off real ports and other sessions' processes, ratchet marked fixed waits #4537's new ratchet met fix(relay): the press's fallback to the join stays on the sheet it was made on #4540's marked wait) and is fixed by test(relay): the new-PC press check polls for a join instead of a fixed wait #4547; this PR does not touch that file. Once test(relay): the new-PC press check polls for a join instead of a fixed wait #4547 lands this branch takes main in.