-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Making sure to limit cluster IDs to 30 chars in system tests. #1802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making sure to limit cluster IDs to 30 chars in system tests. #1802
Conversation
|
Seems like we might be truncating the bits of the ID which would provide the most uniqueness (e.g., two Travis builds running simultaneously have the same |
|
I don't think it's worth the effort. It's essentially impossible to end up with the same timestamp (it's YAGNI). |
|
The version with |
So we can track down the guilty build if we see un-cleaned up resources in the cloud console. |
|
Won't that usecase be broken if we truncate off bytes from the build ID? |
|
Ha! Touche. Easiest fix: I'll swap the order of BUILD ID and time. Anyhow, as it is there, the ID will be >>> len('gcloud-128927443-1462819431')
27
>>> len('new-128927443-1462819431')
24so hopefully nothing will get truncated. WDYT of just doing the swap? |
SGTM |
|
@tseaver PTAL |
|
LGTM |
* docs: update README to include x509 feature. * Fix hyperlink
See, for example: https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/128927443
The ID string was made so that
gcloud-py-{TIME}-{BUILD_ID}(e.g.gcloud-py-1462819431-128927443) was 30 chars. However, one of the test cases appended-ato test out creating a different cluster and 32 chars is not allowed for cluster names.