Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ruby/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ci-queue (0.85.0)
ci-queue (0.86.0)
logger

GEM
Expand Down
2 changes: 1 addition & 1 deletion ruby/lib/ci/queue/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module CI
module Queue
VERSION = '0.85.0'
VERSION = '0.86.0'
DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
end
Expand Down
9 changes: 9 additions & 0 deletions ruby/lib/minitest/queue/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ def run_command
# minitest/autorun's at_exit hook, which may not be registered since
# test files haven't been loaded yet. exit! prevents double-execution
# if minitest/autorun was loaded by the leader during streaming.
#
# Re-check exhausted? after booting: slow workers may arrive after the queue
# has been fully drained by faster workers. In that case exit cleanly (0)
# rather than letting Minitest return false for a 0-test run.
if queue.rescue_connection_errors { queue.exhausted? }
puts green('All tests were ran already')
verify_reporters!(reporters)
exit!(0)
end
passed = Minitest.run []
verify_reporters!(reporters)
exit!(passed ? 0 : 1)
Expand Down
Loading