Skip to content

Commit

Permalink
Rename sql query for clarity
Browse files Browse the repository at this point in the history
Signed-off-by: Crola1702 <[email protected]>
  • Loading branch information
Crola1702 committed Oct 9, 2024
1 parent 3ac406b commit 28a857f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SELECT *
SELECT job_name,
error_name
FROM test_fail_issues
WHERE github_issue = "@param1@"
GROUP BY github_issue,
Expand Down
2 changes: 1 addition & 1 deletion database/scripts/lib/buildfarm_tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 28a857f

Please sign in to comment.