rspec_trunk_flaky_tests 0.16.2.pre.beta.4-aarch64-linux-gnu → 0.17.0.pre.beta.2-aarch64-linux-gnu

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: 0ca903837d133f8bc9697d02304aefd25b418c2354ddd4fa393c3d7e1f1e9e7c
4
- data.tar.gz: 64ada43427a7f3721dd09f6e3c784a24f5be71666f2a9ac1444aef01dd8c6ad5
3
+ metadata.gz: 72f75c3f6cd80c626b07095e76c7414ba866232a7ea923c888206be6cc17e4ab
4
+ data.tar.gz: 1c697060fd866b64f729c354f7edcfbe675792455d38201ff787b35469f0b4f4
5
5
  SHA512:
6
- metadata.gz: e41aff59fc85dce91107915b0a4856537cf6c64f8ae313a5ac576ea8630b4329c4c4f098330d968b043ff25fa8b0e87cc443feedcb8afb6b41d18cc4d554b32f
7
- data.tar.gz: c16d278a950e875c432b380e33bc7a87e3b4b86691eb0ef9d668faac449ab5be6987da446b336374e767826d4cf9b1746847090b12e6e274b318f2b75b9a0954
6
+ metadata.gz: bf7ca6f7141df658ac95711e56d62c702c584f2de0f1a24e1378dbe37f01884e67749e1e4cdba670166adc8b0176a517b94cfab22f9108b75075e31087265052
7
+ data.tar.gz: c9b9c1072f8196e672305773c29a1660f5fb63fce4ad0c255b084d18614bd180c0a1db9c3e8249ce085b9fbdccc8930406bedb052dfaced066f56cc592eb9d99
@@ -27,6 +27,7 @@
27
27
  # TRUNK_DRY_RUN - Set to 'true' to save bundle locally instead of uploading
28
28
  # TRUNK_USE_UNCLONED_REPO - Set to 'true' for uncloned repo mode
29
29
  # TRUNK_LOCAL_UPLOAD_DIR - Directory to save test results locally (disables upload)
30
+ # TRUNK_SUMMARY_OUTPUT_FILE - Path to write a JSON summary of the uploaded results to
30
31
  # TRUNK_QUARANTINED_TESTS_DISK_CACHE_TTL_SECS - Time to cache quarantined tests on disk (in seconds)
31
32
  # TRUNK_QUARANTINE_QUERY_FAILURE_EXIT - Set to 'true' to abort the RSpec run when quarantine
32
33
  # lookup fails (remaining examples are skipped)
@@ -63,6 +64,7 @@ module RSpec
63
64
  trunk_is_description_generated: :is_description_generated
64
65
  }.freeze
65
66
 
67
+ # trunk-ignore(rubocop/Metrics/ClassLength)
66
68
  class << self
67
69
  # The state for this RSpec process, or nil when Trunk is disabled.
68
70
  attr_reader :current_run
@@ -106,6 +108,10 @@ module RSpec
106
108
  ENV['TRUNK_QUARANTINE_QUERY_FAILURE_EXIT'] == 'true'
107
109
  end
108
110
 
111
+ def disable_quarantining?
112
+ ENV['TRUNK_DISABLE_QUARANTINING'] == 'true'
113
+ end
114
+
109
115
  def command_line
110
116
  "#{$PROGRAM_NAME} #{ARGV.join(' ')}"
111
117
  end
@@ -267,6 +273,7 @@ module RSpec
267
273
  def quarantine?(example, exception)
268
274
  # A replayed abort failure didn't happen on this attempt, so it can't be quarantined.
269
275
  return false if abort_failure(example).equal?(exception)
276
+ return false if Trunk.disable_quarantining?
270
277
 
271
278
  check_quarantine(example, exception)
272
279
  rescue StandardError => e
@@ -480,10 +487,13 @@ module RSpec
480
487
  add_test_case(notification.example) unless RSpec.configuration.dry_run?
481
488
  end
482
489
 
483
- # trunk-ignore(rubocop/Metrics/MethodLength,rubocop/Metrics/AbcSize)
490
+ # trunk-ignore(rubocop/Metrics/MethodLength,rubocop/Metrics/AbcSize,rubocop/Metrics/CyclomaticComplexity)
484
491
  def close(_notification)
485
492
  return if RSpec.configuration.dry_run?
486
493
 
494
+ if Trunk.disable_quarantining?
495
+ puts Colors.yellow('Note: TRUNK_DISABLE_QUARANTINING is set. Test failures were not quarantined.')
496
+ end
487
497
  if @run.quarantining_disabled?
488
498
  puts Colors.yellow('Note: Quarantining is disabled for this repo. Test failures were not quarantined.')
489
499
  end
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.16.2.pre.beta.4
4
+ version: 0.17.0.pre.beta.2
5
5
  platform: aarch64-linux-gnu
6
6
  authors:
7
7
  - Trunk Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-27 00:00:00.000000000 Z
11
+ date: 2026-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core