Skip to content

test: update socket_passing.py to python3 - #7386

Closed
keith wants to merge 2 commits into
envoyproxy:masterfrom
keith:ks/socket-passing-py3
Closed

keith wants to merge 2 commits into
envoyproxy:masterfrom
keith:ks/socket-passing-py3

Conversation

@keith

@keith keith commented Jun 24, 2019

Copy link
Copy Markdown
Member

This script is used for the hotrestart_test target, this makes it run
with python3 instead of python2

Fixes #7379

Signed-off-by: Keith Smiley [email protected]

This script is used for the hotrestart_test target, this makes it run
with python3 instead of python2

Signed-off-by: Keith Smiley <[email protected]>
@keith

keith commented Jun 24, 2019

Copy link
Copy Markdown
Member Author

I ran hotrestart_test on linux with this fix and this seemed to be all that needed to change to support python3 in this script, but there could be more depending on the codepath that test hits. This would replace #7382

This can be removed once we update to bazel 0.27.0

Signed-off-by: Keith Smiley <[email protected]>
@keith
keith force-pushed the ks/socket-passing-py3 branch from d866e59 to 11c36a1 Compare June 24, 2019 20:41
Comment thread tools/BUILD
srcs = [
"socket_passing.py",
],
python_version = "PY3",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We need this until we switch to bazel 0.27.0 on CI which changes this default

@htuch htuch left a comment

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.

Thanks!

@htuch

htuch commented Jun 24, 2019

Copy link
Copy Markdown
Member

@keith these look like legit CI failures, want to take a look?

@htuch htuch added the waiting label Jun 24, 2019
@htuch htuch self-assigned this Jun 24, 2019
@keith

keith commented Jun 24, 2019

Copy link
Copy Markdown
Member Author

It looks like it's still running with python2 somehow. I assume this would be fixed with the bazel update, I will try and debug more tomorrow

@htuch

htuch commented Jun 24, 2019

Copy link
Copy Markdown
Member

Why not just rebuild the CI image to pick up latest Bazel?

@keith

keith commented Jun 24, 2019

Copy link
Copy Markdown
Member Author

Is this the right way to do that? #7391

@htuch

htuch commented Jun 26, 2019

Copy link
Copy Markdown
Member

@keith yes, once we have #7391 we should be good here.

@keith

keith commented Jun 26, 2019

Copy link
Copy Markdown
Member Author

#7391

@keith keith closed this Jun 26, 2019
@keith
keith deleted the ks/socket-passing-py3 branch June 26, 2019 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Envoy broken on Bazel CI: "No module named httplib"

2 participants