Making sure to limit cluster IDs to 30 chars in system tests.#1802
Making sure to limit cluster IDs to 30 chars in system tests.#1802dhermes merged 2 commits intogoogleapis:masterfrom
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.