GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Making sure to limit cluster IDs to 30 chars in system tests. by dhermes · Pull Request #1802 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented May 17, 2016

Copy link
Copy Markdown
Contributor

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 -a to test out creating a different cluster and 32 chars is not allowed for cluster names.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dhermes
Making sure to limit cluster IDs to 30 chars in system tests.
248f0cc
@dhermes dhermes assigned tseaver May 17, 2016
@dhermes dhermes added testing api: bigtable Issues related to the Bigtable API. labels May 17, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 17, 2016
@tseaver

tseaver commented May 17, 2016

Copy link
Copy Markdown
Contributor

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 time.time() seconds, and differ only in the last byte of the TRAVIS_BUILD_ID. Perhaps we should have unique_resource_id take a prefix argument and an optional max_length, and work out which bits to trim?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented May 17, 2016

Copy link
Copy Markdown
Contributor Author

I don't think it's worth the effort. It's essentially impossible to end up with the same timestamp (it's YAGNI).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented May 17, 2016

Copy link
Copy Markdown
Contributor

The version with TRAVIS_BUILD_ID in it truncates time.time() to an integer: if it is always unique, why do we need the TRAVIS_BUILD_ID at all?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented May 17, 2016

Copy link
Copy Markdown
Contributor Author

why do we need the TRAVIS_BUILD_ID at all?

So we can track down the guilty build if we see un-cleaned up resources in the cloud console.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented May 17, 2016

Copy link
Copy Markdown
Contributor

Won't that usecase be broken if we truncate off bytes from the build ID?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes

dhermes commented May 17, 2016

Copy link
Copy Markdown
Contributor Author

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')
24

so hopefully nothing will get truncated.

WDYT of just doing the swap?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented May 17, 2016

Copy link
Copy Markdown
Contributor

WDYT of just doing the swap?

SGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
Putting build ID first in sys. test unique IDs.
f13d420
@dhermes

dhermes commented May 17, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented May 17, 2016

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
dhermes merged commit 763a90c into googleapis:master May 17, 2016
@dhermes
dhermes deleted the limit-cluster-id-names-in-sys-tests branch May 17, 2016 21:06
@dhermes dhermes mentioned this pull request Jun 7, 2016
Cut 0.15.0 release. #1842
Merged
parthea added a commit that referenced this pull request Nov 24, 2025
@parthea
fix: Fix coverage gap in tests (#1802)
3cb96a3
parthea pushed a commit that referenced this pull request Nov 26, 2025
@nbayati
docs: update user guide to include x509 feature. (#1802)
e7befed
* docs: update README to include x509 feature.

* Fix hyperlink
parthea pushed a commit that referenced this pull request Apr 1, 2026
@tswast @google-labs-jules
chore: prevent location warning when _read_gbq_colab can determine …
90bf318
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tseaver tseaver

Labels

api: bigtable Issues related to the Bigtable API. cla: yes This human has signed the Contributor License Agreement. testing

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@dhermes @tseaver @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.