-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Skipping system tests when credentials env. var is unset. #3475
Conversation
bigquery/nox.py
Outdated
@@ -49,7 +50,8 @@ def system_tests(session, python_version): | |||
|
|||
# Sanity check: Only run system tests if the environment variable is set. | |||
if not os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', ''): | |||
return | |||
raise nox.command.CommandFailed( | |||
reason='Credentials must be set via environment variable.') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Thoughts on this (sorry for the delay):
|
I'm totally happy to accept a PR to nox to add `session.skip(reason)`.
|
@dhermes Does that work for you? |
Yes I am OK with that. I don't have bandwidth to add that feature to |
Y'all can file a bug and I'll try to get to it while I'm bored at the hotel this week.
|
Donezors: wntrblm/nox#34 |
6410981
to
ab0bc35
Compare
I just removed the "do not merge" label. @jonparrott I think this is read to go. PTAL? @lukesneeringer ISTM that we'll need our CircleCI image to have the latest version of @duggelz I have intentionally avoided linked to |
Update: currently waiting on @lukesneeringer to rebuild our Docker image, so we can ditch the (It's not a big hurry to merge this.) |
6519b5c
to
2685c36
Compare
OK @lukesneeringer got us |
This is labeled "don't merge" because it is wrong in it's current state.
So @lukesneeringer @tseaver @jonparrott WDYT the "correct" form should be? We don't want it to raise on PRs, we want it to gracefully do nothing. Otherwise, this is a helpful message and status for people running tests locally with a "bad" setup.