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 +4 -4
- data/lib/rspec_trunk_flaky_tests/3.1/rspec_trunk_flaky_tests.so +0 -0
- data/lib/rspec_trunk_flaky_tests/3.2/rspec_trunk_flaky_tests.so +0 -0
- data/lib/rspec_trunk_flaky_tests/3.3/rspec_trunk_flaky_tests.so +0 -0
- data/lib/rspec_trunk_flaky_tests/3.4/rspec_trunk_flaky_tests.so +0 -0
- data/lib/rspec_trunk_flaky_tests/4.0/rspec_trunk_flaky_tests.so +0 -0
- data/lib/trunk_spec_helper.rb +11 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb7cebc6516c92130d27797b95a38584af93424386226d1dde50c3508d29a966
|
|
4
|
+
data.tar.gz: aeb10d087660c152507745a9cbdf90b766e2edcf3868ebef64a1f0bafe08202c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5171b7dad07e790cd134d29c600094ed806d44228a23636e8effac0bc9b06888451fa640eda58e4e9b9d2a30c27dd3f09192a74951a013bb524f9ece268b0651
|
|
7
|
+
data.tar.gz: ffb04ce3d2ad2322c24351c4e4c8ccc923ddd67fc61880b856a5ded56d031a518ac397f4bfbf32ec46b4d1e53602d78e432f271190fe1b399e0fd3fa6f1c1e31
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/trunk_spec_helper.rb
CHANGED
|
@@ -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
|