7bd42d37c4
Several things have bit rotted in here that we need to take care of. First is that we updated the default nodeset to Noble which breaks our ability to install Pillow<10 for blockdiag. To fix this we need to install libjpeg-dev so that we can build a Pillow wheel locally during testing. Next old ansible-lint doesn't run on Noble's python3.12. We bump up Ansible lint to a modern version that matches Zuul's current default Ansible. We also stop installing zuul to get zuul_console and zuul_return and instead simply mock them in the linter. To make this work we have to drop the ansible-playbook syntax check run which is fine because ansible-lint runs this too, but when done via ansible-lint the mocked modules are respected [0]. Finally we have to clean up/ignore some of the new linter warnings/errors. [0] https://ansible.readthedocs.io/projects/lint/rules/syntax-check/ Change-Id: Ia0e936fefc9e2b0f2fa614c93a2f168e14b2825b
17 lines
553 B
Plaintext
17 lines
553 B
Plaintext
---
|
|
parseable: true
|
|
exclude_paths:
|
|
- ../../zuul/zuul-jobs
|
|
- zuul.d
|
|
skip_list:
|
|
- '106' # Role name does not match ``^[a-z][a-z0-9_]+$`` pattern
|
|
- '204' # Lines should be no longer than 160 chars
|
|
- '301' # Commands should not change things if nothing needs doing
|
|
- '701' # No 'galaxy_info' found
|
|
- 'fqcn[action-core]' # We find the shorter names easier to read
|
|
- 'fqcn[action]' # We find the shorter names easier to read
|
|
- 'name[play]' # Name your plays but they dont all need names
|
|
mock_modules:
|
|
- zuul_console
|
|
- zuul_return
|