rspec_trunk_flaky_tests 0.12.10.pre.beta.3-arm64-darwin → 0.12.11.pre.beta.1-arm64-darwin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d5fb62306ece61030acf4f61cc23df5d96e619afc259e01c26664e69309080a
4
- data.tar.gz: 7344f3305bb1751b0c7e9da6fc88de255ffdc2db89f34f68c075d6e4ec9c7965
3
+ metadata.gz: 76cec160cf0eb7e577cbe766ab685380c613fd1f750df2824a667fdde90d8294
4
+ data.tar.gz: e76ed08e4b4ad9f1b90a8f5d74ad933e4b52f168b72a6f7cc6972b01c7bc0c69
5
5
  SHA512:
6
- metadata.gz: fc012914d8d9593e34aded61a6c44306626ef4dc72b1ffb242c1a9910f50888e625fa0f15e0e8e74a01b50617699fff0e6c9f747eae8462bd34467c396d600cc
7
- data.tar.gz: c211acc8e195691d7c58c1296aa0628f550fce64757df76b12d6f87d232c6b00e150d0839d36f1ef53d70c0307511bcad24e06c18996e3e088e0841026d10786
6
+ metadata.gz: 1d45ea3a12044a2a4802cdb3655a12fcb5d33195882e676aaf5f85788809da018e78b33c2049459916302d173cf544817d2e488dca125a67a88fe2a163165255
7
+ data.tar.gz: 7a92e03872f54beb28a5e8a195e4d1f63771f1f05e36ae881796910c2b50d312cccf4aafa2f5b2c72ffc6110fe246b96a267592deb05ec7e7989a4824c974538
@@ -34,6 +34,8 @@ require 'rspec/core/formatters/exception_presenter'
34
34
  require 'time'
35
35
  require 'rspec_trunk_flaky_tests'
36
36
 
37
+ # trunk-ignore-all(rubocop/Style/GlobalVars)
38
+
37
39
  # String is an override to the main String class that is used to colorize the output
38
40
  # it is used to make the output more readable
39
41
  class String
@@ -85,6 +87,7 @@ end
85
87
  # we want to cache the test report in memory so we can add to it as we go and reduce the number of API calls
86
88
  $test_report = TestReport.new('rspec', "#{$PROGRAM_NAME} #{ARGV.join(' ')}", nil)
87
89
  $failure_encountered_and_quarantining_disabled = false
90
+ $failure_encountered_and_quarantine_lookup_failed = false
88
91
 
89
92
  module RSpec
90
93
  module Core
@@ -105,7 +108,7 @@ module RSpec
105
108
  handle_quarantine_check(exception)
106
109
  end
107
110
 
108
- # trunk-ignore(rubocop/Metrics/AbcSize,rubocop/Metrics/MethodLength)
111
+ # trunk-ignore(rubocop/Metrics/AbcSize,rubocop/Metrics/MethodLength,rubocop/Metrics/CyclomaticComplexity)
109
112
  def handle_quarantine_check(exception)
110
113
  id = generate_trunk_id
111
114
  name = full_description
@@ -117,7 +120,14 @@ module RSpec
117
120
  puts "Test failed, checking if it can be quarantined: `#{location}`".yellow
118
121
  end
119
122
  is_quarantined_result = $test_report.is_quarantined(id, name, parent_name, classname, file)
120
- if is_quarantined_result.quarantining_disabled_for_repo
123
+
124
+ if is_quarantined_result.quarantine_lookup_failed
125
+ unless $failure_encountered_and_quarantine_lookup_failed
126
+ puts 'Failed to check quarantining status, no failures will be quarantined'.yellow
127
+ $failure_encountered_and_quarantine_lookup_failed = true
128
+ end
129
+ set_exception_core(exception)
130
+ elsif is_quarantined_result.quarantining_disabled_for_repo
121
131
  unless $failure_encountered_and_quarantining_disabled
122
132
  puts 'Quarantining is disabled for this repo, no failures will be quarantined'.yellow
123
133
  $failure_encountered_and_quarantining_disabled = true
@@ -287,11 +297,15 @@ class TrunkAnalyticsListener
287
297
  add_test_case(notification.example)
288
298
  end
289
299
 
290
- # trunk-ignore(rubocop/Metrics/MethodLength)
300
+ # trunk-ignore(rubocop/Metrics/MethodLength,rubocop/Metrics/AbcSize)
291
301
  def close(_notification)
292
302
  if $failure_encountered_and_quarantining_disabled
293
303
  puts 'Note: Quarantining is disabled for this repo. Test failures were not quarantined.'.yellow
294
304
  end
305
+ if $failure_encountered_and_quarantine_lookup_failed
306
+ puts 'Note: Failed to check quarantining status. Test failures were not quarantined.'.yellow
307
+ end
308
+
295
309
  if ENV['TRUNK_LOCAL_UPLOAD_DIR']
296
310
  saved = @testreport.try_save(ENV['TRUNK_LOCAL_UPLOAD_DIR'])
297
311
  if saved
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_trunk_flaky_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.10.pre.beta.3
4
+ version: 0.12.11.pre.beta.1
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Trunk Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-13 00:00:00.000000000 Z
11
+ date: 2026-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core