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 — Excluding system tests from being installed. by dhermes · Pull Request #1373 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Jan 8, 2016

Copy link
Copy Markdown
Contributor

@tseaver I noticed this while trying to from system_tests import populate_datastore and the import failed due to reasons that were "resolved" in #1349.

Then I peaked and realized that the error was coming from

/usr/local/lib/python2.7/dist-packages/system_tests/populate_datastore.py
/usr/local/lib/python2.7/dist-packages/gcloud/datastore/client.py

Notice that in our repo:

>>> from setuptools import find_packages
>>> find_packages()
['gcloud',
 'system_tests',
 'gcloud.storage',
 'gcloud.pubsub',
 'gcloud.dns',
 'gcloud.bigtable',
 'gcloud.bigquery',
 'gcloud.resource_manager',
 'gcloud.search',
 'gcloud.datastore',
 'gcloud.streaming',
 'gcloud.storage.demo',
 'gcloud.bigtable.happybase',
 'gcloud.bigtable._generated',
 'gcloud.datastore.demo',
 'gcloud.datastore._generated']

(This is due to the fact that system_tests/__init__.py was added in #954 / #273)

Sorry, something went wrong.

Uh oh!

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

All reactions
@dhermes dhermes added testing packaging labels Jan 8, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 8, 2016
@tseaver

tseaver commented Jan 8, 2016

Copy link
Copy Markdown
Contributor

Note that excluding in MANIFEST.in will exclude them from the sdist, which can make it hard for downstreams to test (if that matters).

On what host were those /usr/local/lib/python2.7/dist-lib/ paths found?

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Jan 8, 2016

Copy link
Copy Markdown
Contributor Author

Ubuntu 14.04

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes
dhermes force-pushed the exclude-sys-tests branch from fcca14a to 65c0ef8 Compare January 9, 2016 01:45
@dhermes

dhermes commented Jan 9, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver PTAL. I did a hacky thing my modifying sys.path in __main__.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Jan 14, 2016

Copy link
Copy Markdown
Contributor

We still don't want to ship /usr/local/lib/python2.7/dist-packages/system_tests/ to people

You mean we don't want those files to be there after they run sudo pip install gcloud? I'm thinking of downstream packagers, who might want to be able to run all the tests after creating a .deb/.rpm from the sdist.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Jan 14, 2016

Copy link
Copy Markdown
Contributor Author

You mean we don't want those files to be there after they run sudo pip install gcloud

Yep. Is there a middle ground?

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes
Excluding system tests from being installed.
4849e7d
@dhermes
dhermes force-pushed the exclude-sys-tests branch from 65c0ef8 to 4849e7d Compare January 15, 2016 07:34
@dhermes

dhermes commented Jan 15, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver Bump

All reactions

Sorry, something went wrong.

Uh oh!

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

1 similar comment
@dhermes

dhermes commented Jan 20, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver Bump

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Jan 28, 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 Jan 29, 2016

Copy link
Copy Markdown
Contributor

I'm still against stripping the system tests from the sdist. Can we move the importable support code into a subpackage of gcloud, and just keep system_tests off the PYTHONPATH?

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Jan 29, 2016

Copy link
Copy Markdown
Contributor Author

Why do we want to ship our system tests?

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Jan 29, 2016

Copy link
Copy Markdown
Contributor

So that downstream packagers (e.g., .deb/.rpm) can run them to verify they have working code?

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Jan 29, 2016

Copy link
Copy Markdown
Contributor Author

Our system tests? These require a ton of set-up, including having to go to the Cloud Console and download a key.

All reactions

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Jan 29, 2016

Copy link
Copy Markdown
Contributor

I've gotten feedback from .deb/.rpm maintainers in the past that they wanted to be able to verify the working state of the code they package by running tests afterward. Maybe they wouldn't run the system tests.

OTOH, as the APIs change over time, asking users to run them to help debug configuration issues vs. software might be reasonable.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Jan 29, 2016

Copy link
Copy Markdown
Contributor Author

It's not like git clone is difficult for the .deb/.rpm maintainers, or for users that are able to offer useful help

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Feb 3, 2016

Copy link
Copy Markdown
Contributor Author

@tseaver WDYT of my comment above?

All reactions

Sorry, something went wrong.

Uh oh!

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

@theacodes

theacodes commented Feb 11, 2016

Copy link
Copy Markdown
Contributor

LGTM, on the basis that gcloud isn't the type of library we would expect to see as an OS-level dependency. Nor do I think it's a good idea to pursue that path, as it would hold our releases and support subject to OS release cycles (which are generally very slow).

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes dhermes mentioned this pull request Feb 12, 2016
Consider moving system_tests into gcloud directory #1451
Closed
@dhermes

dhermes commented Feb 12, 2016

Copy link
Copy Markdown
Contributor Author

Filed #1451 for discussion of the possibility to ship the system tests as gcloud.system_tests. Merging for now.

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes added a commit that referenced this pull request Feb 12, 2016
@dhermes
Merge pull request #1373 from dhermes/exclude-sys-tests
62ba7c5
Excluding system tests from being installed.
@dhermes
dhermes merged commit 62ba7c5 into googleapis:master Feb 12, 2016
@dhermes
dhermes deleted the exclude-sys-tests branch February 12, 2016 20:22
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Feb 13, 2016
@dhermes
Adding system_tests to import path in emulator script.
bdbe005
These imports were broken by googleapis#1373.
This was referenced Feb 13, 2016
Moving all system test scripts in system_tests/. #1463
Merged
Upgrading version to 0.10.0. #1483
Merged
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Feb 19, 2016
@dhermes
Moving all system test scripts in system_tests/.
aa5a498
Also removing system_tests/__init__.py so it is no longer
a package and making all imports happen locally (rather
than from the root of the project).

Changes originally inspired by emulator script breakages in googleapis#1373.
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Feb 19, 2016
@dhermes
Moving all system test scripts in system_tests/.
8c1db22
Also removing system_tests/__init__.py so it is no longer
a package and making all imports happen locally (rather
than from the root of the project).

Changes originally inspired by emulator script breakages in googleapis#1373.
parthea pushed a commit that referenced this pull request Nov 24, 2025
@release-please
chore(main): release 1.2.0 (#1373)
c66c4f2
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 9, 2026
@cojenco
chore(revert): Revert "feat: add support for restore token (#1369)" (#…
cbc2eda
…1373)

This reverts commit 06ed15b33dc884da6dffbef5119e47f0fc4e1285.
parthea pushed a commit that referenced this pull request Mar 9, 2026
@olavloite
build: exclude presubmit.cfg from owlbot generation (#1373)
f7bee55
parthea pushed a commit that referenced this pull request Apr 1, 2026
@jialuoo @gcf-owl-bot
feat: support interface for BigQuery managed functions (#1373)
77c79f7
* feat: support non vectorized managed function

* fix mf tests

* fix dataframe apply

* fix series apply

* fix the decorator in tests

* fix test remote func

* add more tests

* remove unused import

* refactor rf in bff session

* del udf args

* fix docstring

* resolve the comments

* fix the attribute naming

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* resolve all comments

* resolve comments

* resolve comments

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix lint

* type ignore

* resolve comments

---------

Co-authored-by: Owl Bot <gcf-owl-bot[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

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement. packaging 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.

4 participants

@dhermes @tseaver @theacodes @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.