Upstream: fullsend-ai/issues/5671
What happens
Parallel behaviour scenarios that use Given a fork sometimes fail while creating the fork head branch with:
creating fork branch: get ref for default branch: github api: 409 Git Repository is empty.
Observed on PR fullsend-ai#5407 behaviour runs (e.g. https://github.com/fullsend-ai/fullsend/actions/runs/30354560530), scenario Fork PR sync + label dispatches harness. Sibling fork scenarios in the same suite can still pass.
CreateFork / CreateForkInOrg has returned, but the fork’s default-branch ref is not readable yet.
What should happen
After a fork is created (or reused), behaviour steps that need the default branch (e.g. create branch, commit) should only proceed once the fork has a usable default-branch ref. Transient empty-repo races should not fail the scenario.
How to reproduce
- Run the behaviour suite with parallel godog concurrency (CI default).
- Include fork-dispatch scenarios (
features/dispatch/fork-dispatch.feature).
- Intermittently: fork create succeeds, then immediate
CreateBranch / get default-branch ref returns 409 Git Repository is empty.
Context
Follow-up from behaviour flakes on fullsend-ai#5407. Distinct from URL-dispatch product failures; this is fork readiness under parallel load. No dedicated open issue found for this error string in behaviour tests.
Related: fork lifecycle docs in docs/guides/dev/behaviour-testing.md (ephemeral per-lease forks).
Upstream: fullsend-ai/issues/5671
What happens
Parallel behaviour scenarios that use
Given a forksometimes fail while creating the fork head branch with:Observed on PR fullsend-ai#5407 behaviour runs (e.g. https://github.com/fullsend-ai/fullsend/actions/runs/30354560530), scenario
Fork PR sync + label dispatches harness. Sibling fork scenarios in the same suite can still pass.CreateFork/CreateForkInOrghas returned, but the fork’s default-branch ref is not readable yet.What should happen
After a fork is created (or reused), behaviour steps that need the default branch (e.g. create branch, commit) should only proceed once the fork has a usable default-branch ref. Transient empty-repo races should not fail the scenario.
How to reproduce
features/dispatch/fork-dispatch.feature).CreateBranch/ get default-branch ref returns409 Git Repository is empty.Context
Follow-up from behaviour flakes on fullsend-ai#5407. Distinct from URL-dispatch product failures; this is fork readiness under parallel load. No dedicated open issue found for this error string in behaviour tests.
Related: fork lifecycle docs in
docs/guides/dev/behaviour-testing.md(ephemeral per-lease forks).