From f7c93392df6b36d646bc03638562a3015cbf8028 Mon Sep 17 00:00:00 2001 From: Crola1702 Date: Wed, 9 Oct 2024 09:16:42 -0500 Subject: [PATCH] Rename sql query for clarity Signed-off-by: Crola1702 --- ...et_known_issues_job_link.sql => get_known_issue_errors.sql} | 3 ++- database/scripts/lib/buildfarm_tools.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename database/scripts/{get_known_issues_job_link.sql => get_known_issue_errors.sql} (73%) diff --git a/database/scripts/get_known_issues_job_link.sql b/database/scripts/get_known_issue_errors.sql similarity index 73% rename from database/scripts/get_known_issues_job_link.sql rename to database/scripts/get_known_issue_errors.sql index b338f36..78de0fe 100644 --- a/database/scripts/get_known_issues_job_link.sql +++ b/database/scripts/get_known_issue_errors.sql @@ -1,4 +1,5 @@ -SELECT * +SELECT job_name, + error_name FROM test_fail_issues WHERE github_issue = "@param1@" GROUP BY github_issue, diff --git a/database/scripts/lib/buildfarm_tools.rb b/database/scripts/lib/buildfarm_tools.rb index b197f99..2585a5d 100644 --- a/database/scripts/lib/buildfarm_tools.rb +++ b/database/scripts/lib/buildfarm_tools.rb @@ -149,7 +149,7 @@ def self.test_regressions_known(sort_by: 'priority') end def self.issue_priority(issue_link) - sql_out = run_command('./sql_run.sh get_known_issues_job_link.sql', args: [issue_link]) + sql_out = run_command('./sql_run.sh get_known_issue_errors.sql', args: [issue_link]) errors = sql_out.map {|e| e['error_name']}.uniq jobs = sql_out.map {|e| e['job_name']}.uniq