rspec_trunk_flaky_tests 0.7.8.pre.beta.0-arm64-darwin → 0.7.9-arm64-darwin

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: 388d76dc37478259b854351ae558e0505931c03615ed4287230a7d35d3e9bb2e
4
- data.tar.gz: d2cd59bf12c4056780e5ebbf1f70219ca6c528edce5013479234db1d808907d4
3
+ metadata.gz: a8bc3777961b57212d8138e13167cb27f4a1a5d0989db49e669805d5e2d321b8
4
+ data.tar.gz: cef7bd8586e93b4b639207f6dd3b8b96fa0941605dd63d11b25f2a49276a52d4
5
5
  SHA512:
6
- metadata.gz: 0cfc497d3088e4201e757523646b682be23add3206c0903016bcb0f1e143b7561e6e04d42e292df3cafe9cb3aa67981fa79d6df7356f1a2aed4ceeddd36de176
7
- data.tar.gz: 91deeaa8ba52e317b29a5d35b093306cd875b1322731b58da452f49420e25e506a7001571148307f58d33bfb113907796e172137af8bd156ef73a5871f6598cf
6
+ metadata.gz: abdcb3cc9231c2c2e21ecf07822fdd71898c38a3365f04be2f5d4826c7cf4ca68eedac6e50038c816c6b4c86b59e0d483c3e851437c11ee1a2370f1805c62561
7
+ data.tar.gz: 667258c6ac3d14c6fe83bb9419f5d8b1fdf4cfffbdbe9c9f5747d570289604a78e4522a31ed55462c5e7bee80a263a7816c0c8c9f8c47b60cfd0b2259bc51b03
@@ -47,7 +47,9 @@ module RSpec
47
47
  # decide if we want to fail the test or not
48
48
  # trunk-ignore(rubocop/Naming/AccessorMethodName,rubocop/Metrics/MethodLength,rubocop/Metrics/AbcSize)
49
49
  def set_exception(exception)
50
+ return set_exception_core(exception) if metadata[:pending]
50
51
  return set_exception_core(exception) if trunk_disabled
52
+ return set_exception_core(exception) if metadata[:retry_attempts]&.positive?
51
53
 
52
54
  id = generate_trunk_id
53
55
  name = full_description
@@ -158,7 +160,7 @@ class TrunkAnalyticsListener
158
160
  finished_at = example.execution_result.finished_at.to_i
159
161
  id = example.generate_trunk_id
160
162
 
161
- attempt_number = example.metadata[:attempt_number] || 0
163
+ attempt_number = example.metadata[:retry_attempts] || example.metadata[:attempt_number] || 0
162
164
  status = example.execution_result.status.to_s
163
165
  # set the status to failure, but mark it as quarantined
164
166
  is_quarantined = example.metadata[:quarantined_exception] ? true : false
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.7.8.pre.beta.0
4
+ version: 0.7.9
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Trunk Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-15 00:00:00.000000000 Z
11
+ date: 2025-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core