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