Commit Graph

19 Commits

Author SHA1 Message Date
Ian Wienand 76037c434e linter: add name to blocks
A later version of ansible-lint enforces names on blocks.  This is
generally a good rule; fix a few missing blocks here.

Change-Id: Ia87a0c21ec0ed1662e37cbc9e17a0df344b54e57
2022-07-28 12:03:23 +10:00
Andreas Jaeger 6376aa1341 Fix translation jobs
The translation jobs use scripts that expect tox pre-installed, install
tox globally for them.

Change-Id: I633c868a96721f38f063f8e057b0b3c950d5d3e9
2020-06-18 20:05:02 +02:00
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
Andreas Jaeger f1acd97b9d Fix translation-source location
The previous change published to
https://tarballs.opendev.org/translation-source/

but we should publish to
https://tarballs.opendev.org/openstack/translation-source/ .

Fix it. We should remove the files from
https://tarballs.opendev.org/translation-source/ afterwards.

Change-Id: I46a857800326db2ad06be276da65279852cc4a90
2020-03-06 07:11:16 +01:00
Clark Boylan 2e12d5df0b Fix afs publishing of translation sources
There are at least two problems here. The first is we can't create an
afs token because we don't have access to the afs secret. The old ssh
based secret was removed by:

  https://review.opendev.org/#/c/706734/2/zuul.d/jobs.yaml

Fix that by adding the new opendev tarballs secret to the job.

Next we need to prefix translation sources with translation-source/ in
the filesystem path. This requires us to write out to a different afs
path than normal. To address that we add a new playbook that is aware of
this different path.

Change-Id: I8b49e4d91600377c98e003b806a13fc89d2614ec
2020-03-05 13:18:29 -08:00
Akihiro Motoki 0a7e5e969c Use python3 for translation jobs
Horizon no longer support python2 as it has dropped Django 1.11
support which is the last version with python 2.7 support.
However, the translation jobs still require python2, so the translation
jobs are failing after horizon dropped python2 support.
It is time to ensure python3 in the translation jobs.

Change-Id: Id78484bf5366601b11547e80b772a0eec03622d0
2020-01-06 18:33:46 +09:00
Andreas Jaeger 27f3d26313 Add horizon to translation jobs
The translation jobs check out horizon directly, let's add it to
required-projects instead so that we can use the on-disk copy.

Pass the location of the horizon directory to the scripts.

Needed-By: https://review.opendev.org/682809
Change-Id: If56a3f4c6a20414fdacb5c6395e9f0efd7eb8395
2019-09-18 09:08:18 +02:00
Andreas Jaeger 0f34146430 Use prepare-zanata-client role
The prep-zanata role has been moved to openstack-zuul-jobs and renamed
to prepare-zanata-client, use it now and remove the now obsolete role.

Change-Id: I1351d586d8c4211677300eb2e606ef6007ca816b
Depends-On: https://review.openstack.org/525760
2018-10-04 22:04:28 +02:00
Andreas Jaeger 65cfd7f915 Fix translation subunit upload
The run job ended and did not upload the subunit file in case of
failure.

Move the subunit upload into it's own post-run script so that it runs
everytime.

Change-Id: I42c3f52e995e8c3c47efbf07c48eaaf66dbfa59b
2018-08-22 21:26:32 +02:00
Andreas Jaeger affdbab218 Consolidate common.sh script copying
Create new role for copying common scripts, this includes for now only
common.sh. Use this for proposal and translation jobs.

In the past we duplicated the file, this allows to have one definition
only.

Change-Id: I72c14341f511fdaa2c67a3758387afc9445869cc
2018-02-15 08:03:40 +01:00
Monty Taylor 63404d3d0d Rename fetch-translations-stestr-output
The role name is misleading. It's not fetching stestr output, it's
fetching subunit output.

Add a note to the README explaining what it does and that it's not using
fetch-subunit-output on purpose.

Use  "{{ zuul.project.src_dir }}" instead of
"src/{{ zuul.project.canonical_name }}".

Change-Id: I1b5ab65f9697ec184969ca7899fb40294cdb853c
2018-01-23 13:40:51 +01:00
Andreas Jaeger 5b5b9a1b33 Remove revoke-sudo from translations playbook
The translation jobs need sudo, remove revoke-sudo from pre.yaml.

Change-Id: Ic267f06850ca93e1eeeb8a75bc226feee3db631b
2017-12-18 10:18:12 +01:00
Monty Taylor d261ebdc96 Use ensure-babel to make sure babel is installed
We made an ensure-babel role. Use it instead of the shell script.
From doing that, remove references in the translation update
scripts and instead source the activate script. Ensure-babel currently
installs into a venv, but may want to just do pip install --user in the
future.

Change-Id: I0ea86040b91c1c3de4f5b315183974548e51b5fa
Depends-On: I1334ff1f469061884b222dd99e72a989d72c68be
2017-12-16 15:42:26 +01:00
Andreas Jaeger ca7a4f4ff4 Collect testrepository.subunit.gz for translations
The show up in openstack-health, we need to publish the subunit file.
The file is written by the subunit files, so only publish it.

Change-Id: Ia2a4060c7e6ae3a5f9b8a8e8540c1d2c331850b1
2017-11-27 08:17:58 +01:00
Andreas Jaeger 67c123ea99 Fix translation scripts
The translation scripts need sudo, we cannot use the release notes
pre.yaml which revokes sudo. Instead, create our own pre script and use
it.

Use .venv/bin for sphinx-build since that's where the current role in
openstack-zuul-jobs puts the content.

Depends-On: I23ae1ed7abe7f36d46aae3d72293210ca2a8c0e6
Change-Id: Ia7427bef0408bc5138b6f2a0eb30713ce8fd379d
2017-11-18 14:37:47 +01:00
Zuul 79fdbb3faf Merge "Fix ZUUL_REFNAME for translation jobs" 2017-10-18 16:08:38 +00:00
Andreas Jaeger ccf36ea678 Fix ZUUL_REFNAME for translation jobs
Pass in the branch in upstream_translation for Zuul v3 and use it
instead of ZUUL_REFNAME.

Change-Id: Ib2f7aa49dec1ff906e1fef7e32bdbc4d3146e369
2017-10-18 04:52:38 +00:00
Andreas Jaeger 7a246fc77e Use proper script for translations
The propose job needs to run the propose script.

Change-Id: Ie5c710b214c0b9447581825dc786249d2bc3c75d
2017-10-17 09:47:54 +02:00
Jesse Keating f53433bddc Add translation jobs
Add upstream_translation_update and propose_translation_update jobs.
They are close enough to put them both in the same commit.

Adds a legacy role to prep the upper-constraints file for tox.
Eventually this should work like the tox role, as an env variable passed
along for tox to read.

Adds a role to prep zanata client on the node in order to use the client
to interact with the Zanata server.

Change-Id: If736642860c5b0d1523215f90c64e858387d4254
Depends-On: I014d559c330803213105ce1bf83a41a3c157df9c
Signed-off-by: Jesse Keating <omgjlk@us.ibm.com>
2017-10-05 19:48:28 +02:00