Skip to content

tests: remove timeout from update() - #881

Closed
TomasTomecek wants to merge 2 commits into
kubernetes-client:masterfrom
TomasTomecek:remove-update-timeout
Closed

TomasTomecek wants to merge 2 commits into
kubernetes-client:masterfrom
TomasTomecek:remove-update-timeout

Conversation

@TomasTomecek

Copy link
Copy Markdown
Contributor

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 16, 2019
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: TomasTomecek
To complete the pull request process, please assign lavalamp
You can assign the PR to them by writing /assign @lavalamp in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@TomasTomecek
TomasTomecek force-pushed the remove-update-timeout branch from ba01df7 to 46e7cd6 Compare July 16, 2019 13:15
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 16, 2019
@TomasTomecek
TomasTomecek force-pushed the remove-update-timeout branch from 46e7cd6 to 558d839 Compare July 16, 2019 13:31
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
@TomasTomecek
TomasTomecek force-pushed the remove-update-timeout branch from 558d839 to bf565d3 Compare July 16, 2019 13:56
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 16, 2019
@roycaihw

Copy link
Copy Markdown
Member

/cc

Comment thread tox.ini
commands =
python -V
py.test -vvv -s --ignore=kubernetes/e2e_test
py.test -vvv -s --showlocals --ignore=kubernetes/e2e_test

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this allow us to see the variable values (e.g. the timeout) in the test (when the test fails)? I like this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, that's exactly why I did this change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but while looking at the logs in CI, it doesn't show them; that's odd

self.assertEqual(status['status'], 'Success')
resp.update(timeout=5)
select.select([resp.sock.sock], [], [], timeout=5)
resp.update()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we want to ask existing users to do this. On the plus side this would be a hard break (unknown parameter) instead of some undefined behavior :(

cc @yliaog

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that's a very good point: I was really just trying to remove the select call from the update method for sake of #602 and kubernetes-client/python-base#106

okay, let me close this one and try the solution you proposed in the base PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants