47ae93c061
These roles replace the jenkins-log-client portion of the logstash/subunit queue processing system. Much of the code is derived from the jenkins-log-client. Rather than subscribing to ZMQ events emitted from jenkins (and later zuul v2.5), these roles are intended to be run in a late base post playbook (right after log uploading). They examine the logs directory which contains the files that were just uploaded and any matching files have jobs submitted to the gearman queue. Currently the module attempts to maintain compatability as much as possible, but eventually we should represent some of the data in a more v3-like manner, as well as consider adding additional data. Some suggestions are noted in comments. Change-Id: I10ea613d9278465b90d891371d2626b9e99f8f31
37 lines
1.2 KiB
ReStructuredText
37 lines
1.2 KiB
ReStructuredText
Submit a log processing job to the subunit workers.
|
|
|
|
This role examines all of the files in the log subdirectory of the job
|
|
work dir and any matching filenames are submitted to the gearman queue
|
|
for the subunit log processor.
|
|
|
|
**Role Variables**
|
|
|
|
.. zuul:rolevar:: subunit_gearman_server
|
|
:default: logstash.openstack.org
|
|
|
|
The gearman server to use.
|
|
|
|
.. zuul:rolevar:: subunit_processor_config
|
|
:type: dict
|
|
|
|
The default file configuration for the subunit parser.
|
|
|
|
This is a dictionary that contains a single entry:
|
|
|
|
.. zuul:rolevar:: files
|
|
:type: list
|
|
|
|
A list of files to search for in the ``work/logs/`` directory on
|
|
the executor. Each file will be compared to the entries in this
|
|
list, and if it matches, a processing job will be submitted to
|
|
the subunit processing queue, along with the tags for the
|
|
matching entry. Order is important: the first matcing is used.
|
|
This field is list of dictionaries, as follows:
|
|
|
|
.. zuul:rolevar:: name
|
|
|
|
The name of the file to process. This is treated as an
|
|
unanchored regular expression. To match the full path
|
|
(underneath ``work/logs``) start and end the string with
|
|
``^`` and ``$`` respectively.
|