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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22751526a1a925e71bc70f654ae75f036f990c70fd8cb05113ffd5eb711cd09f
4
- data.tar.gz: 89bbffe5e1e7ff3a744d0969f2a679b244a4cb003f8fced92d30b46246fd8b80
3
+ metadata.gz: 69b6f495642ca00163b780013fe49efe73e50c7afe0bd109df4736144ab10cb9
4
+ data.tar.gz: 19b92f2600ea7d4d091279b0b6c000523e64a8fcd36842f99662974af7f6aa08
5
5
  SHA512:
6
- metadata.gz: 1e6e9dbe34a1e2d16a390921f9b9c90da8b4f4de246659543033de968c94a23ab03f6dcd7e11bf5bac1dcc8c36387373f521a57c2d781ae347cae92a62a85764
7
- data.tar.gz: e670b872d4bd2b3558825a45618d2980f2de4f09ace00b543d6f120123f980309ebdea0cd5913ea1a47eb774a87d2ce53e44a7c1d7e44f149b81b5ffe09f63e4
6
+ metadata.gz: 3ea570a8a348adace35c11c0a7095c7bd7649bd3463a09207a7848a536015982c4b18ad5568e026205774bcfe2a17f6151cbdf54f3c35bf80112d3f6c128e9ef
7
+ data.tar.gz: c54719ab49a96fb34f1f562970c59eb4dac94aeb5eec7ae8ca2fb744440bef35689a769e1489a4421d0f4eb63806481b0b7bf4037cec3b036a89bc04f21d209f
@@ -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' || ENV['TRUNK_ORG_URL_SLUG'].nil? || ENV['TRUNK_API_TOKEN'].nil?
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2025-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core