rspec_trunk_flaky_tests 0.16.3-aarch64-linux-gnu → 0.17.0-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: 4c886036f87a2cb615e5e22afeb726a75cd2723df611e5fa71595855dd8fce9f
4
- data.tar.gz: b4d8b243853ca573c640abeb1acfda913ee7b268dc5a05172a7abdfc35ccdbb1
3
+ metadata.gz: fb7cebc6516c92130d27797b95a38584af93424386226d1dde50c3508d29a966
4
+ data.tar.gz: aeb10d087660c152507745a9cbdf90b766e2edcf3868ebef64a1f0bafe08202c
5
5
  SHA512:
6
- metadata.gz: c8b9b2f28b4b4d4c33f4a2466712ac91aae2c3ae54c3d668fef948dca0b6386f38052459bc3f0f9bc1ee7ad118d27e57487c2d0b89eafcaa219cb522d9ee60e9
7
- data.tar.gz: ac3969de9582612b329daecdd1e09e56d135dfd361e3d91be7804a6967f50570327eaf37a07688a03492c64931c117259e0ef5b3487d3cb2d25fe6577a78eace
6
+ metadata.gz: 5171b7dad07e790cd134d29c600094ed806d44228a23636e8effac0bc9b06888451fa640eda58e4e9b9d2a30c27dd3f09192a74951a013bb524f9ece268b0651
7
+ data.tar.gz: ffb04ce3d2ad2322c24351c4e4c8ccc923ddd67fc61880b856a5ded56d031a518ac397f4bfbf32ec46b4d1e53602d78e432f271190fe1b399e0fd3fa6f1c1e31
@@ -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)
@@ -72,6 +73,7 @@ module RSpec
72
73
  trunk_is_description_generated: :is_description_generated
73
74
  }.freeze
74
75
 
76
+ # trunk-ignore(rubocop/Metrics/ClassLength)
75
77
  class << self
76
78
  # The state for this RSpec process, or nil when Trunk is disabled.
77
79
  attr_reader :current_run
@@ -115,6 +117,10 @@ module RSpec
115
117
  ENV['TRUNK_QUARANTINE_QUERY_FAILURE_EXIT'] == 'true'
116
118
  end
117
119
 
120
+ def disable_quarantining?
121
+ ENV['TRUNK_DISABLE_QUARANTINING'] == 'true'
122
+ end
123
+
118
124
  def command_line
119
125
  "#{$PROGRAM_NAME} #{ARGV.join(' ')}"
120
126
  end
@@ -306,6 +312,7 @@ module RSpec
306
312
  def quarantine?(example, exception)
307
313
  # A replayed abort failure didn't happen on this attempt, so it can't be quarantined.
308
314
  return false if abort_failure(example).equal?(exception)
315
+ return false if Trunk.disable_quarantining?
309
316
 
310
317
  check_quarantine(example, exception)
311
318
  rescue StandardError => e
@@ -519,10 +526,13 @@ module RSpec
519
526
  add_test_case(notification.example) unless RSpec.configuration.dry_run?
520
527
  end
521
528
 
522
- # trunk-ignore(rubocop/Metrics/MethodLength,rubocop/Metrics/AbcSize)
529
+ # trunk-ignore(rubocop/Metrics/MethodLength,rubocop/Metrics/AbcSize,rubocop/Metrics/CyclomaticComplexity)
523
530
  def close(_notification)
524
531
  return if RSpec.configuration.dry_run?
525
532
 
533
+ if Trunk.disable_quarantining?
534
+ puts Colors.yellow('Note: TRUNK_DISABLE_QUARANTINING is set. Test failures were not quarantined.')
535
+ end
526
536
  if @run.quarantining_disabled?
527
537
  puts Colors.yellow('Note: Quarantining is disabled for this repo. Test failures were not quarantined.')
528
538
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_trunk_flaky_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.3
4
+ version: 0.17.0
5
5
  platform: aarch64-linux-gnu
6
6
  authors:
7
7
  - Trunk Technologies, Inc.