Update syntax to support in zuulv3 code base.
Change-Id: Id7a270355c4f4091c1b7553530d86e1d461b4275
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Created separate class for it to use the new config in fixtures
named 'duplicate-pipeline'.
Also, modified it to use the new history assertion.
Change-Id: If6d9ac502122de1022efbebf91abd83f947b940e
The logic to rsync files into AFS is very complex, requiring
an rsync command for each of the pseudo-build-roots that are
produced by our docs jobs. Rather than try to do this in ansible
YAML, move it into an ansible module where it is much simpler.
Change-Id: I4cab8003442734ed48c67e09ea8407ec69303d87
The custom command module used in order to collect job output was
also being used by the pre and post playbooks. This meant that
instead of going to the ansible log file, the rsync output would
end up in /tmp/console.html on the zuul launcher.
To correct this, create separate library directories for use by
the pre and post playbooks which will contain all of the modules
except the custom command module. Write separate ansible.cfg files
for them, and instruct ansible-playbook to use those config files.
Change-Id: I5eb6bcc48bcaa6b056af1af7da93f29408f9db41
Add the Ansible-standard rsync output format option to rsync, and
also output the filter file to the logs to aid in debugging.
Change-Id: I68daf93ee7f5d501e51ec90d201830a18c6e5a47
While trying to follow a failed post-playbook in the gate, it became
harder than desirable to follow which task was failing. Add names to the
tasks so that we can track which thing is going on.
Change-Id: I35fd7ad75c82f6a82fc8d12b7fd48860c1ab10f1
Zuul doesn't have a database, so there's no need to install one, let
alone two, in its bindep.txt file. Remove them.
Change-Id: Ib1ac968d06d059d6184a8fec031cf198d0439596
Zuul doesn't have a database, so there's no need to install one, let
alone two, in its bindep.txt file. Remove them.
Change-Id: Ib1ac968d06d059d6184a8fec031cf198d0439596
We still need to setup our timeout-var environmental variable,
otherwise devstack gate will fail to read BUILD_TIMEOUT and default
jobs to 120min timeouts.
Change-Id: Ieccba55eaab83074a409efdbb928b4a4fdfdecf7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
For the generated shell scripts which are named using UUID4, prepend a
sequence count to them to easily be able to tell the ordering of the
scripts when looking in '_zuul_ansible/scripts/'. Keep the uuid to
avoid potential collisions in /tmp.
Change-Id: Id80bf5139ba1ce12c62945421d49c5e3cd8e2f48
For the generated shell scripts in ansiblelaunchserver.py, have them
be generated in numerical order. For example 01.sh, 02.sh, etc. This
will allow us to tell the ordering of the scripts when looking in
'_zuul_ansible/scripts/'
Change-Id: Iba6231242a58a23549c92aa32620d498e05886f8
This should fix the error we're seeing in gate jobs:
ValueError: jpeg is required unless explicitly disabled
using --disable-jpeg, aborting
Change-Id: I686b21e452aad2dfb9358360137070f58dde3882
This should fix the error we're seeing in gate jobs:
ValueError: jpeg is required unless explicitly disabled
using --disable-jpeg, aborting
Change-Id: I686b21e452aad2dfb9358360137070f58dde3882
When running under testr, default the test log level to INFO,
but otherwise, default it to DEBUG. This way when a developer
runs a test in the foreground it logs at DEBUG without any
further configuration needed.
Change-Id: Ie7388ebf25669807a8c430b6908f9d18115b5dc6
We're ready to start enabling unit tests that were disabled during the
zuulv3 development cycle.
Change-Id: I8dc68ab4d683ace4213758d7263eaa8c656244d3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Log debug message for applying template after we match, not before. To
avoid the impression we are applying configuration to pipelines that
templates are not apart of.
Change-Id: I77d93a9c46f536d0258d3cb1d0a9fd92eb272d17
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Some of this is temporary and reflects how Zuul v3 development
work is proceeding at this moment. It will eventually be simplified
or removed.
The rest probably needs to eventually move into a more substantial
contributing section in the documentation.
Change-Id: I2b9109aa2c0bfbb865893bd59bdeb9ea4c03fff2
This brings forward most of our improvements related to executing
ansible, and also the command socket processor. It includes
several TODO notes for items which are not straightforward
translations.
Change-Id: Id0c58f7f2e3f78e1edf3d373b65b564568e52f1f
This means that the version of a job defined in a branch of a
project repo will only apply to that branch.
Change-Id: If87035e810d07249ba540edb71409ddca483f676
This lets us ask a source for all of the branches for a project.
This uses the git protocol for now, but this can get much nicer
in the future if we switch to using Gerrit's REST API. It should
also be easy to do with github.
The included comment indicates why it's being added -- implementation
to follow in subsequent changes.
Change-Id: I0dfcd61f343a235dcf935aea434b9772d6e746d9
The find command that collected the marker files is expected
to print paths with a leading '/' (see later commands which
grep for '^/') but this was omitted. This would cause all jobs
which published to the root (whether they had any content in
the root directory or were simply only intended to publish to a
subdir of the root) to conflict with each other.
Also, correct a missing fully-qualified path.
Change-Id: I6030c2b101026ff8e72cf4043e1d1b4fbffc5dcb
It seems that Jenkins does this. At least with FTP. We don't have
any leading / on AFS targets, but do the same there for symmetry.
Change-Id: Icb7451c0f3f5fa62c8a15fc621fd30f2df166c96
Signed-off-by: Paul Belanger <pabelanger@redhat.com>