feat: run usage scans through host workers with the plugin-sdk host contract - #36
Closed
MayankBansal12 wants to merge 3 commits into
Closed
feat: run usage scans through host workers with the plugin-sdk host contract#36MayankBansal12 wants to merge 3 commits into
MayankBansal12 wants to merge 3 commits into
Conversation
…ontract Migrate to @get-bb/plugin-sdk 0.4.47 (BB >= 0.42), dropping the vendored type stubs. Add a bb.host entry (host.ts, host-contract.ts) that executes usage scans in a non-PTY host worker instead of long-lived terminals: short polling calls, cancellation and timeouts kill the command process group, and scans run with a concurrency limit of three per machine. Also add unit/integration tests for the host worker, a CI matrix over ubuntu/macos, and bump the version to 0.3.7.
…code-go test macOS keeps cat and rm in /bin, so the nodeOnly symlinks dangled and the fake curl saw an empty auth header (exit 9). Resolve cat, mktemp, and rm via command -v at test setup.
Owner
Author
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.
Summary
@get-bb/plugin-sdk0.4.47 and BB >= 0.42, removing the vendoredtypes/bb-plugin-sdk*.d.tsstubs and the@bb/plugin-sdktsconfig path aliases.bb.hostentry (host.ts,host-contract.ts) that runs usage scans in a non-PTY host worker instead of held terminals: short validated polling calls, with cancellation and timeouts terminating the command process group.runWithConcurrencyhelper, and allow scans longer than 30s by retaining running jobs across poll calls.host.test.ts), host worker RPC integration tests (host.integration.test.ts), and a usage refresh compatibility integration test (usage.integration.test.ts).Test plan
npm run check— cleannpm test— 16 files, 133 tests, all passing (including the 30s+ host worker integration test)