Commit Graph

11 Commits

Author SHA1 Message Date
Ian Wienand 0326363e48 Update ansible-lint and add fake zuul_return
- Use zuul_return fake module to make ansible lint happy, this allows
  to remove Zuul import.
- While ansible-lint 4.2.0 is now able to detect playbooks/roles, this
  is broken, so don't use it
- move its config out of tox.ini so it can be used by any tools, or
  without tox

Change-Id: Ie8935f47db855647e19ae091044e5ac1871f1551
Co-Authored-By: Sorin Sbarnea <ssbarnea@redhat.com>
Co-Authored-By: Andreas Jaeger <aj@suse.com>
2020-03-18 22:28:10 +01:00
Andrea Frittoli cf1ae5235b Make the task that remove the remote idempotent
The current implementation of the task is not idempotent.
That's fine in CI but when running locally it forces a cleanup
of the environment every time.

Change-Id: Ifdb573bc09ddb2d39674218e9f631e8c15f936cb
2018-03-05 23:29:38 +00:00
Ian Wienand 4995f042ea Convert back to zuul.projects
Zuul has transitioned zuul.projects to a dict that mirrors
zuul._projects.  Convert users back to zuul.projects so we can remove
the underscore version in zuul.

Change-Id: Ib71241a862cf29f6e542dc1d4a2c5cd554d5d7d8
Depends-On: I3c011f72933e98ccbf8badf0e9197c8659766c51
2017-12-01 14:59:29 +11:00
Andreas Jaeger e117d34e91 ansible-lint: Handle some git warnings
Ignore some places where ansible warns about git usage.

Change-Id: I9c5c19cca8c1c32ee0cde85e2ec66140364c14bc
2017-10-29 15:37:22 +00:00
Ian Wienand bccbc1b221 Move to dictionary list of projects zuul._projects (take 2)
This re-implements I430277369f9ecb2ecc0a31f795c72bba83bcecff (that had
to be reverted with commit c8628dd8f8).

The original change had a small syntax error using
"zuul.projects.values()" instead of "zuul._projects.values()".  This
is corrected here.

It also had a problem with_items: zuul._projects.values() -- in
python3 this returns a view, which doesn't work with "with_items:"
... so you need to "| list".

Integration test results (for use-cached-repos at least) in
I7828f78efd1d20031cf1c34629200f265576e7a7.

Change-Id: I9d88f405f34d1c5f75ebf4f52cedfaaab20c3bda
2017-10-26 08:13:43 +11:00
David Moreau Simard c8628dd8f8 Revert "Move to dictionary list of projects zuul._projects"
This is not working, let's figure it out after a revert.

This reverts commit a2767b225a.

Change-Id: Ib26e22f6285abfd06f85029a6b283b743c6cbd4a
2017-10-20 17:08:46 +00:00
Ian Wienand a2767b225a Move to dictionary list of projects zuul._projects
Zuul exports the projects list as a dictionary in _projects in the
depends-on.  The idea is that we switch these jobs to that, and do
some testing.  When ready, we switch "projects" to be the dictionary
view, and revert "_project" calls here to "project".

Change-Id: I430277369f9ecb2ecc0a31f795c72bba83bcecff
2017-10-19 15:52:15 +11:00
James E. Blair 64da87d225 Zuulv3: fix reference to stat results in use-cached-repos
Change-Id: I2fda509eda5012075e2092ab8511625741f604ed
2017-08-30 13:07:57 -07:00
James E. Blair 28b2169a0a Fix errors in use-cache-repos
These options need to go in the 'args' dict.

Change-Id: I3981706d7f1da71061698163123b96a24f844035
2017-08-29 17:55:33 -07:00
James E. Blair 696dbb5fae Remove whitespace from use-cached-repos role
Change-Id: I9229feedb87c4ba9352c876ac2f4e63b97c76817
2017-08-29 17:54:21 -07:00
James E. Blair 0d94dbf838 Zuul v3: Add use-cached-repos role
This adds a role to clone the cached repos into the workspace,
and alters base-test to use it as well as follow-up roles to
synchronize their states and start zuul_console, instead of the
default prepare-workspace role which uses rsync and is less
efficient.

Change-Id: Ifb0fedf1df1d50444ecb1f3fb03f21b112c9dad9
Depends-On: Ib50ddff0198411e7cd5857d5bfbb915f02baadf1
2017-08-29 16:44:01 -07:00