-
Notifications
You must be signed in to change notification settings - Fork 111
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
Run google-cloud-python system tests against new runtime images. #39
Changes from all commits
9aeedd3
3b2abef
e3a7cf8
87db4d3
c0933d0
5439e04
29c73aa
6960bb4
2e6f704
d24cb12
d108c5a
6ad7fb2
5632d0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
data/ | ||
secrets.tar |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM google/python | ||
|
||
# Inject secrets | ||
ADD data/ data/ | ||
ENV GOOGLE_APPLICATION_CREDENTIALS /app/data/cloud-python-runtime-qa-credentials.json | ||
ENV GCLOUD_PROJECT cloud-python-runtime-qa | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will you file an issue to figure out how to not hardcode these? (I'm thinking just passing them to docker run, but we can address it later). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Filed as #42 |
||
|
||
# Get the source. | ||
RUN git clone https://github.com/GoogleCloudPlatform/google-cloud-python.git | ||
WORKDIR google-cloud-python | ||
|
||
# Install tox for running the system tests | ||
RUN pip install --upgrade tox | ||
|
||
# List of system tests to run. Ideally would be all of them. But | ||
# some of them get permission or other errors that are probably | ||
# related to incomplete test setup. | ||
ENV MODULES="datastore storage speech bigquery pubsub language translate monitoring bigtable" | ||
|
||
# Run Python 2.7, 3.4 system tests | ||
RUN GOOGLE_CLOUD_TESTS_API_KEY=$(cat /app/data/cloud-python-runtime-qa-api-key.txt) \ | ||
tox -e system-tests,system-tests3 -- ${MODULES} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Use no-cache to prevent layer caching because there is a layer that does | ||
# a `git clone` which can not be cached. | ||
CACHE ?= --no-cache | ||
|
||
.PHONY: all | ||
all: | ||
docker build $(CACHE) . |
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.
Does this assume you've just built an image called "google/python" locally?
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.
Yes.
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.
It might be nice to make this an invalid image name then. If you forgot to build your image or built it with a different name this would give you false positives, since google/python does exist on Dockerhub, but isn't updated at all IIRC.
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.
Let's file a bug and fix that separately.
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.
Filed as #38