Ansible job definitions for Zuul
Go to file
Clark Boylan a9a2f5ab50 Be more cautious initing mimetypes
We use mimetypes to set file mime types for upload to log server
locations. We also override yaml files mime type to text/plain when
doing so. If we then call mimetypes.init() again this overrides the
previous yaml update to text/plain. This wasn't a problem until
python3.12 but python3.12 (on Ubuntu Noble specifically) seems to import
test cases in a different order which results in the mimetypes.init()
call in generate_manifest.py overriding the yaml mimetype set by the log
upload test cases.

Simply check if mimetypes is already inited before we init it again
which should avoid the problem entirely.

Note that this is likely to only ever by a testing issues as typically
ansible wouldn't import all of this code together but the unittest
runner does.

Change-Id: Ifb9137ddd89713cad546129c462ad94315100940
2024-06-26 15:07:32 -07:00
doc Merge "Add a job for publishing a site to netlify" 2024-06-11 13:45:21 +00:00
playbooks Add a job for publishing a site to netlify 2024-06-03 11:58:34 -07:00
roles Be more cautious initing mimetypes 2024-06-26 15:07:32 -07:00
test-playbooks Support .python-version files in ensure-python 2024-06-25 14:30:46 -07:00
tests Upgrade ansible-lint to 5.0 2021-03-17 15:44:43 +00:00
tools Drop outdated testing platforms 2024-06-07 11:42:27 +02:00
util-tasks More E208 mode fixes 2020-10-31 07:34:03 +00:00
zuul-tests.d Support .python-version files in ensure-python 2024-06-25 14:30:46 -07:00
zuul.d Merge "Add a job for publishing a site to netlify" 2024-06-11 13:45:21 +00:00
.ansible-lint Update to ansible-lint 6.8.2 2022-11-07 10:37:53 +11:00
.gitignore Enable progressive mode with ansible-lint 2020-11-07 03:20:19 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:25:30 +00:00
.stestr.conf Add a python unit test framework 2018-07-25 09:11:25 -07:00
.yamllint linters: standardise on newline at end of file 2022-07-28 16:19:06 +10:00
bindep.txt Ombibus set of fixups for Ubuntu Noble 2024-05-23 10:54:36 -07:00
CONTRIBUTING.rst Link the policy to the CONTRIBUTING.rst file 2020-01-28 07:21:08 -05:00
LICENSE Add initial license, docs, and other config 2017-06-08 14:01:21 -07:00
linters-requirements.txt Cap ansible-lint <6.13 2023-02-23 18:31:54 +00:00
README.rst Add installation/deprecation documentation 2018-04-11 08:03:57 -07:00
setup.cfg Add initial license, docs, and other config 2017-06-08 14:01:21 -07:00
setup.py setup.py: override modules to stop auto-detection 2022-07-27 11:14:06 +10:00
test-requirements.txt Update ansible versions used in unittesting 2024-06-07 10:40:33 +00:00
tox.ini Update ansible versions used in unittesting 2024-06-07 10:40:33 +00:00

Zuul Jobs

This repo contains a set of Zuul jobs and Ansible roles suitable for use by any Zuul system.