We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 171b8a0 + effc134 commit 8a27d24Copy full SHA for 8a27d24
1 file changed
tasks/retrieve_address_sanitizer_error.rb
@@ -18,14 +18,21 @@
18
require_relative '../config/setup'
19
20
CiJob
21
+ .left_outer_joins(:topotest_failures)
22
+ .joins(:stage)
23
+ .where(topotest_failures: { id: nil })
24
.where("ci_jobs.name LIKE '%AddressSanitizer%'")
25
.where(status: :failure)
26
+ .where(stage: { status: :failure })
27
+ .where('ci_jobs.created_at > ?', 6.month.ago)
28
.each do |job|
29
next if job.topotest_failures.any?
30
31
CiJob.transaction do
32
failures = Github::TopotestFailures::RetrieveError.new(job).retrieve
33
34
+ puts "Found #{failures.size} failures for job #{job.job_ref}"
35
+
36
next if failures.empty?
37
38
failures.each do |failure|
0 commit comments