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 — Add session for gRPC samples. by tswast · Pull Request #385 · GoogleCloudPlatform/python-docs-samples

Conversation

@tswast

@tswast tswast commented Jun 27, 2016

Copy link
Copy Markdown
Contributor

These samples are being excluded from the plain tests target, since
they require the gRPC libraries (which are not compatible with Python
3, yet). This means they are not running on Jenkins or Travis.

By adding another session, we will be able to run the tests for these
samples on Jenkins.

Sorry, something went wrong.

Uh oh!

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

All reactions
@tswast
Add session for gRPC samples.
7da1a04
These samples are being excluded from the plain `tests` target, since
they require the gRPC libraries (which are not compatible with Python
3, yet). This means they are not running on Jenkins or Travis.

By adding another session, we will be able to run the tests for these
samples on Jenkins.
@tswast tswast assigned theacodes and waprin Jun 27, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 27, 2016
@theacodes
theacodes merged commit 3fd9905 into master Jun 27, 2016
@theacodes
theacodes deleted the tswast-grpc branch June 27, 2016 21:45
@tswast

tswast commented Jun 27, 2016

Copy link
Copy Markdown
Contributor Author

@waprin @jonparrott I noticed that neither speech nor bigtable tests were appearing anywhere in Jenkins. This PR plus a config change on Jenkins to add the grpc session should remedy this issue. I was able to run locally.

# swast @ tims-cloud in ~/src/python-docs-samples on git:tswast-grpc o [14:44:38] C:1
$ source testing/resources/test-env.sh && export GOOGLE_APPLICATION_CREDENTIALS=testing/resources/service-account.json && export GOOGLE_CLIENT_SECRETS=testing/resources/client-secrets.json && nox -s grpc
nox > Running session grpc
nox > virtualenv /usr/local/google/home/swast/src/python-docs-samples/.nox/grpc -p python2.7
nox > pip install --upgrade git+https://github.com/GoogleCloudPlatform/python-repo-tools.git
nox > pip install --upgrade -r requirements-python2.7-dev.txt
nox > pip install --upgrade -r speech/api/requirements-speech_grpc.txt
nox > pip install --upgrade -r speech/api/requirements-speech_rest.txt
nox > pip install --upgrade -r bigtable/hello/requirements.txt
nox > pip install --upgrade -r bigtable/hello_happybase/requirements.txt
nox > py.test speech/api -x --no-success-flaky-report --cov --cov-config .coveragerc --cov-append --cov-report=
=============================================== test session starts ===============================================
platform linux2 -- Python 2.7.6, pytest-2.9.1, py-1.4.31, pluggy-0.3.1
rootdir: /usr/local/google/home/swast/src/python-docs-samples, inifile:
plugins: cov-2.2.1, flaky-3.1.1
collected 4 items

speech/api/speech_gcs_test.py ..
speech/api/speech_rest_test.py .
speech/api/speech_streaming_test.py .
===Flaky Test Report===


===End Flaky Test Report===

============================================ 4 passed in 4.64 seconds =============================================
nox > py.test bigtable/hello -x --no-success-flaky-report --cov --cov-config .coveragerc --cov-append --cov-report=
=============================================== test session starts ===============================================
platform linux2 -- Python 2.7.6, pytest-2.9.1, py-1.4.31, pluggy-0.3.1
rootdir: /usr/local/google/home/swast/src/python-docs-samples, inifile:
plugins: cov-2.2.1, flaky-3.1.1
collected 1 items

bigtable/hello/main_test.py .
===Flaky Test Report===


===End Flaky Test Report===

============================================ 1 passed in 3.17 seconds =============================================
nox > py.test bigtable/hello_happybase -x --no-success-flaky-report --cov --cov-config .coveragerc --cov-append --cov-report=
=============================================== test session starts ===============================================
platform linux2 -- Python 2.7.6, pytest-2.9.1, py-1.4.31, pluggy-0.3.1
rootdir: /usr/local/google/home/swast/src/python-docs-samples, inifile:
plugins: cov-2.2.1, flaky-3.1.1
collected 1 items

bigtable/hello_happybase/main_test.py .
===Flaky Test Report===


===End Flaky Test Report===

============================================ 1 passed in 3.06 seconds =============================================
nox > Session grpc successful. :)
All reactions

Sorry, something went wrong.

Uh oh!

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

@jerjou

jerjou commented Jun 27, 2016

Copy link
Copy Markdown
Contributor

Huh - in theory, the speech tests should only be skipped if the python version was > 3... was that not working?

All reactions

Sorry, something went wrong.

Uh oh!

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

@tswast

tswast commented Jun 27, 2016

Copy link
Copy Markdown
Contributor Author

The speech directory was in the "blacklist" so nox was never considering them to be sample directories. (Ditto for bigtable.)

All reactions

Sorry, something went wrong.

Uh oh!

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

@telpirion telpirion mentioned this pull request Nov 16, 2022
chore(translation): migrate code from googleapis/python-translate #8523
Merged
8 tasks
telpirion pushed a commit that referenced this pull request Nov 16, 2022
@renovate-bot
chore(deps): update dependency pytest to v7.1.2 (#385)
bd96c41
msampathkumar pushed a commit that referenced this pull request Nov 16, 2022
@gcf-owl-bot
chore: detect samples tests in nested directories (#385)
4ee1eb4
Source-Link: googleapis/synthtool@50db768
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978
@msampathkumar msampathkumar mentioned this pull request Nov 16, 2022
migrate code from googleapis/python-error-reporting #8524
Merged
8 tasks
dandhlee pushed a commit that referenced this pull request Nov 17, 2022
@gcf-owl-bot @dandhlee
chore: detect samples tests in nested directories (#385)
771902d
Source-Link: googleapis/synthtool@50db768
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978
@arbrown arbrown mentioned this pull request Nov 17, 2022
migrate code from googleapis/python-automl #8528
Merged
8 tasks
arbrown pushed a commit that referenced this pull request Nov 17, 2022
@renovate-bot
chore(deps): update dependency backoff to v2.0.1 (#385)
00e91fe
dandhlee pushed a commit that referenced this pull request Nov 17, 2022
@renovate-bot @dandhlee
chore(deps): update dependency backoff to v2.0.1 (#385)
e3ca51d
dandhlee pushed a commit that referenced this pull request Nov 18, 2022
@renovate-bot @dandhlee
chore(deps): update dependency pytest to v7.1.2 (#385)
618e3c1
engelke pushed a commit that referenced this pull request Nov 28, 2022
@renovate-bot
chore(deps): update dependency google-cloud-pubsub to v2.11.0 (#385)
0a458bb
dandhlee pushed a commit that referenced this pull request Nov 29, 2022
@renovate-bot @dandhlee
chore(deps): update dependency google-cloud-pubsub to v2.11.0 (#385)
7630860
@Sita04 Sita04 mentioned this pull request Feb 7, 2023
migrate code from googleapis/python-dlp #9091
Merged
8 tasks
Sita04 pushed a commit that referenced this pull request Feb 7, 2023
@renovate-bot
chore(deps): update dependency google-cloud-bigquery to v3.1.0 (#385)
a70a63a
dizcology pushed a commit that referenced this pull request Sep 11, 2023
@gcf-owl-bot
chore(python): drop flake8-import-order in samples noxfile (#385)
91b891d
Source-Link: googleapis/synthtool@6ed3a83
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3abfa0f1886adaf0b83f07cb117b24a639ea1cb9cffe56d43280b977033563eb

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@dizcology dizcology mentioned this pull request Sep 11, 2023
migrate code from googleapis/python-videointelligence #10605
Merged
9 tasks
leahecole pushed a commit that referenced this pull request Sep 15, 2023
@gcf-owl-bot @leahecole
chore(python): drop flake8-import-order in samples noxfile (#385)
d487a29
Source-Link: googleapis/synthtool@6ed3a83
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3abfa0f1886adaf0b83f07cb117b24a639ea1cb9cffe56d43280b977033563eb

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@parthea parthea mentioned this pull request Sep 8, 2026
migrate code from googleapis/python-bigquery #14589
Closed
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

@theacodes theacodes

@waprin waprin

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.

Uh oh!

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

5 participants

@tswast @jerjou @theacodes @waprin @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.