Repository navigation
refactor(test): keep TLS parser coverage in its shared owner - #176780
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes a redundant desktop TLS parser test already covered by the shared Rust Gateway client. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a sound, maintainer-authored cleanup: the removed assertions remain in the shared owner, desktop-specific coverage is preserved, and no actionable defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Linux desktop passes its optional certificate fingerprint to the shared Gateway client's TLS parser, which selects system roots, produces an exact certificate pin, or rejects invalid input. flowchart LR
A[Desktop Gateway configuration] --> B[Shared TLS parser]
B --> C[System roots or certificate pin]
C --> D[Gateway TLS connection]
E[Shared parser tests] --> B
F[Desktop error state tests] --> A
Technical reviewBest possible solution: Keep parser assertions in the shared crate while retaining desktop-specific failure-state and reconnect coverage. Do we have a high-confidence way to reproduce the issue? There is no reported runtime bug; source comparison verifies that both tests invoke the same imported parser with identical assertions. Is this the best way to solve the issue? The deletion is the smallest complete cleanup: it removes duplicate coverage without changing the parser, desktop integration, or distinct security tests. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 84dffb7ec632. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -13. Total -13 across 1 file. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 18, 2026, 10:04 PM ET / October 19, 2026, 02:04 UTC. |
|
Merged via squash.
|
What Problem This Solves
The desktop suite repeats a TLS parser test already owned by the shared Rust Gateway client.
User Impact
No user-visible change. Remove one redundant test without changing TLS validation or desktop behavior.
Why This Change Was Made
The shared-client extraction in #116050 left a desktop test calling the imported
tls_trustfunction directly. All three assertions remain verbatim in the shared crate's keeper, alongside certificate matching checks.Keep the desktop-specific TLS error-state and reconnect-policy tests, the real TLS integration tests, and all production code unchanged. This removes 13 test lines and no production lines.
Evidence
git diff --checkand the scopedcheck:changedlane pass. Its formatter does not handle Rust; Rust formatting is covered by the unchanged-input workspace proof below.9d013baeb67c283c51bdcc3928b4330c7ccf5d97. Both its completecratestree (a33691516bf1b071407f81249f3bfef766770a2e) and conformance workflow (a6940dc659b2b55b391699af6d6c2c31e42a93ab) are identical to this candidate's inputs.06c8ef735b6cd035c33d94f2ebab147db892846a. Linux, macOS, and Windows validation passed; Windows installer packaging completed successfully at 02:32:31 UTC on October 19. No local Rust execution is claimed.3307a08100748c3894fc1e4586e0f4d06422fa2e. Remote MERGED state, main ancestry, the removed desktop replay, and the retained shared parser keeper were verified.