From: Petr Štetiar Date: Wed, 23 Feb 2022 17:46:41 +0000 (+0100) Subject: phase2: handle missing change sources X-Git-Tag: v1~6 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c21b1093b984e30921293fefeb5f69f42df06a77;p=buildbot.git phase2: handle missing change sources In commit f3fcdbec877e ("phase2: fix obsolete assumption about feed methods") we've fixed stuck buildmaster for master/phase2 builds, but the issue wasn't obvious at first sight and some digging was necessary. So lets make it obvious if/when it happens next time. Signed-off-by: Petr Štetiar --- diff --git a/phase2/master.cfg b/phase2/master.cfg index 0281828..eb9c37f 100644 --- a/phase2/master.cfg +++ b/phase2/master.cfg @@ -3,6 +3,7 @@ import os import re +import sys import base64 import random import subprocess @@ -217,6 +218,9 @@ with open(work_dir+'/source.git/feeds.conf.default', 'r') as f: for line in f: parse_feed_entry(line) +if len(c['change_source']) == 0: + log.err("FATAL ERROR: no change_sources defined, aborting!") + sys.exit(-1) ####### SCHEDULERS