7 Commits

Author SHA1 Message Date
Andreas Jaeger
58cac05a76 Fix check-requirements
Fix check-requirements: The assumptions with remote branch are not valid
anymore with Zuul v3, the change is on the proposed branch, check against
HEAD^1 instead.

Use the command module instead of script to get stdout in the
job-output.txt.gz file. Zuul v3 currently will not record the output from script
module in that file, only when command is used.

Note that the script module copied the file to the remote system - the
system where the tests are run - while command does not do this. But
the command is already on the remote system, use correct path for it.

Co-Authored-By: James E. Blair <corvus@inaugust.com>
Change-Id: Ib44332b4daf63b9d3fca6eadf0b4825614ca4aeb
2017-10-31 10:12:22 +11:00
James E. Blair
ae5fc2922b Remove unecessary playbook
We should be able to set the tox work dir in the job definition.

Also, updates the files matcher so changes to the jobs cause them
to run.

Change-Id: I519a5257bb3806169ee78dee9ac6ae92d282a889
2017-10-21 05:05:38 +00:00
James E. Blair
339b108aee Add a Zuul v3 native cross-check job
Convert the existing legacy-cross-* jobs over to the
new cross-check-job.

Adds a small bump to upper-constraints in order to test
the success of this review.

Co-Authored-By: Dirk Mueller <dirk@dmllr.de>
Change-Id: Iba6a025e3a10185ad1d8217244b967713cace3f6
2017-10-20 15:33:14 +02:00
Monty Taylor
a4ebb1c463
Move chdir into script itself
chdir for script commands isn't added until ansible 2.4 which we don't
run yet.

Change-Id: I4e042979a7bea3fa87d7cffb12e6728a8357dc9f
2017-10-15 08:57:20 -05:00
Monty Taylor
4054ec9fb8
Run check-requirements in the directory of the change
The script assumes it's being run in the directory containing the
proposed change, so we should chdir there. While we're at it, collapse
this to use the 'script' module which copies a script and executes it.

Change-Id: I43ed49d523c3131aad6c892c78fd95aba65c30fe
2017-10-10 13:50:13 -05:00
Monty Taylor
bcdb298d71 Stop using zuul-cloner in project-requirements-change
In zuul v3 the repos are pushed to the node and do not need to be
cloned.

Change-Id: Iae56d131002236f2b2c24cc7339ae795f0bbb192
2017-10-04 17:09:42 +00:00
Monty Taylor
5e0f7cba3f Add requirements-check job
This is a straight copy of the original gate-{name}-requirements job,
except it copies the script over to the host rather than depending on a
baked-in copy of the script. Followups should rework it to stop using
zuul-cloner.

(jlk) updated to fix pep8 errors so that the patch can land.

Change-Id: I734db3b3e4d445e15084d1ca6e60cf2fe392385d
2017-10-04 17:09:33 +00:00