Uh oh!
There was an error while loading. Please reload this page.
Making sure to limit cluster IDs to 30 chars in system tests. - #1802
Conversation
tseaver
commented
May 17, 2016
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 |
dhermes
commented
May 17, 2016
I don't think it's worth the effort. It's essentially impossible to end up with the same timestamp (it's YAGNI). |
tseaver
commented
May 17, 2016
The version with |
dhermes
commented
May 17, 2016
So we can track down the guilty build if we see un-cleaned up resources in the cloud console. |
tseaver
commented
May 17, 2016
Won't that usecase be broken if we truncate off bytes from the build ID? |
dhermes
commented
May 17, 2016
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? |
tseaver
commented
May 17, 2016
SGTM |
dhermes
commented
May 17, 2016
@tseaver PTAL |
tseaver
commented
May 17, 2016
LGTM |
* docs: update README to include x509 feature. * Fix hyperlink
…the location (#1802) * chore: prevent location warning when _read_gbq_colab can determine the location I've made some updates to prevent a location warning when the system can determine the location for `bigframes.pandas.io.api._read_gbq_colab`. I've updated `bigframes.pandas.io.api._read_gbq_colab` so it correctly calls `bigframes.session.Session._read_gbq_colab` and adjusted its arguments. The `_read_gbq_colab` function in the pandas API layer now has a simpler signature, accepting `query_or_table`, `pyformat_args`, and `dry_run`. It will continue to call `_set_default_session_location_if_possible` to prevent location warnings. I've also updated the unit tests to reflect these changes, making sure that the correct session-level function is called and that arguments are passed through as expected. I've also moved the tests to `tests/unit/pandas/io/test_api.py` and converted them to pytest style to follow our repository conventions. * Update tests/unit/pandas/io/test_api.py * remove unused import * format the query first --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
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.