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 — fix: adjust bigquery/cloud-client to allow concurrent testing by shollyman · Pull Request #3136 · GoogleCloudPlatform/python-docs-samples

Conversation

@shollyman

@shollyman shollyman commented Mar 24, 2020

Copy link
Copy Markdown
Contributor

Natality test was overly stateful. Change to optimistic dataset creation and elide truncation mode to allow for concurrent overwriting.

Fixes: #2850

Sorry, something went wrong.

Uh oh!

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

All reactions
@shollyman
fix: adjust bigquery/cloud-client to allow concurrent testing.
4e2bf88
@shollyman
shollyman requested a review from leahecole March 24, 2020 23:42
@shollyman
shollyman requested a review from a team as a code owner March 24, 2020 23:42
@blunderbuss-gcf blunderbuss-gcf Bot assigned gguuss Mar 24, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 24, 2020
gguuss
gguuss approved these changes Mar 25, 2020
View reviewed changes

@gguuss gguuss left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM when the tests pass. Optional change suggestion - I've been asked to avoid reusing resources in testing and instead use unique resources per-test (e.g. create a database with UUID in the name).

Sorry, something went wrong.

Uh oh!

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

All reactions
busunkim96
busunkim96 approved these changes Mar 25, 2020
View reviewed changes
@shollyman

shollyman commented Mar 25, 2020

Copy link
Copy Markdown
Contributor Author

LGTM when the tests pass. Optional change suggestion - I've been asked to avoid reusing resources in testing and instead use unique resources per-test (e.g. create a database with UUID in the name).

In this case, I'm generally more okay with datasets being longlived because there's a higher expectation of persistence by users, and the dataset itself has no cost (resources inside are a different story).

All reactions

Sorry, something went wrong.

Uh oh!

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

shollyman and others added 2 commits March 25, 2020 22:45
@shollyman
rev down ipython to allow py27 support
7ac1b6c
@leahecole
Merge branch 'master' into fix-2580-natality
b4ae154
leahecole
leahecole requested changes Mar 26, 2020
View reviewed changes
Comment thread bigquery/cloud-client/requirements.txt Resolved

Uh oh!

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

Comment thread bigquery/cloud-client/requirements.txt Resolved

Uh oh!

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

@leahecole
Merge branch 'master' into fix-2580-natality
c32d78c
This was referenced Mar 27, 2020
chore(deps): update dependency matplotlib to v3.2.1 #3180
Merged
chore(deps): update dependency pandas to v0.25.3 - autoclosed #3185
Closed
shollyman added 6 commits March 30, 2020 17:06
@shollyman
revert requirements.txt change
f9263e4
@shollyman
Merge branch 'master' into fix-2580-natality
444923c
@shollyman
Merge branch 'fix-2580-natality' of github.com:shollyman/python-docs-…
32903a6
…samples into fix-2580-natality
@shollyman
add similar fixes for authorized views
f83b387
@shollyman
linting
62c6d2c
@shollyman
Merge branch 'master' into fix-2580-natality
7334d6a
leahecole
leahecole requested changes Apr 1, 2020
View reviewed changes
Comment thread bigquery/cloud-client/authorized_view_tutorial_test.py
if entry.entity_type != 'view']
client.update_dataset(ds, ['access_entries'])
except Exception:
pass

@leahecole leahecole Apr 1, 2020

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we add a print statement at minimum here or catch a specific exception?

Sorry, something went wrong.

Uh oh!

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

All reactions
@shollyman

shollyman commented Apr 17, 2020

Copy link
Copy Markdown
Contributor Author

Abandoning this one for a different approach.

All reactions

Sorry, something went wrong.

Uh oh!

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

@shollyman shollyman closed this Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@leahecole leahecole leahecole requested changes
+2 more reviewers
@gguuss gguuss gguuss approved these changes
@busunkim96 busunkim96 busunkim96 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@gguuss gguuss

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

bigquery.cloud-client.natality_tutorial_test: test_natality_tutorial failed

Uh oh!

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

5 participants

@shollyman @gguuss @leahecole @busunkim96 @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.