Repository navigation
fix(plugins): skip nested packages in dev folders and summarize blocked frame requests - #37300
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou'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 14 minutes. View limit details
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. |
Dev folders and their watcher now skip .git, .orca and node_modules at any depth, so a nested build/node_modules no longer trips the 2,000-file limit or re-reviews the plugin; installs still hash everything but the root .git. Requests a plugin frame makes off its own files (session-cancelled or refused by its content policy) are counted per kind and origin and logged every 5 s and on teardown, outside the 20-lines-per-10-s console budget: [frame] blocked font-src https://unpkg.com (x48): plugin frames have no network
…est logging - Electron 43 prints "Loading the font '…' violates …" (and Connecting to / Framing / Fetching content from); read it alongside the older "Refused to …" wording, name the unset directive from the fallback note, and treat fetch's repeat as an echo. An Electron test captures the bundled runtime's real messages. - Keep at most 32 kind-and-origin counts and log at most 8 lines per flush, folding the rest into one overflow count line.
nwparker
force-pushed
the
nwparker/plugin-b8-dev-folder-papercuts
branch
from
November 2, 2026 04:10
24db311 to
8cbca3e
Compare
nwparker
enabled auto-merge (squash)
November 2, 2026 04:19
nwparker
added a commit
that referenced
this pull request
Nov 2, 2026
…argv's tail (#37329) On Linux the probe launcher appends --no-sandbox, so argv[length - 2] is the --user-data-dir flag rather than the config path. The page then wrote result.json under a directory named after that flag, threw, never exited, and the launcher timed it out at 30s on every Linux run since #37300. The sibling Electron probes already pass the result path in config.json; this one now does too.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ELI5
Two annoyances hit while building the Excalidraw plugin. A plugin folder with a nested
build/node_moduleswas refused for having too many files, so authors had to delete it before loading. And when a plugin page tried to fetch something from the internet, which plugin frames don't allow, the logs filled with one line per request, so real errors were dropped.What Changed
Dev folders skip nested packages. Hashing and watching a development plugin folder now skip
node_modules,.orcaand.gitat any depth, not just the top level. A dev folder withbuild/node_modules(2,000+ files) loads. Installed plugins are unchanged: they still hash everything except the root.git.Blocked requests are summarized. Network refusals and content-policy blocks from a plugin frame are counted per kind and origin, and logged every 5 s and when the frame closes, for example:
[frame] blocked font-src https://unpkg.com (x48): plugin frames have no networkThey no longer count toward the 20-lines-per-10-s cap, so real errors still get through.
Why
Both came from the from-scratch editor build and from Excalidraw's own README, which tells authors to delete
build/node_modulesbefore loading. Skipping only dev folders keeps installed-plugin integrity unchanged. Summarizing blocks tells the author exactly what was blocked and why, in one line.Linked Issue
N/A (maintainer).
Visual Proof
N/A: log output and folder loading only; covered by tests.
Testing
build/node_moduleswith more than 2,000 files, plus nested.gitand.orca, while installs still hash nestednode_modules.src/main/pluginsand watcher suites pass.pnpm tc, the ast-grep gates and the freshness checks pass.Risk
Level: Low. Dev folders only for hashing. Content-policy lines are recognized by Chromium's English console text; if that wording changes, they fall back to ordinary rate-limited lines. Plain revert.
Agent skill upstream boundary
Checklist
N/Afor visuals with reason