From f0157a90ba3a155cc6a8b1d03d52b76c6aacf727 Mon Sep 17 00:00:00 2001 From: vsc46128 vscuser Date: Tue, 13 Feb 2024 15:28:46 +0100 Subject: [PATCH 1/2] fix for was calling wrong values --- tasks/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/build.py b/tasks/build.py index 1ce8e956..e6f493b9 100644 --- a/tasks/build.py +++ b/tasks/build.py @@ -794,7 +794,7 @@ def request_bot_build_issue_comments(repo_name, pr_number): first_line = comment['body'].split('\n')[0] arch_map = get_architecture_targets(cfg) for arch in arch_map.keys(): - target_arch = '/'.join(arch.split('/')[1:]) + target_arch = '/'.join(arch.split('/')[-1:]) if target_arch in first_line: status_table['arch'].append(target_arch) @@ -826,7 +826,7 @@ def request_bot_build_issue_comments(repo_name, pr_number): status_table['url'].append(comment['html_url']) if 'FAILURE' in row['comment']: status_table['result'].append(':cry: FAILURE') - elif 'SUCCESS' in value['comment']: + elif 'SUCCESS' in row['comment']: status_table['result'].append(':grin: SUCCESS') elif 'UNKNOWN' in row['comment']: status_table['result'].append(':shrug: UNKNOWN') From 0dc36501e903d6bc29f4db81ffe511f5c20c24dd Mon Sep 17 00:00:00 2001 From: Lara Ramona Peeters <49882639+laraPPr@users.noreply.github.com> Date: Tue, 13 Feb 2024 17:28:25 +0100 Subject: [PATCH 2/2] Update tasks/build.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Thomas Röblitz --- tasks/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/build.py b/tasks/build.py index e6f493b9..e35b3044 100644 --- a/tasks/build.py +++ b/tasks/build.py @@ -794,7 +794,7 @@ def request_bot_build_issue_comments(repo_name, pr_number): first_line = comment['body'].split('\n')[0] arch_map = get_architecture_targets(cfg) for arch in arch_map.keys(): - target_arch = '/'.join(arch.split('/')[-1:]) + target_arch = '/'.join(arch.split('/')[-1]) if target_arch in first_line: status_table['arch'].append(target_arch)