Skip to content
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

docs: add Samples section to CONTRIBUTING.rst #380

Conversation

gcf-owl-bot[bot]
Copy link
Contributor

@gcf-owl-bot gcf-owl-bot bot commented Jul 20, 2021

Source-Link: googleapis/synthtool@52e4e46
Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:6186535cbdbf6b9fe61f00294929221d060634dae4a0795c1cefdbc995b2d605

Source-Link: googleapis/synthtool@52e4e46
Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:6186535cbdbf6b9fe61f00294929221d060634dae4a0795c1cefdbc995b2d605
@gcf-owl-bot gcf-owl-bot bot requested review from a team as code owners July 20, 2021 09:13
@trusted-contributions-gcf trusted-contributions-gcf bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jul 20, 2021
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/python-bigtable API. label Jul 20, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 20, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 20, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 20, 2021
@parthea parthea added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 20, 2021
@tseaver
Copy link
Contributor

tseaver commented Jul 20, 2021

Sample failure reported in #383, addressed in PR #384.

CONTRIBUTING.rst Outdated
The tests will run against a real Google Cloud Project, so you should
configure them just like the System Tests.

- To run sample tests, you can execute::
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems explicit, but this is a single sort of sample. There are many in bigtable. When I read this it sort of reads like the only samples are samples/snippets.

Copy link
Contributor

Choose a reason for hiding this comment

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

cc: @busunkim96 @parthea is this unique to bigtable (having so many other directories in samples)

Copy link
Contributor

Choose a reason for hiding this comment

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

  • python-spanner has one directory of samples, oddly enough nested under samples/samples. Logically they could be broken up, rooted at just samples/, but that would break docs.
  • python-bigquery has an odd mix: lots of samples in just samples/, but the test drivers are in samples/tests/, and the snippets are samples/snippets/, along with their test drivers.
  • python-pubsub only has runnable samples in samples/snippets/, including their test drivers.
  • python-storage has no samples.

The generated libraries have, interestingly, almost as wide a range.

Copy link
Contributor

Choose a reason for hiding this comment

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

In BigQuery, the goal is to have samples that just require the google-cloud-bigquery library in samples/snippets, but with other directories like samples/geography and sample/pandas for samples that have extra dependencies.

Just filed googleapis/python-bigquery#790 to actually document this goal.

@crwilcox crwilcox added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 20, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 20, 2021
@parthea parthea removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 21, 2021
@parthea parthea added the automerge Merge the pull request once unit tests and other checks pass. label Jul 22, 2021
@parthea parthea added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels Jul 22, 2021
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jul 22, 2021
@tseaver tseaver changed the title feat: add Samples section to CONTRIBUTING.rst docs: add Samples section to CONTRIBUTING.rst Jul 22, 2021
@tseaver tseaver removed the automerge Merge the pull request once unit tests and other checks pass. label Jul 22, 2021
@tseaver
Copy link
Contributor

tseaver commented Jul 22, 2021

@parthea Please don't automerge -- we need to ensure that the squash merge commit uses docs: prefix.

@parthea parthea added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 23, 2021
@trusted-contributions-gcf trusted-contributions-gcf bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jul 23, 2021
@parthea parthea closed this Jul 23, 2021
@parthea
Copy link
Contributor

parthea commented Jul 23, 2021

Superseded by #396

@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 23, 2021
@tseaver tseaver deleted the owl-bot-update-lock-6186535cbdbf6b9fe61f00294929221d060634dae4a0795c1cefdbc995b2d605 branch September 22, 2021 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing. kokoro:force-run Add this label to force Kokoro to re-run the tests. owl-bot-update-lock
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants