Skip to content

refactor(browser): group Chromium cookie import stages - #31730

Merged
nwparker merged 1 commit into
mainfrom
nwparker/module-organization-chromium-import
Oct 22, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/module-organization-chromium-import

Conversation

@nwparker

@nwparker nwparker commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​52 $\color{#cf222e}{\Huge{\mathbf{−}}}$​49 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3

Group the five Chromium cookie-import stages under browser/cookies/chromium, with callers importing concrete modules. The prepare stage now imports Windows retry file operations from their implementation owner; its concurrency test uses the same existing mock identity for both remaining facade and direct consumers. No production bodies or values change, and no barrels or compatibility shims are added.

Validation: 220 tests across 22 suites, Node typecheck, changed-code quality, formatting, import boundaries and ratchets pass locally. Two installed-browser enumeration tests were excluded locally. All 26 affected suites, including four native Electron suites, are covered by the full CI discovery; native checks run in isolated CI.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 3 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 127f8bac-bef4-4276-88be-dee15d72da4f
📥 Commits

Reviewing files that changed from the base of the PR and between 0d12bda and 4cd2130.

📒 Files selected for processing: 8
  • src/main/browser/browser-cookie-import-concurrency.test.ts
  • src/main/browser/browser-cookie-import-snapshot-ownership.test.ts
  • src/main/browser/browser-cookie-import.ts
  • src/main/browser/cookies/chromium/finalize-import.ts
  • src/main/browser/cookies/chromium/import-context.ts
  • src/main/browser/cookies/chromium/import-cookies.ts
  • src/main/browser/cookies/chromium/prepare-import.ts
  • src/main/browser/cookies/chromium/scan-source-rows.ts

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 77b129c9-8bac-4c3d-ac65-3d54b304934b
📥 Commits

Reviewing files that changed from the base of the PR and between eb9d2f9 and b62782f4369b9a66b0fd50e87dca86ce83a0ce99.

📒 Files selected for processing: 8
  • src/main/browser/browser-cookie-import-concurrency.test.ts
  • src/main/browser/browser-cookie-import-snapshot-ownership.test.ts
  • src/main/browser/browser-cookie-import.ts
  • src/main/browser/cookies/chromium/finalize-import.ts
  • src/main/browser/cookies/chromium/import-context.ts
  • src/main/browser/cookies/chromium/import-cookies.ts
  • src/main/browser/cookies/chromium/prepare-import.ts
  • src/main/browser/cookies/chromium/scan-source-rows.ts

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

📝 Walkthrough

Chromium cookie import modules now use import paths that match their relocated modules and shared browser workspace types. The browser entry point and snapshot ownership test now import the importer from its new path. The concurrency test mocks the shared Windows retry module. Imported entities and runtime logic remain unchanged.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to b6278

The relocation introduces no established build or runtime failure and is ready to merge.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the main code changes and validation results, but it omits most required template sections, including ELI5, Why, Linked Issue, Visual Proof, Review, Notes, and the Checklist. Rewrite the description using the repository template. Add an actual linked issue after "Fixes #", explain why the refactor is preferred, state "N/A" with a reason for Visual Proof, complete the Testing and checklist sections, and address A…
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 8 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly describes the primary change: grouping Chromium cookie-import stages under a dedicated directory.
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: Description check

Resolution

Rewrite the description using the repository template. Add an actual linked issue after "Fixes #", explain why the refactor is preferred, state "N/A" with a reason for Visual Proof, complete the Testing and checklist sections, and address AI Disclosure and compatibility notes as applicable.

✨ Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • 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.

❤️ Share

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

@nwparker
nwparker force-pushed the nwparker/module-organization-chromium-import branch from b62782f to 0d12bda Compare October 22, 2026 00:48
@nwparker
nwparker force-pushed the nwparker/module-organization-chromium-import branch from 0d12bda to 4cd2130 Compare October 22, 2026 01:40
@nwparker
nwparker merged commit 01456c1 into main Oct 22, 2026
33 checks passed
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