Skip to content

Commit

Permalink
Merge branch 'master' into feature/rvm
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoMNardi authored Aug 19, 2024
2 parents f256979 + 8a27d24 commit 1d5d1ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/retrieve_address_sanitizer_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,21 @@
require_relative '../config/setup'

CiJob
.left_outer_joins(:topotest_failures)
.joins(:stage)
.where(topotest_failures: { id: nil })
.where("ci_jobs.name LIKE '%AddressSanitizer%'")
.where(status: :failure)
.where(stage: { status: :failure })
.where('ci_jobs.created_at > ?', 6.month.ago)
.each do |job|
next if job.topotest_failures.any?

CiJob.transaction do
failures = Github::TopotestFailures::RetrieveError.new(job).retrieve

puts "Found #{failures.size} failures for job #{job.job_ref}"

next if failures.empty?

failures.each do |failure|
Expand Down

0 comments on commit 1d5d1ea

Please sign in to comment.