Skip to content

Commit

Permalink
Merge pull request #91 from RodrigoMNardi/bug/retrieve_address_saniti…
Browse files Browse the repository at this point in the history
…zer_errors

Retrieve AddresSanitizer Error
  • Loading branch information
RodrigoMNardi authored Aug 19, 2024
2 parents 171b8a0 + effc134 commit 8a27d24
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 8a27d24

Please sign in to comment.