rspec_trunk_flaky_tests 0.12.1.pre.beta.0-aarch64-linux → 0.12.2.pre.beta.0-aarch64-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: 16a8a051f321cffb3d3d7f648cec60c8737d51643e053b55060de65c6586365f
4
- data.tar.gz: 476e3cb58bd4b0bd0597fd0a2577e13e225e9038ea0f36baa5bd6a76764a13db
3
+ metadata.gz: f6a585d56cfae8c7d3b5027093ea9355edda07a4b1eb5ff4229dadac6b3a6736
4
+ data.tar.gz: ef18f3d3dfecc18aa4e4e9e239e164daddbb4808372602ab3104b01e84e91cd5
5
5
  SHA512:
6
- metadata.gz: 8fa4f6afe3847dd0d11a9aa2e56d76c00127c891c8dd54d6f5313da12b462209058d8f093eb138e020dfef3b03f953714efee69f8fd8c947bf7c7c693b52090e
7
- data.tar.gz: 29c6733ce3eaec1e68c622f758ab0c1dd6f111406f5b94257cd97686338498b57e4a211467c069de6cd23d8e0d9849515cbd7c89956c4ebb737eceaed1f52068
6
+ metadata.gz: 90d44be1b353ffe89a523d64515c6167631cde1568c056ecc84323a0347563b3c98154124cf2e1d19e8c19286ea5f703ff49da9deb81db7871a6d1db903b59d1
7
+ data.tar.gz: '098ac916d5a0de60f6391d8011098b44338acc5881b034112ef66865f9f0e9edfcdf9d8e23b9d194185253efa1fa3b81cea84aaca2d3b43c0e0f8d77ed011a5e'
@@ -25,6 +25,7 @@
25
25
  # TRUNK_DRY_RUN - Set to 'true' to save bundle locally instead of uploading
26
26
  # TRUNK_USE_UNCLONED_REPO - Set to 'true' for uncloned repo mode
27
27
  # TRUNK_LOCAL_UPLOAD_DIR - Directory to save test results locally (disables upload)
28
+ # TRUNK_QUARANTINED_TESTS_DISK_CACHE_TTL_SECS - Time to cache quarantined tests on disk (in seconds)
28
29
  # DISABLE_RSPEC_TRUNK_FLAKY_TESTS - Set to 'true' to completely disable Trunk
29
30
  #
30
31
  require 'rspec/core'
@@ -55,11 +56,24 @@ def escape(str)
55
56
  str.dump[1..-2]
56
57
  end
57
58
 
59
+ # Knapsack example detector instantiates all test cases in order to determine how to shard them
60
+ # These instantiations should not generate test bundles, so we
61
+ # disable the gem when running under knapsack_pro:rspec_test_example_detector
62
+ def knapsack_detector_mode?
63
+ knapsack_detector_command?
64
+ end
65
+
66
+ def knapsack_detector_command?
67
+ command_line = "#{$PROGRAM_NAME} #{ARGV.join(' ')}".strip
68
+ command_line.include?('knapsack_pro:rspec_test_example_detector')
69
+ end
70
+
58
71
  def trunk_disabled
59
- ENV['DISABLE_RSPEC_TRUNK_FLAKY_TESTS'] == 'true' || ENV['TRUNK_ORG_URL_SLUG'].nil? || ENV['TRUNK_API_TOKEN'].nil?
72
+ knapsack_detector_mode? || ENV['DISABLE_RSPEC_TRUNK_FLAKY_TESTS'] == 'true' ||
73
+ ENV['TRUNK_ORG_URL_SLUG'].nil? || ENV['TRUNK_API_TOKEN'].nil?
60
74
  end
61
75
 
62
- # we want to cache the test report so we can add to it as we go and reduce the number of API calls
76
+ # we want to cache the test report in memory so we can add to it as we go and reduce the number of API calls
63
77
  $test_report = TestReport.new('rspec', "#{$PROGRAM_NAME} #{ARGV.join(' ')}", nil)
64
78
 
65
79
  module RSpec
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.2.pre.beta.0
5
5
  platform: aarch64-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-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core