minitest-mergify 2026.11.7 → 2026.11.9
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/THIRD_PARTY_LICENSES +11 -10
- data/lib/mergify/minitest/plugin.rb +10 -2
- data/lib/mergify/minitest/reruns.rb +1 -1
- data/lib/mergify/minitest/retries.rb +31 -9
- data/lib/mergify/minitest/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '06006382c18c6627be5076d545d6d4888060ef6c34f0cfed7c61182fc2c67717'
|
|
4
|
+
data.tar.gz: 8c54b27eb12b252d3e445d26092defd1f7470229390946a7ef0838bbc449af37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b30b2b8e60c9cd21a50f1168883ae05eff2cf31e35bece5a7bef2bea4b3a901d0e15777edbc7c2333155990c59b96a345cde8cef1f7a979ae1436f27025ae74d
|
|
7
|
+
data.tar.gz: 16d9114fb72514da36f17a54c1945121df6affc9e5b1cada3bc289345345b193b9b20fc99db306da221a675c26734b1e63480d2a54b80595a5485be66a887748
|
data/THIRD_PARTY_LICENSES
CHANGED
|
@@ -8,7 +8,7 @@ The source code of each component is available from the repository listed
|
|
|
8
8
|
next to it, as the Mozilla Public License 2.0 requires for the components
|
|
9
9
|
under it.
|
|
10
10
|
|
|
11
|
-
Apache License 2.0 (
|
|
11
|
+
Apache License 2.0 (247)
|
|
12
12
|
MIT License (75)
|
|
13
13
|
Unicode License v3 (19)
|
|
14
14
|
BSD 3-Clause "New" or "Revised" License (5)
|
|
@@ -4886,6 +4886,7 @@ Used by:
|
|
|
4886
4886
|
- async-signal 0.2.14 (https://github.com/smol-rs/async-signal)
|
|
4887
4887
|
- async-task 4.7.1 (https://github.com/smol-rs/async-task)
|
|
4888
4888
|
- atomic-waker 1.1.2 (https://github.com/smol-rs/atomic-waker)
|
|
4889
|
+
- base64 0.22.1 (https://github.com/marshallpierce/rust-base64)
|
|
4889
4890
|
- base64 0.23.1 (https://github.com/marshallpierce/rust-base64)
|
|
4890
4891
|
- bitflags 2.13.1 (https://github.com/bitflags/bitflags)
|
|
4891
4892
|
- blocking 1.7.0 (https://github.com/smol-rs/blocking)
|
|
@@ -4938,8 +4939,8 @@ Used by:
|
|
|
4938
4939
|
- percent-encoding 2.3.2 (https://github.com/servo/rust-url/)
|
|
4939
4940
|
- piper 0.2.5 (https://github.com/smol-rs/piper)
|
|
4940
4941
|
- polling 3.11.0 (https://github.com/smol-rs/polling)
|
|
4941
|
-
- prost-derive 0.14.
|
|
4942
|
-
- prost 0.14.
|
|
4942
|
+
- prost-derive 0.14.6 (https://github.com/tokio-rs/prost)
|
|
4943
|
+
- prost 0.14.6 (https://github.com/tokio-rs/prost)
|
|
4943
4944
|
- regex-automata 0.4.18 (https://github.com/rust-lang/regex)
|
|
4944
4945
|
- regex-syntax 0.8.11 (https://github.com/rust-lang/regex)
|
|
4945
4946
|
- regex 1.13.1 (https://github.com/rust-lang/regex)
|
|
@@ -8863,7 +8864,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
8863
8864
|
Community Data License Agreement Permissive 2.0 (CDLA-Permissive-2.0)
|
|
8864
8865
|
|
|
8865
8866
|
Used by:
|
|
8866
|
-
- webpki-root-certs 1.0.
|
|
8867
|
+
- webpki-root-certs 1.0.12 (https://github.com/rustls/webpki-roots)
|
|
8867
8868
|
|
|
8868
8869
|
# Community Data License Agreement - Permissive - Version 2.0
|
|
8869
8870
|
|
|
@@ -10332,10 +10333,10 @@ SOFTWARE.
|
|
|
10332
10333
|
MIT License (MIT)
|
|
10333
10334
|
|
|
10334
10335
|
Used by:
|
|
10335
|
-
- jsonschema-regex 0.61.
|
|
10336
|
-
- jsonschema-value 0.61.
|
|
10337
|
-
- jsonschema 0.61.
|
|
10338
|
-
- referencing 0.61.
|
|
10336
|
+
- jsonschema-regex 0.61.2 (https://github.com/Stranger6667/jsonschema)
|
|
10337
|
+
- jsonschema-value 0.61.2 (https://github.com/Stranger6667/jsonschema)
|
|
10338
|
+
- jsonschema 0.61.2 (https://github.com/Stranger6667/jsonschema)
|
|
10339
|
+
- referencing 0.61.2 (https://github.com/Stranger6667/jsonschema)
|
|
10339
10340
|
|
|
10340
10341
|
MIT License
|
|
10341
10342
|
|
|
@@ -10367,7 +10368,7 @@ Used by:
|
|
|
10367
10368
|
- napi-derive-backend 7.0.0 (https://github.com/napi-rs/napi-rs)
|
|
10368
10369
|
- napi-derive 3.7.0 (https://github.com/napi-rs/napi-rs)
|
|
10369
10370
|
- napi-sys 3.4.1 (https://github.com/napi-rs/napi-rs)
|
|
10370
|
-
- napi 3.16.
|
|
10371
|
+
- napi 3.16.2 (https://github.com/napi-rs/napi-rs)
|
|
10371
10372
|
|
|
10372
10373
|
MIT License
|
|
10373
10374
|
|
|
@@ -10707,7 +10708,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
10707
10708
|
MIT License (MIT)
|
|
10708
10709
|
|
|
10709
10710
|
Used by:
|
|
10710
|
-
- fancy-regex 0.20.
|
|
10711
|
+
- fancy-regex 0.20.2 (https://github.com/fancy-regex/fancy-regex)
|
|
10711
10712
|
|
|
10712
10713
|
The MIT License
|
|
10713
10714
|
|
|
@@ -86,7 +86,9 @@ module Mergify
|
|
|
86
86
|
# The run's suites, as the selection runs them, once the session
|
|
87
87
|
# prepared its reruns; then test retry's retries and flaky
|
|
88
88
|
# detection's reruns, which the session keeps from a run that
|
|
89
|
-
# stopped
|
|
89
|
+
# stopped; then test retry's of the failures held back for flaky
|
|
90
|
+
# detection that it reran not once; and last the failures test retry
|
|
91
|
+
# held back for them.
|
|
90
92
|
def run_suites(reporter, &)
|
|
91
93
|
return yield unless @selection
|
|
92
94
|
|
|
@@ -94,7 +96,13 @@ module Mergify
|
|
|
94
96
|
@selection.run(@recorder, &)
|
|
95
97
|
@retries.settle(@recorder, @selection.names_to_run)
|
|
96
98
|
@reruns.run(reporter, @recorder)
|
|
97
|
-
|
|
99
|
+
begin
|
|
100
|
+
@retries.retry_held(reporter)
|
|
101
|
+
ensure
|
|
102
|
+
# Minitest's own reporters get the failures held back whatever
|
|
103
|
+
# came of the retries.
|
|
104
|
+
@recorder.release_held(reporter)
|
|
105
|
+
end
|
|
98
106
|
end
|
|
99
107
|
|
|
100
108
|
private
|
|
@@ -18,7 +18,8 @@ module Mergify
|
|
|
18
18
|
# Which failures retry answers for, how many retries a test gets and
|
|
19
19
|
# within which budget are the session's. A test flaky detection reruns is
|
|
20
20
|
# retry's to answer for with those reruns, once the suite is over: its
|
|
21
|
-
# failure is held back until then
|
|
21
|
+
# failure is held back until then, and retried then where flaky
|
|
22
|
+
# detection reran it not once.
|
|
22
23
|
class Retries
|
|
23
24
|
def initialize(test_run, selection, reruns)
|
|
24
25
|
@test_run = test_run
|
|
@@ -43,13 +44,10 @@ module Mergify
|
|
|
43
44
|
prepared = @reruns.prepared
|
|
44
45
|
return false unless Results.status_of(result) == 'failed' && prepared&.retry_answers_for?(name)
|
|
45
46
|
|
|
46
|
-
if
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
else
|
|
51
|
-
return false
|
|
52
|
-
end
|
|
47
|
+
return true if retried?(result, name, reporter)
|
|
48
|
+
return false unless prepared.tracks?(name)
|
|
49
|
+
|
|
50
|
+
@lock.synchronize { @held[name] = result }
|
|
53
51
|
true
|
|
54
52
|
end
|
|
55
53
|
|
|
@@ -89,7 +87,16 @@ module Mergify
|
|
|
89
87
|
return unless prepared && names.any? { |name| prepared.retry_answers_for?(name) }
|
|
90
88
|
|
|
91
89
|
recorder.wait_for(names)
|
|
92
|
-
|
|
90
|
+
wait_for_retries
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# The failures held back for flaky detection's reruns that it reran not
|
|
94
|
+
# once, too slow for its budget, once its reruns are over: test retry's
|
|
95
|
+
# to retry now, through Minitest's own dispatch, as the session grants
|
|
96
|
+
# each. Waits until it answered every one.
|
|
97
|
+
def retry_held(reporter)
|
|
98
|
+
@lock.synchronize { @held.dup }.each { |name, result| retried?(result, name, reporter) }
|
|
99
|
+
wait_for_retries
|
|
93
100
|
end
|
|
94
101
|
|
|
95
102
|
# The failures held back for flaky detection's reruns, once they are
|
|
@@ -105,6 +112,21 @@ module Mergify
|
|
|
105
112
|
|
|
106
113
|
private
|
|
107
114
|
|
|
115
|
+
# Whether the session grants the test named `name`, whose attempt
|
|
116
|
+
# failed with `result`, a retry: the test then runs again, its failure
|
|
117
|
+
# held back.
|
|
118
|
+
def retried?(result, name, reporter)
|
|
119
|
+
return false unless @reruns.prepared.grant_retry(name, result.time * 1000)
|
|
120
|
+
|
|
121
|
+
retry_test(result, name, reporter)
|
|
122
|
+
true
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Wait until every retry granted ended.
|
|
126
|
+
def wait_for_retries
|
|
127
|
+
@lock.synchronize { @changed.wait(@lock) until @retrying.empty? }
|
|
128
|
+
end
|
|
129
|
+
|
|
108
130
|
# Hold back the failure `result` of the test named `name`, and run the
|
|
109
131
|
# test again.
|
|
110
132
|
def retry_test(result, name, reporter)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minitest-mergify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2026.11.
|
|
4
|
+
version: 2026.11.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mergify
|
|
@@ -35,14 +35,14 @@ dependencies:
|
|
|
35
35
|
requirements:
|
|
36
36
|
- - '='
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
|
-
version: 2026.11.
|
|
38
|
+
version: 2026.11.9
|
|
39
39
|
type: :runtime
|
|
40
40
|
prerelease: false
|
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
42
42
|
requirements:
|
|
43
43
|
- - '='
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 2026.11.
|
|
45
|
+
version: 2026.11.9
|
|
46
46
|
description: 'Minitest integration for Mergify Test Engine: the run reported to CI
|
|
47
47
|
Insights, test quarantine, Fail First on merge-queue bisection steps, and flaky
|
|
48
48
|
test detection.'
|