test-infra: pull-kubernetes-e2e-gce instantly failing all runs with python error
What happened:
looks like something just changed in test-infra and broke the pull-kubernetes-e2e-gce job:
Traceback (most recent call last):
File "/workspace/./test-infra/jenkins/bootstrap.py", line 1204, in <module>
bootstrap(ARGS)
File "/workspace/./test-infra/jenkins/bootstrap.py", line 1072, in bootstrap
logging.info('Builder: %s', node())
File "/workspace/./test-infra/jenkins/bootstrap.py", line 590, in node
os.environ[NODE_ENV] = urllib.request.urlopen(urllib.request.Request(
File "/usr/lib/python3.9/os.py", line 684, in __setitem__
value = self.encodevalue(value)
File "/usr/lib/python3.9/os.py", line 756, in encode
raise TypeError("str expected, not %s" % type(value).__name__)
TypeError: str expected, not bytes
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
seen in all runs of https://github.com/kubernetes/kubernetes/pull/120755
Please provide links to example occurrences, if any:
Anything else we need to know?:
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 17 (17 by maintainers)
https://github.com/kubernetes/test-infra/pull/30763 is the right thing to land as long term in python3 that’s how the code should work. we were probably lucky that it worked this long
confused about why but glad https://github.com/kubernetes/test-infra/pull/30763 seems to have worked
Kicked off a test here. Seems to be running.