Commit Graph

12 Commits

Author SHA1 Message Date
Clark Boylan 57c5e353e5 Fix tox.ini for tox v4
This will probably go away eventually but before that can happen the
child change adding nox docs support needs to land.

Change-Id: Ibf25e07ceb80e54263223c7dc900a444143ecbac
2023-01-09 09:22:36 -08:00
Clark Boylan b3567e046d Fix zuul_return in ansible linter
We load the zuul_return plugin out of zuul's code base. Zuul v6 moved
the location of this plugin. Update our linter setup to use the new
location.

Change-Id: Ie61117338d01f91b01201f109a7b377c22167931
2022-05-04 14:16:49 -07:00
Clark Boylan 080ecb4579 Set file modes explicitly
Ansible changed, then unchanged their behavior around file modes, but
being explicit is likely a good idea to handle any new future changes
from ansible.

We set modes generously (to 755 for dirs and 644 for files) to avoid
unexpected access problems. Note that depending on the perms in AFS this
may cause a perms ot update on existing dirs but that should be fine as
long as we aren't making them more restrictive.

Finally we skip two cases where modes are required by the linting rule
because they are tarball extraction steps and applying a single mode to
all dirs and files in a tarball doens't make a ton of sense.

Includes bumping linter configuration.

Change-Id: Iacf41549928ba7f05f0f71a79ddef1b6e1154e2a
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
2020-08-28 18:49:53 +01:00
Andreas Jaeger 09fa6e4068 Check that all jobs are documented
Copy over the linter from zuul-jobs to check that all jobs are
documented.

Depends-On: https://review.opendev.org/719042
Change-Id: I8cb7d8e81472bf65f5802358d4c1000fa168547e
2020-04-10 18:35:12 +02:00
Andreas Jaeger 183ec60299 Remove site_logs secret
logs.o.o is not used anymore, we can remove the secret.

Change-Id: I09b0fb3193d5fbf67aa12f9ea3b31002dbd6ff9f
2020-03-04 06:21:25 +01:00
Zuul a734d09e8b Merge "Use standard ansible-lint config file" 2019-07-31 20:44:04 +00:00
Andreas Jaeger 0c5629791e Fix paths for zuul org rename
Change-Id: I26b066906119771ef32bcf212e58f4938bd76828
2019-04-20 14:25:02 +02:00
Sorin Sbarnea bdb8b5c167 Use standard ansible-lint config file
Allows calling ansible-lint directly instead of hardcoding its
configuration inside tox.

This plays much better with other tools, like editors which may
perform the linting themselves.

Change-Id: I09e48322f11de33a2ce97a27cf7cf93225ccc12c
2019-04-17 15:26:27 +00:00
Monty Taylor e0c347ace3 Use zuul-jobs roles path for linters
We need the roles from zuul-jobs for linting our playbooks. This
is copied from project-config. In order to satisfy that, add
zuul-jobs to the required projects so that it'll get cloned and
pushed to the test node.

Change-Id: Ib2e2a6a4b05071199e14570c445dc1a2eda9e9b7
2019-04-17 14:09:46 +00:00
James E. Blair b43225d5f3 Update zuul ansible location
With multi-ansible support, the location of the zuul plugins/modules
has moved.

Change-Id: I8e2cf1f2276bca5a912fed52062628b3b9d0d6d9
2019-03-18 11:18:47 -07:00
Andreas Jaeger 08f547be5c Fix tests - Add bindep.txt tec
Our tests need to compile some packages, add binary dependencies.
The list is the same as used for openstack-zuul-jobs.

Add tests files to pass the syntax checks.

Adjust test invocation to pass fake values to variables.

Change-Id: I7368990628086a03501c432b86ace48fb7a50ba5
2019-02-11 21:59:04 +01:00
Andreas Jaeger 2fb73ee8fa Add linting jobs
Add usual linting job for this repo to have some basic testing.

Also, add the normal .gitignore to blacklist .tox and some other files.

Note this change is not self-testing since the repo is a config-project.

Change-Id: Ie54095f39f9bb4d10d6f809c573ea712f3885af6
2019-02-09 11:39:20 +01:00