rspec_trunk_flaky_tests 0.7.7-arm64-darwin → 0.7.8.pre.beta.1-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 +4 -4
- data/lib/context_ruby/3.0/context_ruby.bundle +0 -0
- data/lib/context_ruby/3.1/context_ruby.bundle +0 -0
- data/lib/context_ruby/3.2/context_ruby.bundle +0 -0
- data/lib/context_ruby/3.3/context_ruby.bundle +0 -0
- data/lib/context_ruby/3.4/context_ruby.bundle +0 -0
- data/lib/trunk_spec_helper.rb +2 -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: 9e08aa52b3905a76e950e02214274a0cadb8c11d3f2008e4ebc403a3d8a885bf
|
4
|
+
data.tar.gz: 3b13ba18581d18357881cc9b2dcca9b226d6fbc83e4a6032296f7b60c1e3edf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 585606636521b4ad5b1a6c5e264c0d9c2e970249e5a8c7399009c546649606d2d223d7ffd2c21be1140dc3299b427d690dcf3aa8e437ad9bd0e8794d4f7a123d
|
7
|
+
data.tar.gz: 7ea36d73347a9a9f441b4e0f107d83be1730f035c33b84bb3943ce90756d01944aa6230ead01476a6ce0429b5e767bdd1c04c877f7bc36aecbc473df8b82a72a
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/trunk_spec_helper.rb
CHANGED
@@ -48,6 +48,7 @@ module RSpec
|
|
48
48
|
# trunk-ignore(rubocop/Naming/AccessorMethodName,rubocop/Metrics/MethodLength,rubocop/Metrics/AbcSize)
|
49
49
|
def set_exception(exception)
|
50
50
|
return set_exception_core(exception) if trunk_disabled
|
51
|
+
return set_exception_core(exception) if metadata[:retry_attempts]&.positive?
|
51
52
|
|
52
53
|
id = generate_trunk_id
|
53
54
|
name = full_description
|
@@ -158,7 +159,7 @@ class TrunkAnalyticsListener
|
|
158
159
|
finished_at = example.execution_result.finished_at.to_i
|
159
160
|
id = example.generate_trunk_id
|
160
161
|
|
161
|
-
attempt_number = example.metadata[:attempt_number] || 0
|
162
|
+
attempt_number = example.metadata[:retry_attempts] || example.metadata[:attempt_number] || 0
|
162
163
|
status = example.execution_result.status.to_s
|
163
164
|
# set the status to failure, but mark it as quarantined
|
164
165
|
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.
|
4
|
+
version: 0.7.8.pre.beta.1
|
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-
|
11
|
+
date: 2025-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|