-
Notifications
You must be signed in to change notification settings - Fork 58
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
docs: add Samples section to CONTRIBUTING.rst #380
Conversation
Source-Link: googleapis/synthtool@52e4e46 Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:6186535cbdbf6b9fe61f00294929221d060634dae4a0795c1cefdbc995b2d605
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:: |
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.
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.
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.
cc: @busunkim96 @parthea is this unique to bigtable (having so many other directories in samples)
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.
python-spanner
has one directory of samples, oddly enough nested undersamples/samples
. Logically they could be broken up, rooted at justsamples/
, but that would break docs.python-bigquery
has an odd mix: lots of samples in justsamples/
, but the test drivers are insamples/tests/
, and the snippets aresamples/snippets/
, along with their test drivers.python-pubsub
only has runnable samples insamples/snippets/
, including their test drivers.python-storage
has no samples.
The generated libraries have, interestingly, almost as wide a range.
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.
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.
@parthea Please don't automerge -- we need to ensure that the squash merge commit uses |
…294929221d060634dae4a0795c1cefdbc995b2d605
Superseded by #396 |
Source-Link: googleapis/synthtool@52e4e46
Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:6186535cbdbf6b9fe61f00294929221d060634dae4a0795c1cefdbc995b2d605