Repository navigation
Run the browser pool lifecycle acceptance test with workload identity federation - #123
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
TestAccBrowserPoolLifecyclemoves from the stored API key to workload identity federation. It joins theproject-leveljob, 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.ymlproject-levelcell "Browser pool lifecycle", running onlyTestAccBrowserPoolLifecycle;durable-resourcebrowser pool cell is renamed "Browser pool project scope" and runs onlyTestAccBrowserPoolProjectScoped, which needs two projects and so stays on the key;runpattern per cell and default toTestAccas 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,deleteandbrowsers:useon the acceptance project, in addition to what it had.Verification
mainonly, so the first real run is the push that merges this.