rspec-mergify 2026.11.8 → 2026.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ace343de80f55f7aed46968d459b0df76643410822f557e1f8aa823461cfd5ac
4
- data.tar.gz: da8ded075f8236a1b129ff306f8dcd1cb8affd16383c7db5cf0139136c8a6a4b
3
+ metadata.gz: 31ebc4b90dc3c74b18d56fcc3986743a1247d6c07fe36b756e4eb34d2e429b4e
4
+ data.tar.gz: 2b3ac20adf11e94a780b4cc8695f3fcbe4de36990f7e583d002728d8e3876887
5
5
  SHA512:
6
- metadata.gz: 50613caf2087374f5d93211c29fdd07b2842d100fba3e6e07e38a1832ec5e4de1fceffc4af0f6655810a19933c00d5560ed0cb4365bcb37debae11158ab6a177
7
- data.tar.gz: af987db8186840146f8c7bf055245fbab5ee2d3752cf2fbd9d1ea433c3fa31e0f95a1b5d0b84c0f06dde5cb9e36f4bc138a5ed37b7cc2e5b4b9c9ca01d9b411f
6
+ metadata.gz: e54f949d951d788a2339e8c6bab58b3dcd08bb607d936b13794fd32e5eb6558bd40e40120df334211405d51327d744a0f10a24d95573227e4e8670d08f1327cd
7
+ data.tar.gz: a8dcf6c803e79d461555e7f56d9ce08d5580efef59dee9508f45197da327686e5499ba16d3d8ea202e942f08b01cac4afdae6c16755f499ba384060861f5faf1
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # rspec-mergify
2
2
 
3
- Find the RSpec examples that pass and fail on the same code, and quarantine them so they stop failing your CI. **Requires a Mergify account** (set `MERGIFY_TOKEN` in CI); free for open source. Why tests go flaky in RSpec, and how to fix them: [mergify.com/learn/flaky-tests/rspec](https://mergify.com/learn/flaky-tests/rspec).
3
+ Find the RSpec examples that pass and fail on the same code, and quarantine them so they stop failing your CI. **Requires a Mergify account**; free for open source. Why tests go flaky in RSpec, and how to fix them: [mergify.com/learn/flaky-tests/rspec](https://mergify.com/learn/flaky-tests/rspec).
4
4
 
5
5
  RSpec plugin for [Mergify Test Engine](https://docs.mergify.com/test-engine/).
6
6
 
@@ -41,9 +41,15 @@ Anywhere else, and on glibc older than 2.28 — Amazon Linux 2, CentOS 7, Ubuntu
41
41
  gem 'rspec-mergify', '0.1.4'
42
42
  ```
43
43
 
44
+ 0.1.4 cannot exchange a GitHub Actions job's ID token: set `MERGIFY_TOKEN` there.
45
+
44
46
  ## Configuration
45
47
 
46
- Set the `MERGIFY_TOKEN` environment variable with your Mergify API token.
48
+ On GitHub Actions, grant the job `id-token: write` and set no token: the
49
+ plugin exchanges the job's ID token for a Mergify token, once a trust policy
50
+ of your organization allows the job ([OIDC](https://docs.mergify.com/integrations/gha/oidc/)).
51
+ On any other CI, set `MERGIFY_TOKEN` to a Mergify application key with the
52
+ `ci` scope.
47
53
 
48
54
  The plugin activates automatically when running in CI (detected via the `CI` environment variable). To enable outside CI, set `MERGIFY_CI_ENABLE=true`.
49
55
 
@@ -51,7 +57,7 @@ The plugin activates automatically when running in CI (detected via the `CI` env
51
57
 
52
58
  | Variable | Description | Default |
53
59
  |---|---|---|
54
- | `MERGIFY_TOKEN` | Mergify API authentication token | (required) |
60
+ | `MERGIFY_TOKEN` | Mergify application key with the `ci` scope, required outside GitHub Actions | on GitHub Actions, the job's ID token |
55
61
  | `MERGIFY_API_URL` | Mergify API endpoint | `https://api.mergify.com` |
56
62
  | `MERGIFY_CI_ENABLE` | Force-enable outside CI | `false` |
57
63
  | `MERGIFY_CI_DEBUG` | Print the session verdict and the spans instead of sending them, and upload nothing | `false` |
data/THIRD_PARTY_LICENSES CHANGED
@@ -4905,7 +4905,7 @@ Used by:
4905
4905
  - event-listener-strategy 0.5.4 (https://github.com/smol-rs/event-listener-strategy)
4906
4906
  - event-listener 5.4.2 (https://github.com/smol-rs/event-listener)
4907
4907
  - fastrand 2.5.0 (https://github.com/smol-rs/fastrand)
4908
- - flate2 1.1.10 (https://github.com/rust-lang/flate2-rs)
4908
+ - flate2 1.1.11 (https://github.com/rust-lang/flate2-rs)
4909
4909
  - form_urlencoded 1.2.2 (https://github.com/servo/rust-url)
4910
4910
  - fraction 0.17.0 (https://github.com/dnsl48/fraction.git)
4911
4911
  - futures-lite 2.6.1 (https://github.com/smol-rs/futures-lite)
@@ -170,11 +170,8 @@ module Mergify
170
170
  retrier = test_run.test_retrier
171
171
  retrier = nil unless retrier&.answers_for?(name)
172
172
  tries = run_first(example, name, test_run, detector, retrier)
173
- if detector&.rerunning_test?(name)
174
- detect_flakiness(example, name, detector, retrier, tries)
175
- elsif retrier
176
- retry_failure(example, name, retrier, tries)
177
- end
173
+ detect_flakiness(example, name, detector, retrier, tries) if detector&.rerunning_test?(name)
174
+ retry_failure(example, name, retrier, tries) if retrier
178
175
  end
179
176
 
180
177
  # Flaky detection reruns the example, within its budget. Where test
@@ -197,7 +194,9 @@ module Mergify
197
194
  # Test retry runs the failed example again, each time the session grants
198
195
  # one more attempt, until one passes: the example then passes, as a pass
199
196
  # of a retry plugin's would. Otherwise its first run's failure stands.
200
- # Each attempt is one try, as flaky detection's reruns are.
197
+ # Each attempt is one try, as flaky detection's reruns are. The session
198
+ # grants none for an example flaky detection reran, whose reruns
199
+ # answered for it.
201
200
  def retry_failure(example, name, retrier, tries)
202
201
  failure = example.exception
203
202
  return unless failure
@@ -184,7 +184,7 @@ module Mergify
184
184
  printed = report_lines
185
185
  return if printed.empty?
186
186
 
187
- output.puts "\nMergify CI:\n\n"
187
+ output.puts "\nMergify Test Engine:\n\n"
188
188
  printed.each { |line| output.puts line }
189
189
  end
190
190
 
@@ -8,6 +8,6 @@ module Mergify
8
8
  # which resolved against whatever repository happened to be the working
9
9
  # directory at load time -- the monorepo's namespaced tags here, the user's
10
10
  # own tags once the gem was installed.
11
- VERSION = '2026.11.8'
11
+ VERSION = '2026.11.10'
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-mergify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2026.11.8
4
+ version: 2026.11.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mergify
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - '='
31
31
  - !ruby/object:Gem::Version
32
- version: 2026.11.8
32
+ version: 2026.11.10
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 2026.11.8
39
+ version: 2026.11.10
40
40
  description: 'RSpec integration for Mergify Test Engine: OpenTelemetry tracing, flaky
41
41
  test detection, and test quarantine. Requires a Mergify account (set MERGIFY_TOKEN
42
42
  in CI); free for open source.'