aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2024-10-16 22:50:04 +0200
committerMagnus Granberg <zorry@gentoo.org>2024-10-16 22:50:04 +0200
commitbe93016aa5c8743c88fa3cc2c6c92fc7a9d53593 (patch)
treecc8fe24073ab2065324fcd20ba31bf41ba64f1a2
parentAdd step logs to a log file (diff)
downloadtinderbox-cluster-be93016aa5c8743c88fa3cc2c6c92fc7a9d53593.tar.gz
tinderbox-cluster-be93016aa5c8743c88fa3cc2c6c92fc7a9d53593.tar.bz2
tinderbox-cluster-be93016aa5c8743c88fa3cc2c6c92fc7a9d53593.zip
Use stderr_failed when stderr fail in build
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
-rw-r--r--buildbot_gentoo_ci/steps/builders.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/buildbot_gentoo_ci/steps/builders.py b/buildbot_gentoo_ci/steps/builders.py
index 1db8cc2..7123cf4 100644
--- a/buildbot_gentoo_ci/steps/builders.py
+++ b/buildbot_gentoo_ci/steps/builders.py
@@ -30,6 +30,7 @@ def PersOutputOfEmerge(rc, stdout, stderr):
emerge_output['circular_deps'] = False
emerge_output['masked'] = False
emerge_output['failed'] = False
+ emerge_output['stderr_failed'] = False
package_dict = {}
change_use = {}
log_path_list = []
@@ -92,8 +93,8 @@ def PersOutputOfEmerge(rc, stdout, stderr):
# split the lines
#FIXME: Handling of stderr output
stderr_line_list = []
- if stderr != '' and not emerge_output['failed']:
- emerge_output['failed'] = True
+ if stderr != '':
+ emerge_output['stderr_failed'] = True
for line in stderr.split('\n'):
if 'Change USE:' in line:
line_list = line.split(' ')
@@ -360,8 +361,9 @@ class SetupPropertys(BuildStep):
project_build_data['buildbot_build_id'])
project_build_data['builder_id'] = builder_id
project_build_data['buildnumber'] = self.getProperty("buildnumber")
+ project_build_data['bug_id'] = 0
self.setProperty('project_build_data', project_build_data, 'project_build_data')
- print(self.getProperty("project_build_data"))
+ print(f"Project_build_data: {project_build_data}")
self.masterdest = yield os.path.join(self.master.basedir, 'workers', self.getProperty('workername'), str(self.getProperty("buildnumber")))
self.setProperty('masterdest', self.masterdest, 'masterdest')
self.setProperty('build_env', {}, 'build_env')
@@ -919,7 +921,7 @@ class CheckEmergeLogs(BuildStep):
print(emerge_output)
# this should be set in the config
retrays = 5
- if self.getProperty('rerun') <= retrays and emerge_output['failed']:
+ if self.getProperty('rerun') <= retrays and emerge_output['stderr_failed']:
# when we need to change use. we could rerun pre-build with
# --autounmask-use=y --autounmask-write=y --autounmask-only=y
# but we use --binpkg--respect-use=y in EMERGE_DEFAULT_OPTS