diff mbox series

[OSSTEST,2/2] freebsd build job bisection: add special case

Message ID 20190930145712.31389-2-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show
Series [OSSTEST,1/2] other_revision_job_suffix: Take and pass referring runvar name | expand

Commit Message

Ian Jackson Sept. 30, 2019, 2:57 p.m. UTC
other_revision_job_suffix contains ad-hoc code which returns an
identifier distinguishing certain jobs which are expected to refer to
different revisions within their flight.

Add the special case for freebsdbuildjob's recursion.

After this change we are now willing to tolerate the fact that a
freebsd build job has as input multiple different revisions of
freebsd.

cs-bisection-step has code to avoid creating recursive build jobs: the
created top-level job will therefore reuse the same freebsdbuildjob as
the template.  Hopefully that will be the previously anointed one and
still be available.

The bisector wants to repro on the same host as before.  This means it
won't necessarily use the most recent pass as the basis build.  So
long as the previous build has not been expired, this is fine.  It
does involve building an earlier freebsd on a later one but this
should be OK.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 Osstest.pm | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/Osstest.pm b/Osstest.pm
index 561d584c..c14531e3 100644
--- a/Osstest.pm
+++ b/Osstest.pm
@@ -379,6 +379,8 @@  sub other_revision_job_suffix ($$$) {
     return <<END
       (CASE
        WHEN ($jobfield) LIKE 'build-%-prev' THEN '${separator}prev'
+       WHEN (($jobfield) LIKE 'build-%-freebsd' 
+             AND $refrunvar = 'freebsdbuildjob') THEN '${separator}recurse'
        ELSE                                      ''
        END)
 END