Skip to content

Test PR actions independently to avoid the shared Windows timeout - #7139

Merged
ymichael merged 1 commit into
mainfrom
ci/nov5-pr-status-actions
Nov 5, 2026
Merged

ymichael merged 1 commit into
mainfrom
ci/nov5-pr-status-actions

Conversation

@ymichael

@ymichael ymichael commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Windows CI timed out after 5,058ms in the host test that runs ready, draft, and merge. Those are three independent commands, but their sequential child-process launches shared one five-second test deadline. The test was added in #7070 after the repository-template improvements in #7049. It does not test a state transition between actions: the fake GitHub CLI only records each invocation and returns success.

What changed

Make the host-boundary check table-driven, with one case for each action. Every case keeps its own real tracked-fork repository and fake-gh child process, checks successful completion, and asserts the exact checked PR URL and command flags. All three actions and all prior assertions remain covered. Each case uses the existing five-second deadline.

This is a test-only reliability change. It does not change production behavior, retries, timeouts, CI shards, or cache handling. The extra private fixture copies cost about 0.74 seconds in a local alternating comparison (median combined action-test duration: 0.40s before, 1.14s after); this is not a CI speedup claim.

How you verified

  • Full package: pnpm exec turbo run test lint typecheck --filter=bb-plugin-bb--github-pr-status — all 180 tests, lint, and typecheck passed.
  • Controlled process-start delay: temporarily added 1.8 seconds to each fake-gh action child. The original combined test failed at its existing five-second deadline; all three new host cases passed at the same deadline. The delay was removed.
  • Coverage controls: independently changed the host handler to forward a wrong URL for ready, draft, then merge. Each mutation failed the original test and its corresponding new case. Restored the production file byte-for-byte.
  • Fresh CI executions at this head: Windows and Linux each passed all 180 package tests; both were test cache misses. The local delay experiment is a controlled reproduction, not a claim to reproduce Windows scheduling.
  • Formatter, git diff --check, code-review guidance, and test audit completed; independent root-agent review found no issues.

AGENT GENERATED

@ymichael
ymichael merged commit cf8c076 into main Nov 5, 2026
49 checks passed
@ymichael
ymichael deleted the ci/nov5-pr-status-actions branch November 5, 2026 22:35
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.

1 participant