Some dnf command output are used as task input elsewhere. It seems stdout can be poluted by Python warning such as:
2021-06-09 09:32:53.272280 | TASK [repo-install-rpm : Check zuul-built has been setup] 2021-06-09 09:32:54.030351 | cloud-host | /usr/lib/python3.10/site-packages/dnf/const.py:22: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives 2021-06-09 09:32:54.030456 | cloud-host | import distutils.sysconfig 2021-06-09 09:32:54.036755 | cloud-host | /usr/lib/python3.10/site-packages/dnf/const.py:22: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead 2021-06-09 09:32:54.036786 | cloud-host | import distutils.sysconfig 2021-06-09 09:32:54.292712 | cloud-host | zuul-built zuul-built
This patch set the PYTHONWARNINGS and var to related tasks.
rebased onto 55b5739c355329fe94ddb7b5ea497df829c65f94
Build succeeded.
rebased onto 4bee251879b97c6d43a9eae9192bff3e2889fc4d
Metadata Update from @fbo: - Pull-request tagged with: gateit
Build succeeded (gate pipeline).
Pull-Request has been merged by zuul
Thanks!
Some dnf command output are used as task input elsewhere. It seems
stdout can be poluted by Python warning such as:
2021-06-09 09:32:53.272280 | TASK [repo-install-rpm : Check zuul-built has been setup]
2021-06-09 09:32:54.030351 | cloud-host | /usr/lib/python3.10/site-packages/dnf/const.py:22: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
2021-06-09 09:32:54.030456 | cloud-host | import distutils.sysconfig
2021-06-09 09:32:54.036755 | cloud-host | /usr/lib/python3.10/site-packages/dnf/const.py:22: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
2021-06-09 09:32:54.036786 | cloud-host | import distutils.sysconfig
2021-06-09 09:32:54.292712 | cloud-host | zuul-built zuul-built
This patch set the PYTHONWARNINGS and var to related tasks.