Skip to content

test(audit): 9 fewer tests in ios, leasing, dispatcher and http, since 19a11eb - #1086

Merged
V3RON merged 2 commits into
mainfrom
chore/audit-tests-2026-10-28-b
Oct 30, 2026
Merged

V3RON merged 2 commits into
mainfrom
chore/audit-tests-2026-10-28-b

Conversation

@V3RON

@V3RON V3RON commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Range: 19a11eb..6316e10, second half of the audit split out of #1039 to stay under the 1,500-line cap. Tests only; source untouched.

Files: src/drivers/ios/index, src/leasing/create-leasing, src/gateway/dispatcher, src/http/app.

Test counts (before -> after): ios 195->193, create-leasing 184->183, http/app 180->172, dispatcher 91->93. Net -9.

Applied verdicts: DELETE/MERGE/TABLE collapse duplicate or data-only tests; FIX adds an assertion proven by a temporary source break, or narrows a title. The supportsPersistentSlim unit test is kept, so its export (and the source) stay as on main.

Review

Spec review: skipped. Code review: 1 blocking, 1 fixed, 0 notes. Claims review: 1 blocking, 1 fixed, 0 notes.
Rounds: 1. Tokens: 4.7M.
Runs: 5. Cost USD: 2.1054. Agent seconds: 951.

Assessment: complete.

Written by an agent.

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@V3RON

V3RON commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

Review findings, round 1 (commit 63277e3)

Assessment: complete. Lenses: code/tests (Opus), claims (Sonnet); spec skipped (no issue). Removed-test coverage checked: no unique coverage lost.

  • R1 src/http/app.test.ts:3261 merged title says "200 with a new ETag otherwise", but the stale If-None-Match case asserts the same ETag (:3289). Reword the title.
  • R2 src/gateway/dispatcher.test.ts:1622 merged title cites "(ADR 0010 §7, §8)" for every row, including device.add/device.remove, which ADR 0010 does not cover. Reword or split the cite.

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review October 30, 2026 16:56
V3RON added a commit that referenced this pull request Oct 30, 2026
… since 19a11eb (#1039)

Range: `19a11eb..6316e10`, first half of the audit; the ios, leasing,
dispatcher and http files moved to #1086 to stay under the 1,500-line
cap. Tests only; source untouched.

**Files:** src/cli/index, src/daemon/main, src/daemon/server,
src/agent-device/edge, src/updater/index, src/spec-lint,
ui/src/state/queries, src/drivers/android/input/device-input. Left for
the next run: the other 153 changed test files.

**Test counts (before -> after):** cli 384->380, daemon/main 151->149,
daemon/server 137->133, edge 229->225, updater 31->32; queries,
spec-lint, device-input unchanged. Net -13.

**Applied verdicts:** DELETE/MERGE/TABLE collapse duplicate or data-only
tests; FIX adds an assertion proven by a temporary source break, or
narrows a title.

**Bug found:** two cli tests keep `not.toBe(0)`: `daemon start` reports
an invalid config.json as `INTERNAL` (exit 1), not exit 2. Filed as
#1084.

## Review

Spec review: skipped. Code review: 0 blocking, 0 fixed, 1 note. Claims
review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 6.7M.
Runs: 3. Cost USD: 2.7772. Agent seconds: 1153.

Assessment: complete.

Notes:

- code: src/daemon/server.test.ts:400 title says "renews" but checks
only `ok: true`; the admin renew test and the lifecycle tests prove
renewal.

## Review

Spec review: skipped. Code review: 0 blocking, 0 fixed, 1 note. Claims
review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 6.7M.
Runs: 3. Cost USD: 2.7772. Agent seconds: 1153.

Assessment: complete.

Notes:

- code: src/daemon/server.test.ts:400 title says "renews" but checks
only `ok: true`; the admin renew test and the lifecycle tests prove
renewal.

*Written by an agent.*

---------

Co-authored-by: Claude <noreply@anthropic.com>
@V3RON
V3RON merged commit cd1c463 into main Oct 30, 2026
52 of 53 checks passed
@V3RON
V3RON deleted the chore/audit-tests-2026-10-28-b branch October 30, 2026 16:58
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.

1 participant