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
qa: set locale to C.UTF-8 in tox.ini #49321
Conversation
7900f05
to
8bd2890
Compare
this change should address the first failure in https://jenkins.ceph.com/job/ceph-pull-requests/107859/console |
8bd2890
to
0cba7a3
Compare
@adk3798 hi Adam, could you help review this change as well? |
still seeing
but thought this looked alright. |
that's a different issue from the one fixed by this change. i think this is also a fallout of upgrading tox -- it could be interpreting the newlines in a variable differently. |
okay, well this PR looks good then anyway |
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'd also mention that I think my build-and-test-in-containers effort could help avoid these sudden scrambles to fix things when packages on the build hosts change ;-) |
3a5aa7c
to
e6a6bbd
Compare
as ansible is using UTF-8 encoded characters in the file names, so, to avoid failures like: File "/home/jenkins-build/build/workspace/ceph-pull-requests/qa/.tox/py3/lib/python3.10/site-packages/pip/_internal/utils/unpacking.py", line 217, in untar_file with open(path, "wb") as destfp: UnicodeEncodeError: 'latin-1' codec can't encode characters in position 137-140: ordinal not in range(256) we have to set a locale which is able to handle UTF-8. see also ceph/teuthology#1671 Signed-off-by: Kefu Chai <tchaikov@gmail.com>
e6a6bbd
to
82dbfaf
Compare
@phlogistonjohn hi John, done. |
looking forward to it! |
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.
LGTM
otherwise it is mising when running test, and we'd have following failure: py3: exit 2 (0.00 seconds) /home/jenkins-build/build/workspace/ceph-pull-requests/qa> pytest --assert=plain test_import.py Signed-off-by: Kefu Chai <tchaikov@gmail.com>
82dbfaf
to
db0f16d
Compare
jenkins test make check |
py3 tries to import all python modules to ensure that they are python3 compatible. but the installation fails on jenkins test node: Resolved https://github.com/ceph/teuthology.git to commit 4da97cf64e542f347ec47b7bdbe5eca99759f9b7 Installing build dependencies: started error: subprocess-exited-with-error Signed-off-by: Kefu Chai <tchaikov@gmail.com>
as we always test with ubuntu jammy, which does not provide python3.7: py37: skipped because could not find python interpreter with spec(s): py37 so there is no point testing with python3.7. also, in tox v4, it is not able to handle "key = value" anymore, where value has newlines in it. so we need to find a better way passing command line options to the test command. this change partially reverts 2dd86c9 Signed-off-by: Kefu Chai <tchaikov@gmail.com>
534e98a
to
c67106b
Compare
When creating ceph#49359 I was testing on an outdated branch and didn't realize part of what I was fixing had already been fixed in ceph#49321. Basically ended up changing what a variable "mypy_args" is set to but that variable is no longer being used. It has no actual effect but we should remove the extraneous code. Signed-off-by: Adam King <adking@redhat.com>
When creating ceph#49359 I was testing on an outdated branch and didn't realize part of what I was fixing had already been fixed in ceph#49321. Basically ended up changing what a variable "mypy_args" is set to but that variable is no longer being used. It has no actual effect but we should remove the extraneous code. Signed-off-by: Adam King <adking@redhat.com>
When creating ceph#49359 I was testing on an outdated branch and didn't realize part of what I was fixing had already been fixed in ceph#49321. Basically ended up changing what a variable "mypy_args" is set to but that variable is no longer being used. It has no actual effect but we should remove the extraneous code. Signed-off-by: Adam King <adking@redhat.com>
as ansible is using UTF-8 encoded characters in the file names, so, to avoid failures like:
File "/home/jenkins-build/build/workspace/ceph-pull-requests/qa/.tox/py3/lib/python3.10/site-packages/pip/_internal/utils/unpacking.py", line 217, in untar_file
with open(path, "wb") as destfp:
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 137-140: ordinal not in range(256)
we have to set a locale which is able to handle UTF-8.
see also ceph/teuthology#1671
Signed-off-by: Kefu Chai tchaikov@gmail.com
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard cephadm
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox
jenkins test windows