Closed sobolk closed 1 month ago
Latest commit: cee93438cc80aba4d48ca1fb344173711e393e4e
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Problem
We have at least two tests that are using Amplify Auth to get Cognito credentials. There's a lock guarding access to Amplify Auth apis. However, these tests are using separate factory instances due to different configuration and effectively two separate locks. This is wrong, because Amplify Auth apis need global locking (they're static, i.e. attached to global session).
This sometimes results in errors like this:
https://github.com/aws-amplify/amplify-backend/actions/runs/10964134931/job/30447221560
Changes
Make lock global to match Amplify Auth api scope.
Validation
PR checks with e2e.
Checklist
run-e2e
label set.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.