-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add Docker image for Python Testing #24235
Conversation
Hi @khalludi. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
/ok-to-test
annotations: | ||
testgrid-dashboards: sig-testing-images, sig-k8s-infra-gcb | ||
testgrid-tab-name: "pytest" | ||
testgrid-alert-email: [email protected], [email protected] |
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 not alert until we know it works
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.
Please delete this line
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.
Will do.
- --scratch-bucket=gs://k8s-staging-test-infra-gcb | ||
- --project=k8s-staging-test-infra | ||
- --build-dir=. | ||
- images/pytest |
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.
add a new line at the end of the file, please also do this to the other files
COPY requirements3.txt /app/requirements3.txt | ||
|
||
RUN /bin/bash -c "apt-get update && apt-get install -y make wget" | ||
RUN /bin/bash -c "pip3 install -r requirements3.txt" |
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.
When a PR updates requirements3.txt
, do we expect make pytests
also run pip3 install -r requirements3.txt
?
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.
Any idea?
@@ -273,3 +273,27 @@ postsubmits: | |||
- --project=k8s-staging-test-infra | |||
- --env-passthrough=PULL_BASE_REF | |||
- triage/ | |||
-name: post-test-infra-push-pytest |
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.
test failed, add a space between -
and name
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.
Fixed!
it seems like the 2 tests are failing because of py3_deps. Is there a way we can outright ignore this since we are deprecating it? |
We might not want to ignore them in this PR, at least not yet. I think the reason why the tests failed is because the changes in |
It looks like all the tests are passing this time. Are we green to merge? |
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.
Please take a look at my comments
annotations: | ||
testgrid-dashboards: sig-testing-images, sig-k8s-infra-gcb | ||
testgrid-tab-name: "pytest" | ||
testgrid-alert-email: [email protected], [email protected] |
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.
Please delete this line
COPY requirements3.txt /app/requirements3.txt | ||
|
||
RUN /bin/bash -c "apt-get update && apt-get install -y make wget" | ||
RUN /bin/bash -c "pip3 install -r requirements3.txt" |
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.
Any idea?
images/pytest/Dockerfile
Outdated
RUN /bin/bash -c "pip3 install certifi chardet google-api-core google-cloud-bigquery google-cloud-pubsub idna python-dateutil pytz requests six urllib3" | ||
RUN /bin/bash -c "chmod a+x get_jq.sh && ./get_jq.sh && mv jq-1.5 .." | ||
|
||
CMD ["make", "pytests"] |
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.
add a new line at the end of this file, as well as other files
requirements3.txt
Outdated
@@ -9,4 +9,4 @@ PyYAML==5.3 | |||
ruamel.yaml==0.16.5 | |||
setuptools==44.0.0 | |||
sh==1.12.14 | |||
singledispatch==3.4.0.3 | |||
singledispatch==3.4.0.3 |
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.
I don't quite understand why this is considered a change, I'm afraid that there is some encoding thing going on, can you revert changes in this file?
/label tide/merge-method-squash |
Seems like adding the new line at end of |
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.
Thank you!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chaodaiG, khalludi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@khalludi: Updated the
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Separates Docker test image code from PR #24034 . This allows us to test that the Docker test image is being built before it is used in the referenced PR.
This PR also partially takes care of the root issue #23830.
(@chaodaiG, please review at your convenience)