You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/e2e: make unique module names more robust
The names used to be a timestamp to the nearest second:
> create-github-repo
created github repo: https://github.com/cue-labs-modules-testing/2023-11-10.13-32-37
This caused issues in CI already, since we already have two github tests
which both create a repository with such a name under the same org,
and it's likely that they will both start around the same time:
> create-github-repo private=true
FAIL: [...]: 422 Repository creation failed [...] name already exists on this account
Make clashes between different tests impossible by adding their name
as a prefix, via the TestScript.Name method we recently added.
Since clashes between different "go test" runs of the same test
around the same time are still possible, we also add a random suffix.
Now, the names are longer, but far less likely to conflict:
> create-github-repo
created github repo: https://github.com/cue-labs-modules-testing/e2e-github_app_public-2023.11.10-13.33.05-b369bc
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: Ib4c06a26df908376426677bc7606f99a54f012ee
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1172000
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
0 commit comments