Skip to content

Commit

Permalink
Hotfix: flaky tests details format (summary newline)
Browse files Browse the repository at this point in the history
Signed-off-by: Crola1702 <[email protected]>
  • Loading branch information
Crola1702 committed Jul 31, 2024
1 parent 6a3d7d4 commit 14d6835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/scripts/lib/report_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def self.test_regressions_flaky(tr_array)
errors.map! { |e| "<li>#{e}</li>" }

jobs_str = "<ul>#{jobs.join}</ul>"
jobs_str = "<details><summary>#{jobs.size} items</summary>\n#{jobs_str}</details>" if jobs.size >= 10
jobs_str = "<details><summary>#{jobs.size} items</summary>#{jobs_str}</details>" if jobs.size >= 10

errors_str = "<ul>#{errors.join}</ul>"
errors_str = "<details><summary>#{errors.size} items</summary>\n#{errors_str}</details>" if errors.size >= 10
errors_str = "<details><summary>#{errors.size} items</summary>#{errors_str}</details>" if errors.size >= 10

if reports.size > 0
reports_str = reports.uniq.map { |e| "<li>`#{e['github_issue']}` (#{e['status'].capitalize})</li>"}.join
Expand Down

0 comments on commit 14d6835

Please sign in to comment.