Repository navigation
Fix GitHub PR sync for repos without issues - #1282
Merged
Merged
Conversation
amadad
pushed a commit
to amadad/bb
that referenced
this pull request
Aug 14, 2026
## Summary - bump the bundled GitHub plugin to 0.2.1 so the disabled-Issues sync fix is released as a new plugin version - extract repository item fetching into a testable boundary and tolerate case variations in the GitHub CLI error - add regression coverage proving pull requests remain available when both issue-list requests fail because Issues are disabled ## Testing - `pnpm exec turbo run test --filter=bb-plugin-github --force` - `pnpm exec turbo run typecheck --filter=bb-plugin-github --force` - `pnpm exec turbo run build --filter=bb-plugin-github` Closes get-bb#1267
ymichael
added a commit
that referenced
this pull request
Aug 19, 2026
## What was wrong The test suite had three related quality problems: an ACP integration test used file existence as a proxy for completed output and could race with a confirmed child-process stdin teardown error ([CI run 32188276525](https://github.com/get-bb/bb/actions/runs/32188276525)); package coverage reports omitted unimported runtime files, hiding substantial gaps; and high-risk JSON-RPC/GitHub behavior had little boundary coverage while presentation-only header sizing assertions added maintenance cost without protecting product behavior. Recent GitHub sync/auth fixes in #1282, #1758, and #1854 helped identify the missing regression surfaces. The first PR run also exposed a source-wrapper test that deep-compared the unrelated, evolving `bb status` payload; Turbo did not model its hidden `@bb/cli` dependency, so the stale assertion had previously remained cached green. ## What changed - Wait for the completed ACP turn rather than file creation, and suppress only the benign `EPIPE`/`ERR_STREAM_DESTROYED` child-stdin teardown race. - Add lifecycle regression tests for ACP connection shutdown and write completion. - Add opt-in reproducible V8 coverage for packages using the shared Vitest configuration. Explicit source globs include files never imported by tests; normal test and CI runs remain unchanged unless `--coverage` is passed, and no threshold is imposed. - Expand provider JSON-RPC coverage from one test to ten across parsing, malformed messages, schema validation, timeouts, notifications, structured errors, and exactly-once settlement. - Add GitHub plugin RPC tests for sync, cache patching, PR/check/review normalization, pagination, and file patches, plus app tests for routes, query matching, and suggestions. - Ensure all GitHub plugin test files are included in typechecking and remove three presentation-only header sizing tests. - Keep the source CLI wrapper test focused on clean, parseable JSON and declare its `@bb/cli#build` Turbo dependency so CLI changes cannot reuse a stale test result. There are no server/daemon wire changes, CLI changes, or user-facing configuration changes, so no protocol-version or guide update is required. ## How you verified - [Replacement PR CI run 32311230863](https://github.com/get-bb/bb/actions/runs/32311230863) passed every required check, including packages, server, integration, all app shards, and Linux/macOS package smoke. - `pnpm exec turbo run test --filter=@bb/scripts --force` — 17 files and 92 tests passed; the command explicitly executes `@bb/cli#build` first. - `pnpm exec turbo run test --filter=@bb/integration-tests --force` — 55 tests passed. - `pnpm exec turbo run test typecheck --filter=@bb/provider-bridge-protocol --filter=bb-plugin-github --force` after rebasing — 86 provider tests and 21 GitHub tests passed; both relevant typechecks passed. - Repeated the new provider transport tests 25 times (250 executions) and the complete GitHub plugin suite 10 times (210 executions) without a failure. - Provider bridge line coverage increased from 60.00% to 66.96%; `runtime-json-rpc.ts` reaches 90.32%. - GitHub plugin line coverage increased from 23.07% to 41.19%; `server.ts` increased from 40.22% to 69.31%. - Full app and server audit runs passed 3,092 app tests and 1,775 server tests. Fixes: N/A — test-coverage audit without a single tracking issue. > AGENT GENERATED: by GPT-5
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
Testing
pnpm exec turbo run test --filter=bb-plugin-github --forcepnpm exec turbo run typecheck --filter=bb-plugin-github --forcepnpm exec turbo run build --filter=bb-plugin-githubCloses #1267