Skip to content

test(behaviour): inference provision hits IAM policy conflict 409 under parallel ensure #698

Description

@guyoron1

Upstream: fullsend-ai/issues/5672

What happens

When the behaviour suite leases numbered pool repos (test-repo-NN) and RepoEnsurer runs fullsend inference provision for several repos at once, ensure sometimes fails with:

provisioning WIF for inference: granting Agent Platform access for repo <org>/test-repo-NN: IAM policy conflict (status 409)

The leased scenario then fails in the after-scenario / background ensure path before the Gherkin steps under test run.

Seen repeatedly on PR fullsend-ai#5407 behaviour jobs (e.g. https://github.com/fullsend-ai/fullsend/actions/runs/30350962576 on test-repo-08, https://github.com/fullsend-ai/fullsend/actions/runs/30354560530 on test-repo-10). Re-running the failed job often passes once contention clears.

What should happen

Parallel ensure / inference provision for distinct pool repos should not leave scenarios failing permanently on a transient IAM policy conflict. Either provision succeeds after contention, or ensure surfaces a clear, recoverable path so the suite is not flaky.

How to reproduce

  1. Run behaviour CI (make behaviour-test / E2E behaviour job) with default GODOG_CONCURRENCY.
  2. Force several repos through create + inference provision in the same window (fresh test-repo-NN missing post-install files).
  3. Intermittently observe IAM policy conflict (status 409) during Agent Platform access grant.

Context

Follow-up from fullsend-ai#5407. Orthogonal to URL-sourced harness FetchPolicy / host-repo work; infra flake in pool ensure. Always-re-vendor on already-installed repos (also from fullsend-ai#5407) may increase concurrent GCP IAM traffic and make this more visible, but the conflict appears during new repo provision as well.

No dedicated open issue found for this WIF/IAM 409 in behaviour ensure.

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