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

Removing google-cloud-core dependency in test_utils package. #3550

Merged
merged 1 commit into from
Jun 29, 2017

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Jun 26, 2017

@lukesneeringer Why is this a dependency in the test_utils package?

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 26, 2017
@tseaver
Copy link
Contributor

tseaver commented Jun 27, 2017

@dhermes enviornment variables:

$ git grep "from google.cloud" test_utils/ 
test_utils/scripts/run_emulator.py:from google.cloud.environment_vars import BIGTABLE_EMULATOR
test_utils/scripts/run_emulator.py:from google.cloud.environment_vars import GCD_DATASET
test_utils/scripts/run_emulator.py:from google.cloud.environment_vars import GCD_HOST
test_utils/scripts/run_emulator.py:from google.cloud.environment_vars import PUBSUB_EMULATOR

@dhermes
Copy link
Contributor Author

dhermes commented Jun 27, 2017

Ha. Lame.

I'm going to leave this un-merged for at least 12 hours. I want to see if @lukesneeringer has anything to chime in with.

@theacodes
Copy link
Contributor

weird that test_utils is its own package. Couldn't we just roll it into google-cloud-core? google.cloud._internal.testing?

@dhermes
Copy link
Contributor Author

dhermes commented Jun 27, 2017

I disagree. It's weird to put testing helpers in code that users have installed on their machines.

@theacodes
Copy link
Contributor

I mostly agree, but lesser of two evils - google-cloud-core is an "infrastructure" package (like gax), so I am not morally opposed to it having helpers for both creating packages and tests for those packages.

@tseaver
Copy link
Contributor

tseaver commented Jun 27, 2017

FWIW, We actually to have google.cloud._testing in core.

@dhermes
Copy link
Contributor Author

dhermes commented Jun 27, 2017

@tseaver Yes I'm aware, and would love to see that module either removed (due to better usage of mock) or put outside of source that is shipped to users.

@lukesneeringer
Copy link
Contributor

weird that test_utils is its own package. Couldn't we just roll it into google-cloud-core? google.cloud._internal.testing?

I did this originally and @dhermes made me change it. I would still prefer that.

@dhermes
Copy link
Contributor Author

dhermes commented Jun 28, 2017

Ya'll got me feeling crazy now 😀

1ro4rx

@dhermes
Copy link
Contributor Author

dhermes commented Jun 28, 2017

So this discussion shouldn't block the "bad dep" we currently have in the source tree.

Shall I file an issue to move the discussion and then merge this issue?

@lukesneeringer
Copy link
Contributor

If removing the dep does not break anything, I have no objection.

@dhermes dhermes force-pushed the update-core-in-utils branch from d367f7e to 27360c9 Compare June 28, 2017 20:03
@dhermes
Copy link
Contributor Author

dhermes commented Jun 28, 2017

SGTM @lukesneeringer, just amended the commit so that it's just a removal. Fingers crossed.

@dhermes dhermes changed the title Updating google-cloud-core dependency in test_utils package. Removing google-cloud-core dependency in test_utils package. Jun 28, 2017
@dhermes
Copy link
Contributor Author

dhermes commented Jun 28, 2017

Aw man, no packages to test:

#!/bin/bash -eo pipefail
python3.6 test_utils/scripts/get_target_packages.py > ~/target_packages
cat ~/target_packages

@dhermes
Copy link
Contributor Author

dhermes commented Jun 29, 2017

I'm just going to merge this and if there is carnage we can roll it back ASAP.

@dhermes dhermes merged commit 3588f51 into googleapis:master Jun 29, 2017
@dhermes dhermes deleted the update-core-in-utils branch June 29, 2017 17:27
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. packaging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants