diff --git a/ruby/lib/ci/queue/redis/base.rb b/ruby/lib/ci/queue/redis/base.rb index f8bba79e..a1bda9ec 100644 --- a/ruby/lib/ci/queue/redis/base.rb +++ b/ruby/lib/ci/queue/redis/base.rb @@ -80,6 +80,7 @@ def queue_initializing? end def increment_test_failed + puts "---- increment test failed" redis.incr(key('test_failed_count')) end diff --git a/ruby/lib/minitest/queue/build_status_recorder.rb b/ruby/lib/minitest/queue/build_status_recorder.rb index abe8911e..870181d1 100644 --- a/ruby/lib/minitest/queue/build_status_recorder.rb +++ b/ruby/lib/minitest/queue/build_status_recorder.rb @@ -43,13 +43,16 @@ def record(test) elsif test.skipped? self.skips += 1 elsif test.error? + puts "--- increment error" self.errors += 1 elsif test.failure + puts "--- increment failure" self.failures += 1 end stats = COUNTERS.zip(COUNTERS.map { |c| send(c) }).to_h if (test.failure || test.error?) && !test.skipped? + puts "--- recording error" build.record_error("#{test.klass}##{test.name}", dump(test), stats: stats) else build.record_success("#{test.klass}##{test.name}", stats: stats, skip_flaky_record: test.skipped?) diff --git a/ruby/lib/minitest/queue/runner.rb b/ruby/lib/minitest/queue/runner.rb index bd79f1ac..2250fcfd 100644 --- a/ruby/lib/minitest/queue/runner.rb +++ b/ruby/lib/minitest/queue/runner.rb @@ -238,10 +238,12 @@ def report_command puts failures puts "----" File.write(queue_config.failure_file, failures) + + reporter.report end puts('Encountered too many failed tests. Test run was ended early.') - abort!(msg) + # abort!(msg) else abort!(msg) end