Skip to content

Run the browser pool lifecycle acceptance test with workload identity federation - #123

Merged
rgarcia merged 1 commit into
mainfrom
hypeship/pool-lifecycle-workload-identity
Nov 29, 2026
Merged

rgarcia merged 1 commit into
mainfrom
hypeship/pool-lifecycle-workload-identity

Conversation

@rgarcia

@rgarcia rgarcia commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

What changed

TestAccBrowserPoolLifecycle moves from the stored API key to workload identity federation. It joins the project-level job, which exchanges the job's GitHub OIDC token for a five-minute access token limited to the acceptance project. The test creates a pool, updates it, and acquires and releases one browser.

  • .github/workflows/acceptance.yml
    • new project-level cell "Browser pool lifecycle", running only TestAccBrowserPoolLifecycle;
    • the durable-resource browser pool cell is renamed "Browser pool project scope" and runs only TestAccBrowserPoolProjectScoped, which needs two projects and so stays on the key;
    • both jobs take an optional run pattern per cell and default to TestAcc as before.

No test or provider code changes.

Why now

A service account could not acquire a browser from a pool until recently, which is what kept this test on the key. The API now allows it.

Timing

The token cannot be renewed mid-test and lasts five minutes. The lifecycle test took 68 seconds in the last run on main, and the job runs it with -timeout=4m.

Before it passes

The federation rule for this workflow needs the pool permissions. Done: it now grants browser_pools:create, read, use, write, delete and browsers:use on the acceptance project, in addition to what it had.

Verification

  • The workflow parses and the nine cells resolve to the expected packages and patterns.
  • Not run. The rule accepts main only, so the first real run is the push that merges this.

@rgarcia
rgarcia merged commit 08b08ca into main Nov 29, 2026
2 checks passed
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