schedulers: Fix bug in scheduler started job coverage

Jobs started by the nightly scheduler were failing as sourcestamps are empty for these.
This meant that additional branch specific target triggers were not being handled and
jobs were being missed.

Switch to using the yo_build_branch property which was the original intention and
should always be set, fixing the jobs being started.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2025-05-29 12:07:10 +01:00
parent ae16bba725
commit 02ac6aee13

View File

@ -430,7 +430,7 @@ for builder in config.subbuilders:
@util.renderer
def builderNamesFromConfigQuick(props):
#log.msg("builderNames: Sourcestamp %s, props %s" % (str(props.sourcestamps), str(props)))
yp_branch = props.sourcestamps[0]['branch']
yp_branch = props.getProperty('yp_build_branch')
builders = config.trigger_builders_wait_quick
for b in config.trigger_builders_wait_quick_releases:
@ -443,7 +443,7 @@ def builderNamesFromConfigQuick(props):
@util.renderer
def builderNamesFromConfigFull(props):
#log.msg("builderNames: Sourcestamp %s, props %s" % (str(props.sourcestamps), str(props)))
yp_branch = props.sourcestamps[0]['branch']
yp_branch = props.getProperty('yp_build_branch')
builders = config.trigger_builders_wait_full
for b in config.trigger_builders_wait_full_releases: