knapsack_pro 7.7.0 → 7.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d9f69e3b0bb57140c1efc90528f7151a7cee10998ec84fe8c87b46767a08aa7
4
- data.tar.gz: 5a60c75f51c4909352c022eb74626c831c514ba644f3da5a368a26f2838487bc
3
+ metadata.gz: 9ef08fdcb6733ab55c27b8950c057f60798399e6af3ca535fcd8a9e7982b9c29
4
+ data.tar.gz: 43e412bce3cab199ff2beaf9218f0c0b3ad8f8ac8998b3a3081b3dfaf8aacdde
5
5
  SHA512:
6
- metadata.gz: 93725a31ebe826cfc133f717d02d22d502ab989eaabd7972f0955d32358301685cb3475b18714df69a77be4c04c5fc59dce7fcdc39556b9fd5d070978153a2b4
7
- data.tar.gz: 667419cf885ebd7ee1d18420d002d4ad752d973399fb3a980321cbfb0dd41415865445851add3d7641023a05499369dd83c10fadb56171a39c08fa8a991f2b03
6
+ metadata.gz: 1e57cf0ed3ee020aa241ac13eb70b4e559fec9fece0b80d316ee832b16e52ad4711953a02aa86a576a3e67e89d200c50d22d6aa33f50280f71ff4a9f925c14f1
7
+ data.tar.gz: ceb0f1f95f900f2f243fcb5ddf8698fe5a9f213f115bcf3fd05bdb12bcc332d750ceabc01c790b2a67e56facf2868e05a9fa46da51a0d5e405849725c6b0d8ba
data/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Changelog
2
2
 
3
- ### UNRELEASED
3
+ ### 7.8.1
4
+
5
+ * Handle `nil` in `Thread#backtrace` and `Exception#backtrace`.
6
+
7
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/272
8
+
9
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v7.8.0...v7.8.1
10
+
11
+ ### 7.8.0
12
+
13
+ * Add a link to help you read the backtrace.
14
+
15
+ https://github.com/KnapsackPro/knapsack_pro-ruby/pull/267
16
+
17
+ https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v7.7.0...v7.8.0
4
18
 
5
19
  ### 7.7.0
6
20
 
@@ -71,6 +71,7 @@ module KnapsackPro
71
71
  puts '=' * 80
72
72
  puts "Start logging #{threads.count} detected threads."
73
73
  puts 'Use the following backtrace(s) to find the line of code that got stuck if the CI node hung and terminated your tests.'
74
+ puts 'How to read the backtrace: https://knapsackpro.com/perma/ruby/backtrace-debugging'
74
75
 
75
76
  threads.each do |thread|
76
77
  puts
@@ -80,7 +81,7 @@ module KnapsackPro
80
81
  puts "Non-main thread inspect: #{thread.inspect}"
81
82
  puts "Non-main thread backtrace:"
82
83
  end
83
- puts thread.backtrace.join("\n")
84
+ puts thread.backtrace&.join("\n")
84
85
  puts
85
86
  end
86
87
 
@@ -58,7 +58,7 @@ module KnapsackPro
58
58
  rescue Exception => exception
59
59
  KnapsackPro.logger.error("An unexpected exception happened. RSpec cannot handle it. The exception: #{exception.inspect}")
60
60
  KnapsackPro.logger.error("Exception message: #{exception.message}")
61
- KnapsackPro.logger.error("Exception backtrace: #{exception.backtrace.join("\n")}")
61
+ KnapsackPro.logger.error("Exception backtrace: #{exception.backtrace&.join("\n")}")
62
62
 
63
63
  message = @rspec_pure.exit_summary(unexecuted_test_files)
64
64
  KnapsackPro.logger.warn(message) if message
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KnapsackPro
4
- VERSION = '7.7.0'
4
+ VERSION = '7.8.1'
5
5
  end
@@ -1322,6 +1322,8 @@ describe "#{KnapsackPro::Runners::Queue::RSpecRunner} - Integration tests", :cle
1322
1322
  Thread.new do
1323
1323
  sleep 10
1324
1324
  end
1325
+
1326
+ sleep 1 # wait for the above async thread to start
1325
1327
  end
1326
1328
  end
1327
1329
  SPEC
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knapsack_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.7.0
4
+ version: 7.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ArturT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-07 00:00:00.000000000 Z
11
+ date: 2024-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -415,7 +415,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
415
415
  - !ruby/object:Gem::Version
416
416
  version: '0'
417
417
  requirements: []
418
- rubygems_version: 3.5.11
418
+ rubygems_version: 3.5.16
419
419
  signing_key:
420
420
  specification_version: 4
421
421
  summary: Knapsack Pro splits tests across parallel CI nodes and ensures each parallel