Commit Graph

16 Commits

Author SHA1 Message Date
James E. Blair 509880073e Remove command.warn usage
This is no longer present in Ansible 9.

Removing these upsets ansible-lint, so those errors are ignored.

The base roles job has bitrotted on centos-7 and bionic due to
a bad voluptuous release used in an stestr test.  That is fixed in
this change as well.

Change-Id: I67886d5ad82ab590979f82bd102d6f974b9d4421
2024-02-14 15:17:52 -08:00
Ian Wienand 8c6512107c
Standarise block/when ordering
Newer ansbile-lint finds "when" or "become" statements that are at the
end of blocks.  Ordering these before the block seems like a very
logical thing to do, as we read from top-to-bottom so it's good to see
if the block will execute or not.

This is a no-op, and just moves the places the newer linter found.

Change-Id: If4d1dc4343ea2575c64510e1829c3fe02d6c273f
2022-11-07 10:37:53 +11:00
Ian Wienand 6d23d20f2f linters: add names to blocks
This is preparation for a later version of ansbile-lint, which finds
missing names on blocks.  This seems a reasonable rule, and the
Ansible manual says [1]

  Names for blocks have been available since Ansible 2.3. We recommend
  using names in all tasks, within blocks or elsewhere, for better
  visibility into the tasks being executed when you run the playbook.

This simply adds a name tag for blocks that are missing it.  This
should have no operational change, but allows us to update the linter
in a follow-on change.

[1] https://docs.ansible.com/ansible/latest/user_guide/playbooks_blocks.html

Change-Id: I92ed4616775650aced352bc9088a07e919f1a25f
2022-07-27 17:13:39 +10:00
Sorin Sbarnea 6b8cc6d468 More E208 (final)
Change-Id: I705d1b10696326f3d4d5bef4b5a88a83f2c3d960
2020-11-10 19:34:45 +00:00
Albin Vass 28b4fb43ef fetch-sphinx-tarball: do not synchronize owner
Change-Id: I0784cb37f29aa66149df470482cc75dcd028474c
2020-05-18 17:05:32 +02:00
Tristan Cacqueray 6f940da935 fetch-sphinx-tarball: introduce zuul_use_fetch_output
This change enables using fetch-sphinx-tarball role along with
the fetch-output role. By default the role still synchronizes
artifacts back to the executor.

Change-Id: I7452f34bccdca49e256053f9630f77953b27f99c
2020-05-14 12:03:58 +00:00
Zuul fd91b63c64 Merge "fetch-sphinx-tarball: Do not keep owner of archived files" 2020-04-27 19:20:04 +00:00
Zuul aac9dc0289 Merge "fetch-sphinx-tarball: use remote_src true" 2020-04-27 19:09:20 +00:00
Sorin Sbarnea b906d000fe Add testing of fetch-sphinx-tarball role
We discovered that role fails on some platform because of the missing
bzip2 package.  We can avoid this by using gzip which is much more
likely to exist on machines (and exists in the container images for
most operating systems).

Change-Id: Ia33a0f77343df809cd3c591a4a988e8e3712c133
Co-Authored-By: Mohammed Naser <mnaser@vexxhost.com>
2020-04-23 13:52:48 +01:00
vass a6d211cd21 fetch-sphinx-tarball: Do not keep owner of archived files
Since we cannot create users this causes an error if the user is not
the same on both the host that produced the files and the executor.

Change-Id: I74464033001666c82ccfa702799e9236029df816
2020-04-20 14:02:02 +02:00
vass bfcb8a9df3 fetch-sphinx-tarball: use remote_src true
Since ansible copies files as a tempfile to the remote host by default
setting remote_src: true when the files are on the same host gives better
error messages since otherwise the source path is not reflecting the real path.

See: http://paste.openstack.org/show/792400/
Where the file in "dest:" field of unarchive is copied to a tempfile
instead of just unarchiving the tarball directly.

Change-Id: Id7478a5a3171fdd2d3bc7531e66a09414e711d3a
2020-04-20 13:28:04 +02:00
Andreas Jaeger 5eb4c257f5 fetch-sphinx: Exclude doctrees directory
The sphinx .doctrees directory is not needed for publishing. By default
sphinx puts it below html. Some projects add to sphinx-build a "-d"
option to put the content elsewhere and not publish it.

This change assures that a .doctrees directory below "html" will not put
stored as artifact and published later.

Statistics: In all of OpenDev, we have:
* 511 repos putting .doctrees elsewhere and thus not publishing it
* 631 repos  no caring and thus publishing .doctrees

The size of .doctrees directory is not neglectable: 2MB for
system-config, 14 MB for nova.

Change-Id: I63b581164aab84352d9e80278cf4a8d634ff28af
2020-01-21 08:32:26 +01:00
Andreas Jaeger 22a17fa19b Revert "Partial sync fetch-sphinx-tarball with fetch-sphinx-output"
We don't need this here - let's change openstack-manuals instead.

This reverts commit 75ae975235.

Change-Id: I9611950a391823efd2f7d2187da0992f00e0e454
2019-08-14 20:13:23 +00:00
Andreas Jaeger 75ae975235 Partial sync fetch-sphinx-tarball with fetch-sphinx-output
Add and use variable sphinx_output_dir as it's used in
fetch-sphinx-output.

Change-Id: I3fa7b1982463816d16ca6515edffb9e73b8cdbe5
2019-08-14 19:43:36 +02:00
James E. Blair ea00b6aa5a Use human-readable names for artifact returns
This will cause links to appear on the build page with text like
"Docs preview site".

Change-Id: I65f8990b65607e72190a871409c3e31014ce86df
2019-08-12 07:13:27 -07:00
James E. Blair 189c2471ec Add fetch-sphinx-tarball role
This is a new artifact-aware method of fetching sphinx tarballs,
meant to be used in docs promote jobs.

Change-Id: I9a01af9e36b959c4fa42f3c41b548c87bf2e1759
2019-03-21 14:04:11 -07:00