Skip to content

Commit

Permalink
Add test data reporter to bisect
Browse files Browse the repository at this point in the history
  • Loading branch information
zarifmahfuz committed May 6, 2024
1 parent 7bb8625 commit 8a29265
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ruby/lib/minitest/queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def current_timestamp
def queue_reporters=(reporters)
@queue_reporters ||= []
Reporters.use!(((Reporters.reporters || []) - @queue_reporters) + reporters)
Minitest.backtrace_filter.add_filter(%r{exe/minitest-queue|lib/ci/queue/})
Minitest.backtrace_filter&.add_filter(%r{exe/minitest-queue|lib/ci/queue/})
@queue_reporters = reporters
end

Expand Down
4 changes: 4 additions & 0 deletions ruby/lib/minitest/queue/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ def bisect_command
load_tests
@queue = CI::Queue::Bisect.new(queue_url, queue_config)
Minitest.queue = queue
reporters = [
TestDataReporter.new(namespace: queue_config&.namespace),
]
Minitest.queue_reporters = reporters
populate_queue

step("Testing the failing test in isolation")
Expand Down

0 comments on commit 8a29265

Please sign in to comment.