forked from cue-lang/cue
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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í <mvdan@mvdan.cc> Change-Id: Ib4c06a26df908376426677bc7606f99a54f012ee Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1172000 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
- Loading branch information
Showing
5 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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