rspec_trunk_flaky_tests 0.12.1.pre.beta.0-x86_64-linux → 0.12.1.pre.beta.1-x86_64-linux
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.0/rspec_trunk_flaky_tests.so +0 -0
- 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/trunk_spec_helper.rb +14 -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: 69b6f495642ca00163b780013fe49efe73e50c7afe0bd109df4736144ab10cb9
|
|
4
|
+
data.tar.gz: 19b92f2600ea7d4d091279b0b6c000523e64a8fcd36842f99662974af7f6aa08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ea570a8a348adace35c11c0a7095c7bd7649bd3463a09207a7848a536015982c4b18ad5568e026205774bcfe2a17f6151cbdf54f3c35bf80112d3f6c128e9ef
|
|
7
|
+
data.tar.gz: c54719ab49a96fb34f1f562970c59eb4dac94aeb5eec7ae8ca2fb744440bef35689a769e1489a4421d0f4eb63806481b0b7bf4037cec3b036a89bc04f21d209f
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/trunk_spec_helper.rb
CHANGED
|
@@ -55,8 +55,21 @@ def escape(str)
|
|
|
55
55
|
str.dump[1..-2]
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
# Knapsack example detector instantiates all test cases in order to determine how to shard them
|
|
59
|
+
# These instantiations should not generate test bundles, so we
|
|
60
|
+
# disable the gem when running under knapsack_pro:rspec_test_example_detector
|
|
61
|
+
def knapsack_detector_mode?
|
|
62
|
+
knapsack_detector_command?
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def knapsack_detector_command?
|
|
66
|
+
command_line = "#{$PROGRAM_NAME} #{ARGV.join(' ')}".strip
|
|
67
|
+
command_line.include?('knapsack_pro:rspec_test_example_detector')
|
|
68
|
+
end
|
|
69
|
+
|
|
58
70
|
def trunk_disabled
|
|
59
|
-
ENV['DISABLE_RSPEC_TRUNK_FLAKY_TESTS'] == 'true' ||
|
|
71
|
+
knapsack_detector_mode? || ENV['DISABLE_RSPEC_TRUNK_FLAKY_TESTS'] == 'true' ||
|
|
72
|
+
ENV['TRUNK_ORG_URL_SLUG'].nil? || ENV['TRUNK_API_TOKEN'].nil?
|
|
60
73
|
end
|
|
61
74
|
|
|
62
75
|
# we want to cache the test report so we can add to it as we go and reduce the number of API calls
|
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.1.pre.beta.
|
|
4
|
+
version: 0.12.1.pre.beta.1
|
|
5
5
|
platform: x86_64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Trunk Technologies, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec-core
|