Skip to content

test(behaviour): fork branch create fails with 409 empty repository #697

Description

@guyoron1

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

  1. Run the behaviour suite with parallel godog concurrency (CI default).
  2. Include fork-dispatch scenarios (features/dispatch/fork-dispatch.feature).
  3. 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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pr-openAn open PR already addresses this issueready-to-codeTriaged and ready for the code agenttype/bugConfirmed defect in existing behavior

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions