Repository navigation
refactor(browser): share output-write settlement test setup - #166292
Conversation
|
Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 12:20 AM ET / 04:20 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR shares browser-download test setup for observing output-write completion while preserving existing assertions and cleanup. Merge readiness✅ Ready for maintainer review Keep open: this useful test consolidation remains absent from current main, and the introduced diff preserves settlement ordering and caller-owned cleanup. No actionable correctness or security findings remain. Priority: P3 Review scores
Verification
How this fits togetherThe browser plugin saves downloads through an output owner that stages and publishes files. Its cancellation tests observe that writer’s completion before checking that partial files have been removed. flowchart TD
A[Download test scenario] --> B[Shared settlement observer]
B --> C[Existing output writer]
C --> D[Write succeeds or rejects]
D --> E[Settlement signal]
E --> F[Caller assertions and cleanup]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -33. Total -33 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one plugin-local settlement observer while leaving scenario-specific waits, assertions, and cleanup with each test. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing test setup rather than reporting a product defect. Is this the best way to solve the issue? Yes: the local helper preserves the original promise and module identity without moving lifecycle responsibilities away from callers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5be0e7764b3a. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…#166292) * refactor(browser): share output-write settlement test setup * chore: incorporate qualified main for browser test validation Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Browser download tests repeat five identical setups for observing when an output write settles.
User Impact
No user-visible behavior changes. All 41 existing cases and their cleanup assertions are preserved, including real Chromium cancellation and live current-document downloads.
Why This Change Was Made
Share the synchronous settlement observer in browser test support. Each setup still captures its caller's current writer, creates a fresh settlement promise, and returns the original write promise. The caller continues to own its waits, hooks, and cleanup.
This is maintainer-approved standalone test maintenance under the existing cleanup campaign. Five test/support files remove 33 net test lines (+28/-61); production code is unchanged.
Evidence
10334ec913d7b18f32e6e1d16e9ac10bdc760534: 41 baseline and 41 candidate cases passed, with identical ordered full names, titles, ancestors and statuses.c39d9b0692dbaafa5b1bfe02514c9f6411ab5546, candidate treebe701f4b6359b5bb6622fef62c32c76da676a7ae: 41/41 passed (12 Chromium, 8 capture, 16 unit, 5 live), with the same complete ordered cases as both historical reports. No skipped, pending, todo or failed cases; no historical baseline replay.git diff --check. All seven commands passed and the carrier was restored cleanly.d4de53457454a7f7775ab9f8b02ab1cc6ced1840ca35ff0e9635b1e8d13e0480. Historical bundle:d3b6d63b99f1f4e76539191880bc5ebe187d618da3697b51a743bccce0ee714e.The dependency repair in #166217 is merged and incorporated in the current proof inputs. Exact-head hosted CI, review and ordinary native landing gates remain required; frozen-source proof is not labeled as runtime on newer main.