mergify-ci-core 2026.10.8 → 2026.10.10
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/README.md +1 -1
- data/THIRD_PARTY_LICENSES +20 -20
- data/lib/mergify/ci/core/native.rb +56 -5
- data/lib/mergify/ci/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0c00a5a46db6b11c2247e78fdb83480c9e90f8178e0031a91ca1c92bccea954
|
|
4
|
+
data.tar.gz: 3b9a1516f212b88cbc3a577df31b963eea655866c22fa8071d33e55b84171c9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 669619e5489efc0d7bfeab0a78b19ae02e674343e59d040cb2e55211757edf42c6a09fc24279bde96d4a2f82bd17d7833e4789c5592c3dc6df1c881dd9687946
|
|
7
|
+
data.tar.gz: 763fd8b995d612b0f352ae90c4c67493c6529ff574ac90e97301d7a014bb39da31f2a7d2c06883005f1f3a799fcfed42b8f4574374993abb0ca14fe770436343
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ such as [rspec-mergify](https://rubygems.org/gems/rspec-mergify).
|
|
|
6
6
|
|
|
7
7
|
It ships precompiled, so nothing is built on your machine. Each platform gem
|
|
8
8
|
carries an extension for Ruby 3.1 through 4.0, for Linux x86_64 and aarch64
|
|
9
|
-
(glibc 2.
|
|
9
|
+
(glibc 2.28 or newer, and musl), macOS arm64 and x86_64, and Windows x64
|
|
10
10
|
(UCRT). Anywhere else the plain gem installs, and the client still runs your
|
|
11
11
|
suite but reports nothing to Mergify.
|
|
12
12
|
|
data/THIRD_PARTY_LICENSES
CHANGED
|
@@ -8,8 +8,8 @@ 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 (
|
|
12
|
-
MIT License (
|
|
11
|
+
Apache License 2.0 (229)
|
|
12
|
+
MIT License (74)
|
|
13
13
|
Unicode License v3 (19)
|
|
14
14
|
ISC License (5)
|
|
15
15
|
BSD 3-Clause "New" or "Revised" License (4)
|
|
@@ -23,7 +23,7 @@ Apache License 2.0 (Apache-2.0)
|
|
|
23
23
|
|
|
24
24
|
Used by:
|
|
25
25
|
- cmov 0.5.4 (https://github.com/RustCrypto/utils)
|
|
26
|
-
- ctutils 0.4.
|
|
26
|
+
- ctutils 0.4.6 (https://github.com/RustCrypto/utils)
|
|
27
27
|
- encode_unicode 1.0.0 (https://github.com/tormol/encode_unicode)
|
|
28
28
|
- encoding_rs 0.8.42 (https://github.com/hsivonen/encoding_rs)
|
|
29
29
|
- multiversion_no_op 1.0.0 (https://github.com/hsivonen/multiversion_no_op)
|
|
@@ -474,11 +474,7 @@ Used by:
|
|
|
474
474
|
- windows-link 0.2.1 (https://github.com/microsoft/windows-rs)
|
|
475
475
|
- windows-result 0.4.1 (https://github.com/microsoft/windows-rs)
|
|
476
476
|
- windows-strings 0.5.1 (https://github.com/microsoft/windows-rs)
|
|
477
|
-
- windows-sys 0.52.0 (https://github.com/microsoft/windows-rs)
|
|
478
477
|
- windows-sys 0.61.2 (https://github.com/microsoft/windows-rs)
|
|
479
|
-
- windows-targets 0.52.6 (https://github.com/microsoft/windows-rs)
|
|
480
|
-
- windows_x86_64_gnu 0.52.6 (https://github.com/microsoft/windows-rs)
|
|
481
|
-
- windows_x86_64_msvc 0.52.6 (https://github.com/microsoft/windows-rs)
|
|
482
478
|
|
|
483
479
|
Apache License
|
|
484
480
|
Version 2.0, January 2004
|
|
@@ -2571,14 +2567,14 @@ limitations under the License.
|
|
|
2571
2567
|
Apache License 2.0 (Apache-2.0)
|
|
2572
2568
|
|
|
2573
2569
|
Used by:
|
|
2574
|
-
- futures-channel 0.3.
|
|
2575
|
-
- futures-core 0.3.
|
|
2570
|
+
- futures-channel 0.3.34 (https://github.com/rust-lang/futures-rs)
|
|
2571
|
+
- futures-core 0.3.34 (https://github.com/rust-lang/futures-rs)
|
|
2576
2572
|
- futures-executor 0.3.33 (https://github.com/rust-lang/futures-rs)
|
|
2577
|
-
- futures-io 0.3.
|
|
2578
|
-
- futures-macro 0.3.
|
|
2579
|
-
- futures-sink 0.3.
|
|
2580
|
-
- futures-task 0.3.
|
|
2581
|
-
- futures-util 0.3.
|
|
2573
|
+
- futures-io 0.3.34 (https://github.com/rust-lang/futures-rs)
|
|
2574
|
+
- futures-macro 0.3.34 (https://github.com/rust-lang/futures-rs)
|
|
2575
|
+
- futures-sink 0.3.34 (https://github.com/rust-lang/futures-rs)
|
|
2576
|
+
- futures-task 0.3.34 (https://github.com/rust-lang/futures-rs)
|
|
2577
|
+
- futures-util 0.3.34 (https://github.com/rust-lang/futures-rs)
|
|
2582
2578
|
- futures 0.3.33 (https://github.com/rust-lang/futures-rs)
|
|
2583
2579
|
|
|
2584
2580
|
Apache License
|
|
@@ -4882,6 +4878,7 @@ Apache License 2.0 (Apache-2.0)
|
|
|
4882
4878
|
Used by:
|
|
4883
4879
|
- ahash 0.8.12 (https://github.com/tkaitchuck/ahash)
|
|
4884
4880
|
- async-channel 2.5.0 (https://github.com/smol-rs/async-channel)
|
|
4881
|
+
- async-compression 0.4.51 (https://github.com/Nullus157/async-compression)
|
|
4885
4882
|
- async-executor 1.14.0 (https://github.com/smol-rs/async-executor)
|
|
4886
4883
|
- async-io 2.6.0 (https://github.com/smol-rs/async-io)
|
|
4887
4884
|
- async-lock 3.4.2 (https://github.com/smol-rs/async-lock)
|
|
@@ -4894,6 +4891,8 @@ Used by:
|
|
|
4894
4891
|
- bitflags 2.13.1 (https://github.com/bitflags/bitflags)
|
|
4895
4892
|
- blocking 1.7.0 (https://github.com/smol-rs/blocking)
|
|
4896
4893
|
- cfg-if 1.0.4 (https://github.com/rust-lang/cfg-if)
|
|
4894
|
+
- compression-codecs 0.4.46 (https://github.com/Nullus157/async-compression)
|
|
4895
|
+
- compression-core 0.4.34 (https://github.com/Nullus157/async-compression)
|
|
4897
4896
|
- concurrent-queue 2.5.0 (https://github.com/smol-rs/concurrent-queue)
|
|
4898
4897
|
- core-foundation-sys 0.8.7 (https://github.com/servo/core-foundation-rs)
|
|
4899
4898
|
- core-foundation 0.10.1 (https://github.com/servo/core-foundation-rs)
|
|
@@ -4951,7 +4950,7 @@ Used by:
|
|
|
4951
4950
|
- secret-service 5.2.0 (https://github.com/hwchen/secret-service-rs.git)
|
|
4952
4951
|
- security-framework-sys 2.17.0 (https://github.com/kornelski/rust-security-framework)
|
|
4953
4952
|
- security-framework 3.7.0 (https://github.com/kornelski/rust-security-framework)
|
|
4954
|
-
- self-replace 1.5.
|
|
4953
|
+
- self-replace 1.5.1 (https://github.com/mitsuhiko/self-replace)
|
|
4955
4954
|
- signal-hook-registry 1.4.8 (https://github.com/vorner/signal-hook)
|
|
4956
4955
|
- smallvec 1.15.2 (https://github.com/servo/rust-smallvec)
|
|
4957
4956
|
- socket2 0.6.5 (https://github.com/rust-lang/socket2)
|
|
@@ -8791,7 +8790,7 @@ THIS SOFTWARE.
|
|
|
8791
8790
|
ISC License (ISC)
|
|
8792
8791
|
|
|
8793
8792
|
Used by:
|
|
8794
|
-
- rustls-webpki 0.103.
|
|
8793
|
+
- rustls-webpki 0.103.16 (https://github.com/rustls/webpki)
|
|
8795
8794
|
|
|
8796
8795
|
Except as otherwise noted, this project is licensed under the following
|
|
8797
8796
|
(ISC-style) terms:
|
|
@@ -9826,10 +9825,10 @@ SOFTWARE.
|
|
|
9826
9825
|
MIT License (MIT)
|
|
9827
9826
|
|
|
9828
9827
|
Used by:
|
|
9829
|
-
- jsonschema-regex 0.60.
|
|
9830
|
-
- jsonschema-value 0.60.
|
|
9831
|
-
- jsonschema 0.60.
|
|
9832
|
-
- referencing 0.60.
|
|
9828
|
+
- jsonschema-regex 0.60.2 (https://github.com/Stranger6667/jsonschema)
|
|
9829
|
+
- jsonschema-value 0.60.2 (https://github.com/Stranger6667/jsonschema)
|
|
9830
|
+
- jsonschema 0.60.2 (https://github.com/Stranger6667/jsonschema)
|
|
9831
|
+
- referencing 0.60.2 (https://github.com/Stranger6667/jsonschema)
|
|
9833
9832
|
|
|
9834
9833
|
MIT License
|
|
9835
9834
|
|
|
@@ -10083,6 +10082,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
10083
10082
|
MIT License (MIT)
|
|
10084
10083
|
|
|
10085
10084
|
Used by:
|
|
10085
|
+
- tokio-util 0.7.19 (https://github.com/tokio-rs/tokio)
|
|
10086
10086
|
- tokio 1.54.1 (https://github.com/tokio-rs/tokio)
|
|
10087
10087
|
|
|
10088
10088
|
MIT License
|
|
@@ -15,6 +15,19 @@ module Mergify
|
|
|
15
15
|
# takes when a platform has no prebuilt binary. `load_error` keeps the
|
|
16
16
|
# reason, for callers that want to say so.
|
|
17
17
|
module Native
|
|
18
|
+
# The Rubies the platform gems carry an extension for: the loop of
|
|
19
|
+
# .github/scripts/build-ruby-platform-gem.sh, which a spec keeps this
|
|
20
|
+
# in step with.
|
|
21
|
+
SUPPORTED_RUBIES = %w[3.1 3.2 3.3 3.4 4.0].freeze
|
|
22
|
+
|
|
23
|
+
# How the engines a Ruby names itself read in a sentence.
|
|
24
|
+
ENGINE_NAMES = { 'jruby' => 'JRuby', 'truffleruby' => 'TruffleRuby' }.freeze
|
|
25
|
+
|
|
26
|
+
# What a job with no extension can do instead: a JUnit report upload
|
|
27
|
+
# does not run inside Ruby, so it works whatever the Ruby.
|
|
28
|
+
JUNIT_UPLOAD = 'To send its results, upload a JUnit report instead: ' \
|
|
29
|
+
'https://docs.mergify.com/test-engine/test-frameworks/#other-frameworks'
|
|
30
|
+
|
|
18
31
|
class << self
|
|
19
32
|
# The LoadError that prevented the extension loading, or nil.
|
|
20
33
|
attr_accessor :load_error
|
|
@@ -31,7 +44,23 @@ module Mergify
|
|
|
31
44
|
# fallback that follows only ever adds "cannot load such file", which
|
|
32
45
|
# sends the reader looking for the wrong thing. With no extension for
|
|
33
46
|
# this Ruby -- the source gem, or a platform we publish no gem for --
|
|
34
|
-
# it is the other way round
|
|
47
|
+
# it is the other way round, and the fallback's "cannot load such file"
|
|
48
|
+
# names no cause at all: it is said instead, as the Ruby we publish no
|
|
49
|
+
# extension for, or the plain gem Bundler installed in place of ours.
|
|
50
|
+
def load_failure_reason(versioned, fallback, ruby = running_ruby)
|
|
51
|
+
return versioned if Dir.glob(File.join(__dir__, ruby[:version].to_f.to_s, 'mergify_ci.*')).any?
|
|
52
|
+
# An extension built beside this file (`rake compile`) that failed
|
|
53
|
+
# to load: its own error is the one to read.
|
|
54
|
+
return fallback if Dir.glob(File.join(__dir__, 'mergify_ci.*')).any?
|
|
55
|
+
|
|
56
|
+
LoadError.new(unsupported_reason(ruby))
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# The Ruby this process runs, as `load_failure_reason` reads it.
|
|
60
|
+
def running_ruby
|
|
61
|
+
{ engine: RUBY_ENGINE, engine_version: RUBY_ENGINE_VERSION, version: RUBY_VERSION, platform: RUBY_PLATFORM }
|
|
62
|
+
end
|
|
63
|
+
|
|
35
64
|
# Require a file next to this one, returning the LoadError instead of
|
|
36
65
|
# raising it. Two attempts read better as values than as nested rescues.
|
|
37
66
|
def attempt_require(path)
|
|
@@ -41,9 +70,27 @@ module Mergify
|
|
|
41
70
|
e
|
|
42
71
|
end
|
|
43
72
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
73
|
+
private
|
|
74
|
+
|
|
75
|
+
# How `ruby` reads in a sentence, when it is one we publish no
|
|
76
|
+
# extension for; nil for a supported CRuby.
|
|
77
|
+
def unsupported_ruby(ruby)
|
|
78
|
+
engine = ruby[:engine]
|
|
79
|
+
return "#{ENGINE_NAMES.fetch(engine, engine)} #{ruby[:engine_version]}" if engine != 'ruby'
|
|
80
|
+
|
|
81
|
+
"CRuby #{ruby[:version]}" unless SUPPORTED_RUBIES.include?(ruby[:version].to_f.to_s)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def unsupported_reason(ruby)
|
|
85
|
+
running = unsupported_ruby(ruby)
|
|
86
|
+
cause = if running
|
|
87
|
+
"Mergify supports CRuby #{SUPPORTED_RUBIES.first} to #{SUPPORTED_RUBIES.last}, " \
|
|
88
|
+
"and this job runs #{running}"
|
|
89
|
+
else
|
|
90
|
+
"mergify-ci-core was installed without its compiled core for #{ruby[:platform]}, " \
|
|
91
|
+
'which Bundler does under force_ruby_platform and on a platform Mergify publishes no gem for'
|
|
92
|
+
end
|
|
93
|
+
"#{cause}. #{JUNIT_UPLOAD}"
|
|
47
94
|
end
|
|
48
95
|
end
|
|
49
96
|
end
|
|
@@ -124,7 +171,7 @@ unless Mergify::CI::Core::Native.available?
|
|
|
124
171
|
end
|
|
125
172
|
|
|
126
173
|
# Nothing to rerun with.
|
|
127
|
-
def prepare_reruns(_example_ids)
|
|
174
|
+
def prepare_reruns(_example_ids, _retry_excluded = nil)
|
|
128
175
|
nil
|
|
129
176
|
end
|
|
130
177
|
|
|
@@ -134,6 +181,10 @@ unless Mergify::CI::Core::Native.available?
|
|
|
134
181
|
false
|
|
135
182
|
end
|
|
136
183
|
|
|
184
|
+
def test_retry_runs?
|
|
185
|
+
false
|
|
186
|
+
end
|
|
187
|
+
|
|
137
188
|
def flaky_detection_fails_the_run?
|
|
138
189
|
false
|
|
139
190
|
end
|
|
@@ -6,7 +6,7 @@ module Mergify
|
|
|
6
6
|
# Placeholder: the release workflow stamps the real version from the git
|
|
7
7
|
# tag at build time, the same one it stamps into every Ruby client built
|
|
8
8
|
# on this gem, which each pins exactly.
|
|
9
|
-
VERSION = '2026.10.
|
|
9
|
+
VERSION = '2026.10.10'
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
end
|