Skip to content

Fix GitHub PR sync for repos without issues - #1282

Merged
ymichael merged 1 commit into
mainfrom
bb/address-issue-1267-thr_s647pkztah
Aug 10, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/address-issue-1267-thr_s647pkztah

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

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 #1267

@ymichael
ymichael merged commit f973054 into main Aug 10, 2026
10 checks passed
@ymichael
ymichael deleted the bb/address-issue-1267-thr_s647pkztah branch August 10, 2026 20:14
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
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.

Github plugin fails to load PRs when issues are disabled for repo

1 participant