10 Commits

Author SHA1 Message Date
Albin Vass
f52d7441c4 Remove unused tox_envlist in fetch-subunit-output
Change-Id: Iaeaecaeb0e86c2d34f6526ae799b5aa65e0b5487
2020-05-19 20:24:37 +02:00
Tristan Cacqueray
a07bbee70c fetch-subunit-output: introduce zuul_use_fetch_output
This change enables using fetch-subunit-output role along with
the fetch-output role. By default the role still synchronizes
artifacts back to the executor.

Change-Id: I50a50856b96a9112c1b4be82ca04b612fd29d939
2020-01-24 21:07:50 +00:00
Andreas Jaeger
293b064d29 fetch_subunit: Change variable
Change new variable zuul_additional_subunit_dirs to
fetch_subunit_output_additional_dirs to name it after the role.

Change-Id: I7ac0b5d343701409a8741439334fe27f5374a258
2019-10-21 21:07:39 +02:00
Luigi Toscano
ab8f9fc403 fetch-subunit-output: collect additional subunits (2nd try)
In addition to the main subunit file from zuul_work_dir,
collect the subunit files from the elements (directories)
of the zuul_additional_subunit_dirs list.

The default behavior is unchanged.

While the documentation of this role states that zuul_work_dir
contains an absolute path, this is not always true.
So make sure to not make any assumption about zuul_work_dir
in order to not fail spectacularly as it happened with the
previous patch[0].

Add also some tests for the role: both the basic case
and with an additional test directory.

[0] https://review.opendev.org/673885

Change-Id: Iabf2e0cf6d86e36a174778367186bbd39a65c3dd
2019-10-17 00:42:28 +02:00
Andreas Jaeger
04f4cecaec Revert "fetch-subunit-output: collect additional subunit files"
This reverts commit 8624201e0cc8b8860b4fe01994739a6828ec9615.

This breaks builds like in https://logs.opendev.org/01/673401/2/check/openstacksdk-tox-py36-tips/0e0bed9/job-output.txt.gz#_2019-08-01_17_04_29_549629

Change-Id: Ie4c8f966cfe72828a6ff9a7512948d6c55c62fde
2019-08-01 17:55:58 +00:00
Luigi Toscano
8624201e0c fetch-subunit-output: collect additional subunit files
In addition to the main subunit file from zuul_work_dir,
collect the subunit files from the elements (directories)
of the zuul_additional_subunit_dirs list.

The default behavior is unchanged.

Change-Id: Ic3bc76aa104951bcc0c186347196067342e28751
2019-08-01 17:49:02 +02:00
Michel Peterson
724a520adf Fix lookup of subunit files in fetch-subunit-output
The role allows override of the zuul_work_dir variable, however in the
step where it retrieves the test results is the only step where it
prepends the directory with a fixed path. This breaks the step if the
zuul_work_dir given is a fully qualified path.

This patch defaults the zuul_work_dir to a fully qualified directory and
standarizes the usage zuul_work_dir across the role.

Change-Id: I62bc7571f625586a0d1b660f896e0c7cbaeae6e1
2018-02-28 14:33:35 +02:00
Monty Taylor
3d0550a96c
Revert "Revert "Add consolidated role for processing subunit""
This reverts commit 9f4efe98e10c9d553dc8a15bd7b84584e1118684.

Compress testr results.html before fetching it

The synchronize command has testr_results.html.gz in the file list, but
we don't ever gzip it so it fails on fetch.

Make the "Check for testr directory" task actually check for
.testrepository and not for .stestr a second time.

The compression bug broke only for people using stestr. For people
using testr, the path bug meant they don't get html reports.

Change-Id: I0cdfc66ee8b046affeb0b071fef38c21cb7a4948
2018-01-16 11:58:18 -06:00
Monty Taylor
9f4efe98e1 Revert "Add consolidated role for processing subunit"
This reverts commit ebdcf57fb088ba09db51a1f2bcbc915731d04bd2.

Change-Id: Icfa811571ec7c26617e0f8e9db086001fc0bc81f
2018-01-16 01:10:56 +00:00
Monty Taylor
ebdcf57fb0
Add consolidated role for processing subunit
We don't need two roles for testr and stestr. The roles have logic to
check to see if .testrepository or .stestr dirs exist, and the logic
after the subunit extraction is the same. Combine them into a single
role which should do the right thing.

Also, document it.

Change-Id: I833320cf9a932d8e119645eb798ce0c93d854321
2017-12-20 08:33:42 -06:00