diff --git a/docusaurus/docs/ruby/troubleshooting.mdx b/docusaurus/docs/ruby/troubleshooting.mdx index 5ead558e..47dca1be 100644 --- a/docusaurus/docs/ruby/troubleshooting.mdx +++ b/docusaurus/docs/ruby/troubleshooting.mdx @@ -105,6 +105,21 @@ Start logging 2 detected threads. Use the following backtrace(s) to find the line of code that got stuck if the CI node hung and terminated your tests. How to read the backtrace: https://knapsackpro.com/perma/ruby/backtrace-debugging +Hanging specs in the main thread: +# highlight-start +knapsack_pro-ruby/spec_integration/b_spec.rb:7:in `kill' +# highlight-end +knapsack_pro-ruby/spec_integration/b_spec.rb:7:in `block (3 levels) in ' + + +Non-main thread inspect: # +Hanging specs in non-main thread: +# highlight-start +knapsack_pro-ruby/spec_integration/a_spec.rb:6:in `sleep' +# highlight-end +knapsack_pro-ruby/spec_integration/a_spec.rb:6:in `block (3 levels) in ' + + Main thread backtrace: knapsack_pro-ruby/lib/knapsack_pro/runners/queue/base_runner.rb:83:in `backtrace' knapsack_pro-ruby/lib/knapsack_pro/runners/queue/base_runner.rb:83:in `block in log_threads' @@ -118,6 +133,7 @@ knapsack_pro-ruby/spec_integration/b_spec.rb:7:in `block (3 levels) in Non-main thread backtrace: # highlight-start