aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2024-03-16 09:49:05 +0100
committerMagnus Granberg <zorry@gentoo.org>2024-03-16 09:49:05 +0100
commitc37dbde9c1e6688aa7bc9095fe64c91717d9c97d (patch)
tree1569f602cb1910722793d67089ac2a2b1af67f9d
parentGet faild_version_data when faild and add more info in find bugs (diff)
downloadtinderbox-cluster-c37dbde9c1e6688aa7bc9095fe64c91717d9c97d.tar.gz
tinderbox-cluster-c37dbde9c1e6688aa7bc9095fe64c91717d9c97d.tar.bz2
tinderbox-cluster-c37dbde9c1e6688aa7bc9095fe64c91717d9c97d.zip
Use faild_version_data when faild to get repo bug settings
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
-rw-r--r--buildbot_gentoo_ci/steps/logs.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/buildbot_gentoo_ci/steps/logs.py b/buildbot_gentoo_ci/steps/logs.py
index f214ad6..a261dac 100644
--- a/buildbot_gentoo_ci/steps/logs.py
+++ b/buildbot_gentoo_ci/steps/logs.py
@@ -500,12 +500,20 @@ class SetupBugReportSteps(BuildStep):
def run(self):
self.gentooci = self.master.namedServices['services'].namedServices['gentooci']
bug_config = self.gentooci.config.project['bug_config']
- bug_settings_data = yield self.gentooci.db.projects.getBugsSettingsByProjectUuid(self.getProperty("project_data")['uuid'])
- project_repository_settings = yield self.gentooci.db.projects.getRepositorySettingByProjUuidAndRepoUuid(self.getProperty("project_data")['uuid'], self.getProperty('repository_data')['uuid'])
- # add bug enable profile and repo
make_bugreport = False
+ print(bug_config)
if bug_config['enable'] and self.getProperty('status') == 'failed' and self.getProperty('error_dict')['title_found'] and not self.getProperty('bgo'):
- if bug_settings_data['enable'] and project_repository_settings['bug']:
+ # add bug enable profile, repo and project
+ bug_settings_data = yield self.gentooci.db.projects.getBugsSettingsByProjectUuid(self.getProperty("project_data")['uuid'])
+ if self.getProperty('failed_version_data'):
+ version_data = self.getProperty('failed_version_data')
+ else:
+ version_data = self.getProperty("version_data")
+ package_data = yield self.gentooci.db.packages.getPackageByUuid(version_data['package_uuid'])
+ project_repository_settings = yield self.gentooci.db.projects.getRepositorySettingByProjUuidAndRepoUuid(self.getProperty("project_data")['uuid'], package_data['repository_uuid'])
+ print(bug_settings_data)
+ print(project_repository_settings)
+ if bug_settings_data['enabled'] and project_repository_settings['bug']:
make_bugreport = True
if make_bugreport:
aftersteps_list = []