Repository navigation
Refresh plugin marketplaces every 2 hours - #1822
Conversation
|
🚨 SLOP COP 🚨 · I am the Slop Cop. I started a review of PR #1822 under the |
Co-Authored-By: Claude <[email protected]>
…ed (#1817) Co-Authored-By: Claude <[email protected]>
|
CI note: the packages test job failed on the merge commit because |
fdfe8a6 to
33188ac
Compare
| import { marketplacePublisherLabel } from "./marketplace-publishers.js"; | ||
|
|
||
| const MARKETPLACE_REFRESH_INTERVAL_MS = 6 * 60 * 60 * 1_000; | ||
| const MARKETPLACE_REFRESH_INTERVAL_MS = 2 * 60 * 60 * 1_000; |
There was a problem hiding this comment.
🚨 slopcop/review — The two-hour timer applies to every marketplace, not only BB Community.
The periodic path calls the unfiltered refresh method. Each Git source then receives a complete clone.
This change raises each Git marketplace from four to twelve clones each day. The code has no clone-size limit.
Please limit this timer to BB Community, or make Git refreshes incremental and bounded before this interval changes.
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
Plain-English summary
This PR makes BB check plugin marketplace catalogs every two hours instead of every six hours. It also updates the guide, agent skill, and generated template.
Findings
- Medium: The shorter timer affects every registered marketplace. Git marketplaces perform a complete clone during each refresh. This changes each Git source from four clones to twelve clones each day. The code has no clone-size limit. I left an inline comment on the interval.
- Low: An unchanged HTTPS catalog still replaces all cached icon rows. The eight-megabyte limit bounds this cost, but the new interval triples these database writes.
Security and architecture
I found no security issue. The network checks, size limits, and last-known-good transaction remain in place.
I found one interval constant and one periodic loop. The server correctly owns this policy. The user guide, agent skill, and generated template agree.
Validation
- The schedule check recorded exactly 7,200,000 milliseconds.
- The focused Turbo run passed 56 marketplace tests in three files.
- The browser test refreshed BB Community, updated the time, and showed the success message.
- The full server run passed 1,721 tests. Four unrelated tests failed outside this change.
- The PR head moved during this review. I verified that the marketplace files did not change.
I found one medium performance issue that should be fixed before merge.
Summary
Tests
🤖 Generated with Claude Code