rspec_trunk_flaky_tests 0.16.2.pre.beta.4-x86_64-linux-gnu → 0.17.0.pre.beta.2-x86_64-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 +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d4226de4ce56f5458aded60231c18d994e22543c93f25f101118e7088689b8c
|
|
4
|
+
data.tar.gz: 7380dca95e411cc04e384bdd3fdcfc68064f4e249aff71025e30dee3a5af8a2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79827358c345b6d2172f9266e8db146c29742783da7737d7f0ec838f48215ea05d00b197bdf10e550f21f19636f0faf10fdd2f1f21ae7f76284bde3065d1de77
|
|
7
|
+
data.tar.gz: '02826f6858f5df95599c17588030797d5b32ed805fc635fd86b968a0a413ca4853e5372042eb00340bc10ee38f58f555b521772becee89af9e3f40c1d320141c'
|
|
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)
|
|
@@ -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.
|
|
4
|
+
version: 0.17.0.pre.beta.2
|
|
5
5
|
platform: x86_64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- Trunk Technologies, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec-core
|