-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Refactored setup of google api clients #2018
Conversation
Oh, are you back at Spotify now? :) There's also luigi tests for gcs which I recall are disabled on Travis. Have you run them too? |
Hi Arash! :-) |
Reuses more code between gcs and bigquery implementations. Adds out-of-the-box support for google cli authentication auto-discovery with the current version of the cli tools, which was previously not working (http and oauth could not both be provided as was the default behavior)
I ran the tests gcs and bigquery tests with success (pre-patch they would not run using the current version of google-api-python-client (1.6.2)). Any idea what is causing the travis fail for this PR? It just looks like jibberish to me :-) |
Yea the hadoop failures are jibberish. But the flake8 issue you certainly should be able to address. Here's you log, https://travis-ci.org/spotify/luigi/jobs/198885463. There's some docs in |
Ah, should have seen that, thanks! :) |
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.
LGTM. Maybe someone using gcp wants to review too?
I wonder if many other use the gcp integration actively, considering the code prior to this patch doesn't work with the current google-api-python-client version... (so if they use it they probably use an old version and wouldn't upgrade luigi either ;) ) |
@freider, I'm pretty sure there's others using it. Even Spotify is contributing to it still and I've seen various parties commenting to PRs, that said, nobody have commented for a while so I'll just merge this. :) |
Reuses more code between gcs and bigquery implementations. Adds out-of-the-box support for google cli authentication auto-discovery with the current version of the cli tools, which was previously not working (http and oauth could not both be provided as was the default behavior)
Description
get_application_default
)Motivation and Context
Works with the current version of the cli tools and api client (google-api-python-client==1.6.1), which was previously not working (http and oauth could not both be provided as was the default/required behavior by the previous code).
##Tests
I ran tasks both for gcs (cloud storage) uploads and big query integration and both work after this patch. I don't see how it would break anything for people who use manual configuration of the authentication process, but it would of course be nice if someone who has a GCS/BigQuery pipeline running tested this out as well :)