kettle-dev 3.1.36 → 3.1.37

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: 6aba42924fa36bffd3d25687913a2c18f79884d3503e979e66d0f54e4f984b8a
4
- data.tar.gz: a4cd7b3978fa34eb87cfc79fe67d1579f15cbd63abece42b893ed75118951d7c
3
+ metadata.gz: 6c7f5ee6b47ecfcb73bd6b367c023576a16fa567c1838f41b349dcd8fd52f3c2
4
+ data.tar.gz: fdaa373ef6442071f8b6e88cf9ef81aada14ed65d5df514186a6dd047fd894bb
5
5
  SHA512:
6
- metadata.gz: e44ec33626a3c83166009a9cf03d58f1d0b8560e50bf33170d7552239ef86dbbf7c61870a0c3d63ffc711b0d783899f5962c24f531ba72d193cad39e32abd8d8
7
- data.tar.gz: c3704ef5aed6ad4f085e4f8ad891520922c0b4ffebc66deec30c48f167ae75211cb2f4f43c0ba8b2a2df7e1c6cf00f46396acf53b7dc7305906628de8c2454e2
6
+ metadata.gz: 4475a80a7efeb2ec5cd2de07bc352a43ac4dd13a790ca227f7d882270125f20a1d2f94e72ea2fe927f1432968cd4211663f07e0db9a146fff169ce469abc5698
7
+ data.tar.gz: cc18cffa72e089f2958ff7b098e66ea09eff50838b5d104d7a60a9a171ed8e6cc7dfd0785ffeb9cae08cf5562d36e2d644e9b9875ea42dad72f4128bced0cc6f
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,32 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [3.1.37] - 2026-12-02
34
+
35
+ - TAG: [v3.1.37][3.1.37t]
36
+ - COVERAGE: 91.73% -- 6599/7194 lines in 53 files
37
+ - BRANCH COVERAGE: 76.09% -- 2530/3325 branches in 53 files
38
+ - 57.28% documented
39
+
40
+ ### Added
41
+
42
+ - Kettle::Dev::RegistryAvailability (shared poller) and Kettle::Dev::ProbeDispatch (file-based channel) so a family can run one central poll dispatcher for all members (KETTLE_RELEASE_PROBE_DISPATCH_DIR); children fall back to local polling
43
+
44
+ ### Changed
45
+
46
+ - [kc] kettle-jem/prepare: updated 12 project files since the last release:
47
+ - configuration (1)
48
+ - dependencies (9)
49
+ - other (2)
50
+
51
+ - [kc] kettle-jem/template: updated 9 project files since the last release:
52
+ - code and tests (2)
53
+ - documentation (1)
54
+ - other (2)
55
+ - workflows (4)
56
+
57
+ - kettle-release availability probe now asks the registry index (compact index plus artifact reachability) instead of resolving and installing the gem and its dependency tree into a throwaway GEM_HOME on every attempt; set KETTLE_DEV_RELEASE_PROBE_MODE=install for the legacy probe, KETTLE_DEV_RELEASE_PROBE_TIMEOUT to bound the wait
58
+
33
59
  ## [3.1.36] - 2026-11-29
34
60
 
35
61
  - TAG: [v3.1.36][3.1.36t]
@@ -4469,7 +4495,9 @@ Please file a bug if you notice a violation of semantic versioning.
4469
4495
  - Selecting will run the selected workflow via `act`
4470
4496
  - This may move to its own gem in the future.
4471
4497
 
4472
- [Unreleased]: https://github.com/kettle-dev/kettle-dev/compare/v3.1.36...HEAD
4498
+ [Unreleased]: https://github.com/kettle-dev/kettle-dev/compare/v3.1.37...HEAD
4499
+ [3.1.37]: https://github.com/kettle-dev/kettle-dev/compare/v3.1.36...v3.1.37
4500
+ [3.1.37t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v3.1.37
4473
4501
  [3.1.36]: https://github.com/kettle-dev/kettle-dev/compare/v3.1.35...v3.1.36
4474
4502
  [3.1.36t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v3.1.36
4475
4503
  [3.1.35]: https://github.com/kettle-dev/kettle-dev/compare/v3.1.34...v3.1.35
data/README.md CHANGED
@@ -6,18 +6,13 @@
6
6
 
7
7
  `if ci_badges.map(&:color).detect { it != "green"}` ☝️ [let me know on Discord][✉️discord-invite] or [RubyForum][✉️ruby-forum], as I may have missed the notification.
8
8
 
9
- ---
10
-
11
9
  `if ci_badges.map(&:color).all? { it == "green"}` 👇️ send money so I can do more of this. FLOSS maintenance is now my full-time job.
12
10
 
13
11
  [![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
14
12
 
15
- <details markdown="1">
16
- <summary>👣 How will this project approach the September 2025 hostile takeover of RubyGems? 🚑️</summary>
17
-
18
- I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo).
19
-
20
- </details>
13
+ <!-- kettle-sponsors:shields:start -->
14
+ <a href="#corporate-sponsorship"><img src="https://logos.galtzo.com/assets/images/sponsors/shield/github.svg" alt="services: GitHub"></a> <a href="#corporate-sponsorship"><img src="https://logos.galtzo.com/assets/images/sponsors/shield/healthsherpa.svg" alt="sponsor: HealthSherpa"></a> <a href="#corporate-sponsorship"><img src="https://logos.galtzo.com/assets/images/sponsors/shield/microsoft.svg" alt="compute: Microsoft"></a>
15
+ <!-- kettle-sponsors:shields:end -->
21
16
 
22
17
  ## 🌻 Synopsis <a href="https://discord.gg/3qme4XHNKN"><img alt="Galtzo FLOSS Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/galtzo-floss/avatar-128px.svg" width="8%" align="right"/></a> <a href="https://ruby-toolbox.com"><img alt="ruby-lang Logo, Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5" src="https://logos.galtzo.com/assets/images/ruby-lang/avatar-128px.svg" width="8%" align="right"/></a>
23
18
 
@@ -88,73 +83,6 @@ out to `kettle-release` for each member that needs publishing.
88
83
  - `kettle-readme-backers` for Open Collective README sections.
89
84
  - `kettle-dev-setup` as a deprecated compatibility executable that exits with instructions to use kettle-jem.
90
85
 
91
- ## 💡 Info you can shake a stick at
92
-
93
- | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
94
- |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
95
- | Works with JRuby | [![JRuby 10.0 Compat][💎jruby-10.0i]][🚎jruby-10.0-wf] [![JRuby current Compat][💎jruby-c-i]][🚎10-j-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf]|
96
- | Works with Truffle Ruby | [![Truffle Ruby 33.0 Compat][💎truby-33.0i]][🚎truby-33.0-wf] [![Truffle Ruby current Compat][💎truby-c-i]][🚎9-t-wf]|
97
- | Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
98
- | Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎ruby-3.0-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎ruby-3.1-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎ruby-3.2-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎ruby-3.3-wf] [![Ruby 3.4 Compat][💎ruby-3.4i]][🚎ruby-3.4-wf]|
99
- | Works with MRI Ruby 2 | [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎ruby-2.4-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎ruby-2.5-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎ruby-2.6-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎ruby-2.7-wf]|
100
- | Support & Community | [![Join Me on Daily.dev's RubyFriends][✉️ruby-friends-img]][✉️ruby-friends] [![Get help from RubyForum][✉️ruby-forum-img]][✉️ruby-forum] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] [![Get help from me on Upwork][👨🏼‍🏫expsup-upwork-img]][👨🏼‍🏫expsup-upwork] [![Get help from me on Codementor][👨🏼‍🏫expsup-codementor-img]][👨🏼‍🏫expsup-codementor] |
101
- | Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on GitHub.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
102
- | Documentation | [![Current release on RubyDoc.info][📜docs-cr-rd-img]][🚎yard-current] [![YARD on Galtzo.com][📜docs-head-rd-img]][🚎yard-head] [![Maintainer Blog][🚂maint-blog-img]][🚂maint-blog] [![GitLab Wiki][📜gl-wiki-img]][📜gl-wiki] [![GitHub Wiki][📜gh-wiki-img]][📜gh-wiki] |
103
- | Compliance | [![License: AGPL-3.0-only][📄license-img]][📄license] [![Apache license compatibility: Category X][📄license-compat-img]][📄license-compat] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] |
104
- | Style | [![Enforced Code Style Linter][💎rlts-img]][💎rlts] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] [![Gitmoji Commits][📌gitmoji-img]][📌gitmoji] [![Compatibility appraised by: appraisal2][💎appraisal2-img]][💎appraisal2] |
105
- | Maintainer 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact] [![My technical writing][💖💁🏼‍♂️devto-img]][💖💁🏼‍♂️devto] |
106
- | `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼‍♂️aboutme-img]][💖💁🏼‍♂️aboutme] [🧊][💖🧊berg] [🐙][💖🐙hub] [🛖][💖🛖hut] [🧪][💖🧪lab] |
107
-
108
- ### Compatibility
109
-
110
- The gem's declared runtime compatibility floor is MRI Ruby 2.4.0+, with concordant releases of JRuby and TruffleRuby.
111
- CI workflows and Appraisals are generated for MRI Ruby 2.4+.
112
- The current MRI CI lane runs on Linux and macOS.
113
- The test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml`.
114
- When it is higher than the runtime floor, older runtime-compatible Rubies are
115
- not covered by the generated CI or Appraisal matrix.
116
-
117
- <a href="https://github.com/kettle-dev"><img alt="kettle-dev Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/kettle-dev/avatar-128px.svg" width="14%" align="right"/></a>
118
-
119
- The _amazing_ test matrix is powered by the kettle-dev stack.
120
-
121
- <details markdown="1">
122
- <summary>How kettle-dev manages complexity in tests</summary>
123
-
124
- | Gem | Source | Role | Total downloads |
125
- |-----|--------|------|---------------------|
126
- | [appraisal2](https://clickgems.clickhouse.com/dashboard/appraisal2) | [GitHub](https://github.com/appraisal-rb/appraisal2) | multi-dependency Appraisal matrix generation | [![Total downloads for appraisal2](https://img.shields.io/gem/dt/appraisal2.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/appraisal2) |
127
- | [appraisal2-rubocop](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) | [GitHub](https://github.com/appraisal-rb/appraisal2-rubocop) | RuboCop Appraisal generator integration | [![Total downloads for appraisal2-rubocop](https://img.shields.io/gem/dt/appraisal2-rubocop.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) |
128
- | [kettle-jem](https://clickgems.clickhouse.com/dashboard/kettle-jem) | [GitHub](https://github.com/kettle-dev/kettle-jem) | Appraisals & CI workflow templates | [![Total downloads for kettle-jem](https://img.shields.io/gem/dt/kettle-jem.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-jem) |
129
- | [kettle-soup-cover](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) | [GitHub](https://github.com/kettle-dev/kettle-soup-cover) | SimpleCov coverage policy and reporting | [![Total downloads for kettle-soup-cover](https://img.shields.io/gem/dt/kettle-soup-cover.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) |
130
- | [kettle-test](https://clickgems.clickhouse.com/dashboard/kettle-test) | [GitHub](https://github.com/kettle-dev/kettle-test) | standard test runner and coverage harness | [![Total downloads for kettle-test](https://img.shields.io/gem/dt/kettle-test.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-test) |
131
- | [rubocop-lts](https://clickgems.clickhouse.com/dashboard/rubocop-lts) | [GitHub](https://github.com/rubocop-lts/rubocop-lts) | Ruby-version-aware linting | [![Total downloads for rubocop-lts](https://img.shields.io/gem/dt/rubocop-lts.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/rubocop-lts) |
132
- | [turbo_tests2](https://clickgems.clickhouse.com/dashboard/turbo_tests2) | [GitHub](https://github.com/galtzo-floss/turbo_tests2) | parallel test execution | [![Total downloads for turbo_tests2](https://img.shields.io/gem/dt/turbo_tests2.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/turbo_tests2) |
133
-
134
- </details>
135
-
136
- ### Federated DVCS
137
-
138
- <details markdown="1">
139
- <summary>Find this repo on federated forges (Coming soon!)</summary>
140
-
141
- | Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
142
- |-------------------------------------------------|-------------------------------------------|-------------------|------------------|-----------------|----------------|
143
- | 🧪 [kettle-dev/kettle-dev on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
144
- | 🧊 [kettle-dev/kettle-dev on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
145
- | 🐙 [kettle-dev/kettle-dev on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
146
-
147
- </details>
148
-
149
- ### Enterprise Support
150
-
151
- For enterprise support from the maintainer, use [Upwork][👨🏼‍🏫expsup-upwork] or [CodeMentor][👨🏼‍🏫expsup-codementor].
152
-
153
- Other support channels:
154
-
155
- - [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
156
- - [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
157
-
158
86
  ## ✨ Installation
159
87
 
160
88
  Install the gem and add to the application's Gemfile by executing:
@@ -756,6 +684,89 @@ versions that are newer than the latest released version.
756
684
  - The updater will look for `REPO` or `GITHUB_REPOSITORY` (both usually set by GitHub Actions) to infer `<YOUR_ORG>` for guidance.
757
685
  - If `README_UPDATER_TOKEN` is missing, the tool prints a helpful error to STDERR and aborts, including a direct link to the expected org settings page.
758
686
 
687
+ ## 🏢 Corporate Sponsorship
688
+
689
+ <!-- kettle-sponsors:cards:start -->
690
+ <a href="https://github.com"><picture><source media="(max-width: 600px)" srcset="https://logos.galtzo.com/assets/images/sponsors/phone/github.svg"><img src="https://logos.galtzo.com/assets/images/sponsors/github.svg" align="top" alt="Sponsor: GitHub - Copilot Max"></picture></a> <a href="https://healthsherpa.com"><picture><source media="(max-width: 600px)" srcset="https://logos.galtzo.com/assets/images/sponsors/phone/healthsherpa.svg"><img src="https://logos.galtzo.com/assets/images/sponsors/healthsherpa.svg" align="top" alt="Sponsor: HealthSherpa - GitHub Sponsors"></picture></a> <a href="https://opensource.microsoft.com"><picture><source media="(max-width: 600px)" srcset="https://logos.galtzo.com/assets/images/sponsors/phone/microsoft.svg"><img src="https://logos.galtzo.com/assets/images/sponsors/microsoft.svg" align="top" alt="Sponsor: Microsoft - Azure compute resources"></picture></a>
691
+ <!-- kettle-sponsors:cards:end -->
692
+
693
+ **If you're working in a company that's making significant use of kettle-dev tools we'd
694
+ appreciate it if you suggest to your company to become a kettle-dev sponsor.**
695
+
696
+ ## 💡 Info you can shake a stick at
697
+
698
+ | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
699
+ |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
700
+ | Works with JRuby | [![JRuby 10.0 Compat][💎jruby-10.0i]][🚎jruby-10.0-wf] [![JRuby current Compat][💎jruby-c-i]][🚎10-j-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf]|
701
+ | Works with Truffle Ruby | [![Truffle Ruby 33.0 Compat][💎truby-33.0i]][🚎truby-33.0-wf] [![Truffle Ruby current Compat][💎truby-c-i]][🚎9-t-wf]|
702
+ | Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
703
+ | Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎ruby-3.0-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎ruby-3.1-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎ruby-3.2-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎ruby-3.3-wf] [![Ruby 3.4 Compat][💎ruby-3.4i]][🚎ruby-3.4-wf]|
704
+ | Works with MRI Ruby 2 | [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎ruby-2.4-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎ruby-2.5-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎ruby-2.6-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎ruby-2.7-wf]|
705
+ | Support & Community | [![Join Me on Daily.dev's RubyFriends][✉️ruby-friends-img]][✉️ruby-friends] [![Get help from RubyForum][✉️ruby-forum-img]][✉️ruby-forum] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] [![Get help from me on Upwork][👨🏼‍🏫expsup-upwork-img]][👨🏼‍🏫expsup-upwork] [![Get help from me on Codementor][👨🏼‍🏫expsup-codementor-img]][👨🏼‍🏫expsup-codementor] |
706
+ | Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on GitHub.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
707
+ | Documentation | [![Current release on RubyDoc.info][📜docs-cr-rd-img]][🚎yard-current] [![YARD on Galtzo.com][📜docs-head-rd-img]][🚎yard-head] [![Maintainer Blog][🚂maint-blog-img]][🚂maint-blog] [![GitLab Wiki][📜gl-wiki-img]][📜gl-wiki] [![GitHub Wiki][📜gh-wiki-img]][📜gh-wiki] |
708
+ | Compliance | [![License: AGPL-3.0-only][📄license-img]][📄license] [![Apache license compatibility: Category X][📄license-compat-img]][📄license-compat] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] |
709
+ | Style | [![Enforced Code Style Linter][💎rlts-img]][💎rlts] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] [![Gitmoji Commits][📌gitmoji-img]][📌gitmoji] [![Compatibility appraised by: appraisal2][💎appraisal2-img]][💎appraisal2] |
710
+ | Maintainer 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact] [![My technical writing][💖💁🏼‍♂️devto-img]][💖💁🏼‍♂️devto] |
711
+ | `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼‍♂️aboutme-img]][💖💁🏼‍♂️aboutme] [🧊][💖🧊berg] [🐙][💖🐙hub] [🛖][💖🛖hut] [🧪][💖🧪lab] |
712
+
713
+ ### Compatibility
714
+
715
+ The gem's declared runtime compatibility floor is MRI Ruby 2.4.0+, with concordant releases of JRuby and TruffleRuby.
716
+ CI workflows and Appraisals are generated for MRI Ruby 2.4+.
717
+ The current MRI CI lane runs on Linux and macOS.
718
+ The test floor is configured by `ruby.test_minimum` in `.structuredmerge/kettle-jem.yml`.
719
+ When it is higher than the runtime floor, older runtime-compatible Rubies are
720
+ not covered by the generated CI or Appraisal matrix.
721
+
722
+ <a href="https://github.com/kettle-dev"><img alt="kettle-dev Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/kettle-dev/avatar-128px.svg" width="14%" align="right"/></a>
723
+
724
+ The _amazing_ test matrix is powered by the kettle-dev stack.
725
+
726
+ <details markdown="1">
727
+ <summary>How kettle-dev manages complexity in tests</summary>
728
+
729
+ | Gem | Source | Role | Total downloads |
730
+ |-----|--------|------|---------------------|
731
+ | [appraisal2](https://clickgems.clickhouse.com/dashboard/appraisal2) | [GitHub](https://github.com/appraisal-rb/appraisal2) | multi-dependency Appraisal matrix generation | [![Total downloads for appraisal2](https://img.shields.io/gem/dt/appraisal2.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/appraisal2) |
732
+ | [appraisal2-rubocop](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) | [GitHub](https://github.com/appraisal-rb/appraisal2-rubocop) | RuboCop Appraisal generator integration | [![Total downloads for appraisal2-rubocop](https://img.shields.io/gem/dt/appraisal2-rubocop.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) |
733
+ | [kettle-jem](https://clickgems.clickhouse.com/dashboard/kettle-jem) | [GitHub](https://github.com/kettle-dev/kettle-jem) | Appraisals & CI workflow templates | [![Total downloads for kettle-jem](https://img.shields.io/gem/dt/kettle-jem.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-jem) |
734
+ | [kettle-soup-cover](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) | [GitHub](https://github.com/kettle-dev/kettle-soup-cover) | SimpleCov coverage policy and reporting | [![Total downloads for kettle-soup-cover](https://img.shields.io/gem/dt/kettle-soup-cover.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) |
735
+ | [kettle-test](https://clickgems.clickhouse.com/dashboard/kettle-test) | [GitHub](https://github.com/kettle-dev/kettle-test) | standard test runner and coverage harness | [![Total downloads for kettle-test](https://img.shields.io/gem/dt/kettle-test.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-test) |
736
+ | [rubocop-lts](https://clickgems.clickhouse.com/dashboard/rubocop-lts) | [GitHub](https://github.com/rubocop-lts/rubocop-lts) | Ruby-version-aware linting | [![Total downloads for rubocop-lts](https://img.shields.io/gem/dt/rubocop-lts.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/rubocop-lts) |
737
+ | [turbo_tests2](https://clickgems.clickhouse.com/dashboard/turbo_tests2) | [GitHub](https://github.com/galtzo-floss/turbo_tests2) | parallel test execution | [![Total downloads for turbo_tests2](https://img.shields.io/gem/dt/turbo_tests2.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/turbo_tests2) |
738
+
739
+ </details>
740
+
741
+ ### Federated DVCS
742
+
743
+ <details markdown="1">
744
+ <summary>Find this repo on federated forges (Coming soon!)</summary>
745
+
746
+ | Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
747
+ |-------------------------------------------------|-------------------------------------------|-------------------|------------------|-----------------|----------------|
748
+ | 🧪 [kettle-dev/kettle-dev on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
749
+ | 🧊 [kettle-dev/kettle-dev on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
750
+ | 🐙 [kettle-dev/kettle-dev on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
751
+
752
+ </details>
753
+
754
+ <details markdown="1">
755
+ <summary>👣 How will this project approach the September 2025 hostile takeover of RubyGems? 🚑️</summary>
756
+
757
+ I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo).
758
+
759
+ </details>
760
+
761
+ ### Enterprise Support
762
+
763
+ For enterprise support from the maintainer, use [Upwork][👨🏼‍🏫expsup-upwork] or [CodeMentor][👨🏼‍🏫expsup-codementor].
764
+
765
+ Other support channels:
766
+
767
+ - [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
768
+ - [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
769
+
759
770
  ## 🔐 Security
760
771
 
761
772
  See [SECURITY.md][🔐security].
@@ -843,27 +854,18 @@ See [LICENSE.md][📄license] for the official copyright notice.
843
854
 
844
855
  </details>
845
856
 
846
- ## 🤑 A request for help
847
-
848
- Maintainers have teeth and need to pay their dentists.
849
- After getting laid off in an RIF in March, and encountering difficulty finding a new one,
850
- I began spending most of my time building open source tools.
851
- I'm hoping to be able to pay for my kids' health insurance this month,
852
- so if you value the work I am doing, I need your support.
853
- Please consider sponsoring me or the project.
854
-
855
- To join the community or get help, use the RubyForum or Discord.
857
+ ### Please give the project a star ⭐ ♥.
856
858
 
857
- [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
858
- [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
859
+ Many parts of this project are actively managed by a [kettle-jem](https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/kettle-jem) smart template utilizing [StructuredMerge.org](https://structuredmerge.org) merge contracts.
859
860
 
860
- To say "thanks!" ☝️ Join the community or 👇️ send money.
861
+ If this project helps you, please consider supporting the maintainer. This is not gated on the project's license; it appears in every README:
861
862
 
862
- [![Sponsor kettle-dev/kettle-dev on Open Source Collective][🖇osc-all-bottom-img]][🖇osc] 💌 [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal]
863
+ [![Sponsor kettle-dev/kettle-dev on Open Source Collective][🖇osc-all-bottom-img]][🖇osc] 💌 [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal] 💌 [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] 💌 [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
863
864
 
864
- ### Please give the project a star ⭐ ♥.
865
+ I use [Cloudroom][🖇cloudroom], an agentic AI coding environment, every day. It's the first AI product that made me say "shut up and take my money."
866
+ If you sign up with [my referral link][🖇cloudroom], I receive a share of your subscription for as long as you stay subscribed, at no extra cost to you.
865
867
 
866
- Many parts of this project are actively managed by a [kettle-jem](https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/kettle-jem) smart template utilizing [StructuredMerge.org](https://structuredmerge.org) merge contracts.
868
+ [🖇cloudroom]: https://go.cloudroom.dev/u9f53f181a
867
869
 
868
870
  Thanks for RTFM. ☺️
869
871
 
@@ -1034,7 +1036,7 @@ Thanks for RTFM. ☺️
1034
1036
  [📌gitmoji]: https://gitmoji.dev
1035
1037
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
1036
1038
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
1037
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-6.991-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
1039
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-7.194-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
1038
1040
  [🔐security]: https://github.com/kettle-dev/kettle-dev/blob/main/SECURITY.md
1039
1041
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
1040
1042
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -0,0 +1,146 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "fileutils"
4
+ require "json"
5
+
6
+ require_relative "registry_availability"
7
+
8
+ module Kettle
9
+ module Dev
10
+ # File-based channel between kettle-release children (clients) and ONE
11
+ # central poll dispatcher (server) owned by the family process.
12
+ #
13
+ # Each release member is its own process, so a shared poller needs IPC.
14
+ # A directory of small files is enough and needs no sockets or ports:
15
+ #
16
+ # <dir>/<gem>-<version>.req child -> dispatcher: please watch this
17
+ # <dir>/<gem>-<version>.ack dispatcher -> child: claimed, will answer
18
+ # <dir>/<gem>-<version>.res dispatcher -> child: final outcome (JSON)
19
+ #
20
+ # The child only ever sleeps and stats one local file. All registry traffic
21
+ # comes from the dispatcher's single schedule. If no dispatcher answers
22
+ # (standalone `kettle-release`, dispatcher died) the client returns nil and
23
+ # the caller polls locally, so the channel is strictly an optimization.
24
+ module ProbeDispatch
25
+ ENV_DIR = "KETTLE_RELEASE_PROBE_DISPATCH_DIR"
26
+ ACK_TIMEOUT_SECONDS = 10
27
+ RESULT_GRACE_SECONDS = 60
28
+ TICK_SECONDS = 0.25
29
+
30
+ module_function
31
+
32
+ def dir_from_env(env = ENV)
33
+ value = env.fetch(ENV_DIR, "").to_s
34
+ value.empty? ? nil : value
35
+ end
36
+
37
+ def path(dir, key, ext)
38
+ File.join(dir, "#{key.to_s.gsub(/[^A-Za-z0-9_.-]+/, "_")}.#{ext}")
39
+ end
40
+
41
+ def write_atomic(file, payload)
42
+ tmp = "#{file}.#{$$}.tmp"
43
+ File.write(tmp, JSON.generate(payload))
44
+ File.rename(tmp, file)
45
+ end
46
+
47
+ # Client side. Returns {"outcome" => "ok"|"upstream_only"|"failed", ...}
48
+ # or nil when no dispatcher is serving (caller must poll locally).
49
+ module Client
50
+ module_function
51
+
52
+ def await(dir:, gem_name:, version:, result_timeout:, sleeper: Kernel.method(:sleep), clock: -> { Process.clock_gettime(Process::CLOCK_MONOTONIC) })
53
+ key = "#{gem_name}-#{version}"
54
+ req = ProbeDispatch.path(dir, key, "req")
55
+ ack = ProbeDispatch.path(dir, key, "ack")
56
+ res = ProbeDispatch.path(dir, key, "res")
57
+ FileUtils.mkdir_p(dir)
58
+ [ack, res].each { |stale| FileUtils.rm_f(stale) }
59
+ ProbeDispatch.write_atomic(req, {"gem" => gem_name.to_s, "version" => version.to_s, "pid" => $$})
60
+
61
+ started = clock.call
62
+ until File.exist?(ack) || File.exist?(res)
63
+ if clock.call - started > ACK_TIMEOUT_SECONDS
64
+ FileUtils.rm_f(req)
65
+ return nil
66
+ end
67
+ sleeper.call(TICK_SECONDS)
68
+ end
69
+
70
+ deadline = clock.call + result_timeout + RESULT_GRACE_SECONDS
71
+ until File.exist?(res)
72
+ return nil if clock.call > deadline
73
+
74
+ sleeper.call(TICK_SECONDS)
75
+ end
76
+ JSON.parse(File.read(res))
77
+ rescue JSON::ParserError, SystemCallError
78
+ nil
79
+ end
80
+ end
81
+
82
+ # Server side: one thread, one Poller, every member's watch.
83
+ class Server
84
+ attr_reader :poller
85
+
86
+ def initialize(dir:, poller:, tick: TICK_SECONDS)
87
+ @dir = dir
88
+ @poller = poller
89
+ @tick = tick
90
+ @mutex = Mutex.new
91
+ @stop = false
92
+ @thread = nil
93
+ end
94
+
95
+ def start
96
+ FileUtils.mkdir_p(@dir)
97
+ @thread = Thread.new { run } # rubocop:disable ThreadSafety/NewThread -- the single central poll dispatcher.
98
+ self
99
+ end
100
+
101
+ def stop
102
+ @mutex.synchronize { @stop = true }
103
+ @thread&.join(5)
104
+ @thread = nil
105
+ end
106
+
107
+ # One scan + one poll pass. Public so it can be driven synchronously.
108
+ def tick
109
+ claim_requests
110
+ @poller.poll_once.each { |watch| answer(watch) }
111
+ end
112
+
113
+ private
114
+
115
+ def run
116
+ until @mutex.synchronize { @stop }
117
+ tick
118
+ sleep(@tick)
119
+ end
120
+ rescue => error
121
+ warn("[kettle-family] probe dispatcher stopped: #{error.class}: #{error.message}")
122
+ end
123
+
124
+ def claim_requests
125
+ Dir.glob(File.join(@dir, "*.req")).sort.each do |req|
126
+ begin
127
+ data = JSON.parse(File.read(req))
128
+ FileUtils.rm_f(req)
129
+ watch = @poller.add(data.fetch("gem"), data.fetch("version"))
130
+ ProbeDispatch.write_atomic(ProbeDispatch.path(@dir, watch.key, "ack"), {"claimed" => true})
131
+ rescue JSON::ParserError, KeyError, SystemCallError
132
+ FileUtils.rm_f(req)
133
+ end
134
+ end
135
+ end
136
+
137
+ def answer(watch)
138
+ ProbeDispatch.write_atomic(
139
+ ProbeDispatch.path(@dir, watch.key, "res"),
140
+ {"outcome" => watch.outcome.to_s, "attempts" => watch.attempts, "upstream_confirmed" => watch.upstream_confirmed}
141
+ )
142
+ end
143
+ end
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,178 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "net/http"
4
+ require "openssl"
5
+ require "timeout"
6
+ require "uri"
7
+
8
+ module Kettle
9
+ module Dev
10
+ # Cheap "can a consumer resolve this exact gem version from this registry"
11
+ # checks, plus the single poller implementation shared by kettle-release
12
+ # (one watch, local) and the family poll dispatcher (many watches).
13
+ #
14
+ # The old probe ran `bundler/inline` in a fresh GEM_HOME on every attempt,
15
+ # i.e. a full resolve + download + install of the gem and its whole
16
+ # dependency tree, per member, per attempt, all members at once. The
17
+ # question being asked is only "has the registry published this version",
18
+ # which Bundler itself answers from the compact index. So ask exactly that,
19
+ # with two small HTTP requests, instead of reproducing a consumer install.
20
+ module RegistryAvailability
21
+ OPEN_TIMEOUT_SECONDS = 5
22
+ READ_TIMEOUT_SECONDS = 10
23
+
24
+ # Outcome of one registry question. +nil+ means "could not tell" and is
25
+ # never read as "absent".
26
+ module Checker
27
+ module_function
28
+
29
+ # True when the compact index lists +version+ for +gem_name+ AND the
30
+ # .gem artifact is reachable. The index is what Bundler resolves from;
31
+ # the artifact is what it then downloads, and a mirror can serve one
32
+ # before the other.
33
+ def visible?(gem_name, version, source:)
34
+ return false unless index_lists_version?(gem_name, version, source: source)
35
+
36
+ artifact_reachable?(gem_name, version, source: source)
37
+ rescue SystemCallError, Timeout::Error, IOError, SocketError, OpenSSL::SSL::SSLError
38
+ nil
39
+ end
40
+
41
+ # The index alone, for the push-target registry: it only has to answer
42
+ # "did the push land", not "can a consumer download it yet".
43
+ def published?(gem_name, version, source:)
44
+ index_lists_version?(gem_name, version, source: source)
45
+ rescue SystemCallError, Timeout::Error, IOError, SocketError, OpenSSL::SSL::SSLError
46
+ nil
47
+ end
48
+
49
+ def index_lists_version?(gem_name, version, source:)
50
+ response = get(URI("#{source.to_s.sub(%r{/+\z}, "")}/info/#{gem_name}"), head: false)
51
+ return false unless response.is_a?(Net::HTTPSuccess)
52
+
53
+ # Compact index: "<version>[-<platform>] <deps>|checksum:..." per line.
54
+ response.body.to_s.each_line.any? do |line|
55
+ token = line.split(" ", 2).first.to_s
56
+ token == version.to_s || token.start_with?("#{version}-")
57
+ end
58
+ end
59
+
60
+ def artifact_reachable?(gem_name, version, source:)
61
+ response = get(URI("#{source.to_s.sub(%r{/+\z}, "")}/gems/#{gem_name}-#{version}.gem"), head: true)
62
+ response.is_a?(Net::HTTPSuccess) || response.is_a?(Net::HTTPRedirection)
63
+ end
64
+
65
+ def get(uri, head:)
66
+ request = (head ? Net::HTTP::Head : Net::HTTP::Get).new(uri)
67
+ # A stale proxy answer here would defeat the entire purpose.
68
+ request["Cache-Control"] = "no-cache"
69
+ request["Pragma"] = "no-cache"
70
+ Net::HTTP.start(
71
+ uri.host,
72
+ uri.port,
73
+ use_ssl: uri.scheme == "https",
74
+ open_timeout: OPEN_TIMEOUT_SECONDS,
75
+ read_timeout: READ_TIMEOUT_SECONDS
76
+ ) { |http| http.request(request) }
77
+ end
78
+ end
79
+
80
+ # One gem+version being waited on.
81
+ Watch = Struct.new(:gem_name, :version, :started_at, :attempts, :next_at, :upstream_confirmed, :outcome, :reason) do
82
+ def key
83
+ "#{gem_name}-#{version}"
84
+ end
85
+
86
+ def resolved?
87
+ !outcome.nil?
88
+ end
89
+ end
90
+
91
+ # Polls any number of watches from one place, on one shared schedule.
92
+ #
93
+ # Outcomes: :ok (mirror serves it), :upstream_only (timed out, but the
94
+ # push target serves it: the push is authoritative, mirror just lags),
95
+ # :failed (neither registry serves it by the deadline).
96
+ class Poller
97
+ DEFAULT_TIMEOUT_SECONDS = 20 * 60
98
+ DEFAULT_BASE_INTERVAL_SECONDS = 3
99
+ DEFAULT_MAX_INTERVAL_SECONDS = 30
100
+
101
+ attr_reader :source, :upstream, :timeout
102
+
103
+ def initialize(source:, upstream:, timeout: DEFAULT_TIMEOUT_SECONDS, base_interval: DEFAULT_BASE_INTERVAL_SECONDS,
104
+ max_interval: DEFAULT_MAX_INTERVAL_SECONDS, checker: Checker, clock: -> { Process.clock_gettime(Process::CLOCK_MONOTONIC) })
105
+ @source = source
106
+ @upstream = upstream
107
+ @timeout = timeout
108
+ @base_interval = base_interval
109
+ @max_interval = max_interval
110
+ @checker = checker
111
+ @clock = clock
112
+ @watches = {}
113
+ end
114
+
115
+ def add(gem_name, version)
116
+ key = "#{gem_name}-#{version}"
117
+ @watches[key] ||= Watch.new(gem_name.to_s, version.to_s, now, 0, now, false, nil, nil)
118
+ end
119
+
120
+ def watch(gem_name, version)
121
+ @watches["#{gem_name}-#{version}"]
122
+ end
123
+
124
+ def pending
125
+ @watches.values.reject(&:resolved?)
126
+ end
127
+
128
+ def pending?
129
+ !pending.empty?
130
+ end
131
+
132
+ # Seconds until the next watch is due (0 when one is due now), or nil
133
+ # when nothing is pending.
134
+ def seconds_until_due
135
+ due = pending.map(&:next_at).min
136
+ return nil unless due
137
+
138
+ [due - now, 0].max
139
+ end
140
+
141
+ # Checks every due watch once. Returns the watches that resolved in
142
+ # this pass.
143
+ def poll_once
144
+ resolved = []
145
+ pending.each do |watch|
146
+ next if watch.next_at > now
147
+
148
+ watch.attempts += 1
149
+ if @checker.visible?(watch.gem_name, watch.version, source: @source) == true
150
+ watch.outcome = :ok
151
+ else
152
+ watch.upstream_confirmed ||= (@checker.published?(watch.gem_name, watch.version, source: @upstream) == true)
153
+ if now - watch.started_at >= @timeout
154
+ watch.outcome = watch.upstream_confirmed ? :upstream_only : :failed
155
+ else
156
+ watch.next_at = now + interval(watch.attempts)
157
+ end
158
+ end
159
+ resolved << watch if watch.resolved?
160
+ end
161
+ resolved
162
+ end
163
+
164
+ # Grows 1.4x per attempt from the base, capped. A fast mirror passes on
165
+ # attempt 1; a slow one is polled gently, not hammered.
166
+ def interval(attempt)
167
+ [(@base_interval * (1.4**(attempt - 1))).round, @max_interval].min
168
+ end
169
+
170
+ private
171
+
172
+ def now
173
+ @clock.call
174
+ end
175
+ end
176
+ end
177
+ end
178
+ end
@@ -2341,7 +2341,89 @@ module Kettle
2341
2341
  MSG
2342
2342
  end
2343
2343
 
2344
+ # Default "index" mode asks the registry whether the version is
2345
+ # published (compact index + artifact reachability: two small HTTP
2346
+ # requests), via the family's central dispatcher when one is serving and
2347
+ # a local poller otherwise. "install" mode is the legacy probe that
2348
+ # resolves and installs the gem plus its dependency tree into a throwaway
2349
+ # GEM_HOME on every attempt; it is far heavier and kept only as an
2350
+ # explicit fallback (KETTLE_DEV_RELEASE_PROBE_MODE=install).
2344
2351
  def run_release_availability_probe(candidate)
2352
+ return run_install_availability_probe(candidate) if release_probe_mode == "install"
2353
+
2354
+ run_index_availability_probe(candidate)
2355
+ end
2356
+
2357
+ def release_probe_mode
2358
+ ENV.fetch("KETTLE_DEV_RELEASE_PROBE_MODE", "index").to_s.strip.downcase
2359
+ end
2360
+
2361
+ def release_probe_timeout_seconds
2362
+ env_positive_integer("KETTLE_DEV_RELEASE_PROBE_TIMEOUT") || Kettle::Dev::RegistryAvailability::Poller::DEFAULT_TIMEOUT_SECONDS
2363
+ end
2364
+
2365
+ def run_index_availability_probe(candidate)
2366
+ timeout = release_probe_timeout_seconds
2367
+ emit_release_probe_event(action: "availability", status: "started", candidate: candidate, attempt: 1, attempts: nil)
2368
+ puts("Validating #{candidate.gem_name} #{candidate.version} from #{RELEASE_VALIDATION_SOURCE} (registry index)")
2369
+ dispatch_dir = Kettle::Dev::ProbeDispatch.dir_from_env
2370
+ outcome = if dispatch_dir
2371
+ answer = Kettle::Dev::ProbeDispatch::Client.await(
2372
+ dir: dispatch_dir, gem_name: candidate.gem_name, version: candidate.version, result_timeout: timeout
2373
+ )
2374
+ answer && {outcome: answer.fetch("outcome").to_sym, attempts: answer["attempts"].to_i, upstream: answer["upstream_confirmed"]}
2375
+ end
2376
+ outcome ||= poll_registry_locally(candidate, timeout)
2377
+ finish_index_availability_probe(candidate, outcome)
2378
+ end
2379
+
2380
+ def poll_registry_locally(candidate, timeout)
2381
+ poller = Kettle::Dev::RegistryAvailability::Poller.new(
2382
+ source: RELEASE_VALIDATION_SOURCE, upstream: RELEASE_UPSTREAM_SOURCE, timeout: timeout
2383
+ )
2384
+ watch = poller.add(candidate.gem_name, candidate.version)
2385
+ loop do
2386
+ poller.poll_once
2387
+ break if watch.resolved?
2388
+
2389
+ if watch.attempts == 1 || (watch.attempts % 5).zero?
2390
+ emit_release_probe_event(
2391
+ action: "availability", status: "retrying", candidate: candidate, attempt: watch.attempts, attempts: nil,
2392
+ reason: "not yet on #{RELEASE_VALIDATION_SOURCE}", upstream: watch.upstream_confirmed ? "confirmed" : "unconfirmed"
2393
+ )
2394
+ end
2395
+ sleep(poller.seconds_until_due.to_f)
2396
+ end
2397
+ {outcome: watch.outcome, attempts: watch.attempts, upstream: watch.upstream_confirmed}
2398
+ end
2399
+
2400
+ def finish_index_availability_probe(candidate, outcome)
2401
+ attempts = outcome.fetch(:attempts)
2402
+ upstream = outcome[:upstream] ? "confirmed" : "unconfirmed"
2403
+ case outcome.fetch(:outcome)
2404
+ when :ok
2405
+ emit_release_probe_event(action: "availability", status: "ok", candidate: candidate, attempt: attempts, attempts: nil, upstream: upstream)
2406
+ puts("Validated #{candidate.gem_name} #{candidate.version} from #{RELEASE_VALIDATION_SOURCE}")
2407
+ true
2408
+ when :upstream_only
2409
+ warn(<<~MSG)
2410
+ WARNING: #{candidate.gem_name} #{candidate.version} is published on #{RELEASE_UPSTREAM_SOURCE}, but #{RELEASE_VALIDATION_SOURCE} has not synced it after #{attempts} check(s).
2411
+ Proceeding because the push target is authoritative for the publish; downstream release steps resolve from #{RELEASE_VALIDATION_SOURCE} and retry on their own.
2412
+ If a later step fails to resolve this gem, wait for #{RELEASE_VALIDATION_SOURCE} to sync and resume that member.
2413
+ MSG
2414
+ emit_release_probe_event(
2415
+ action: "availability", status: "ok", candidate: candidate, attempt: attempts, attempts: nil,
2416
+ reason: "confirmed on #{RELEASE_UPSTREAM_SOURCE}; #{RELEASE_VALIDATION_SOURCE} sync pending", upstream: "confirmed"
2417
+ )
2418
+ true
2419
+ else
2420
+ emit_release_probe_event(action: "availability", status: "failed", candidate: candidate, attempt: attempts, attempts: nil, upstream: upstream)
2421
+ abort("Published gem availability probe failed for #{candidate.gem_name} #{candidate.version} after #{attempts} check(s); " \
2422
+ "the version is not visible on #{RELEASE_UPSTREAM_SOURCE} either, so the push itself may have failed")
2423
+ end
2424
+ end
2425
+
2426
+ def run_install_availability_probe(candidate)
2345
2427
  script_path = write_release_availability_probe(candidate)
2346
2428
  attempts = release_availability_probe_attempts
2347
2429
  last_stderr = nil
@@ -5,7 +5,7 @@ module Kettle
5
5
  # Version namespace for this gem.
6
6
  module Version
7
7
  # Current gem version.
8
- VERSION = "3.1.36"
8
+ VERSION = "3.1.37"
9
9
  end
10
10
  # Current gem version exposed at the traditional constant location.
11
11
  VERSION = Version::VERSION # Traditional Constant Location
data/lib/kettle/dev.rb CHANGED
@@ -37,6 +37,8 @@ module Kettle
37
37
  autoload :DvcsCLI, "kettle/dev/dvcs_cli"
38
38
  autoload :ExitAdapter, "kettle/dev/exit_adapter"
39
39
  autoload :RubyGemsVersions, "kettle/dev/ruby_gems_versions"
40
+ autoload :RegistryAvailability, "kettle/dev/registry_availability"
41
+ autoload :ProbeDispatch, "kettle/dev/probe_dispatch"
40
42
  autoload :GemSpecReader, "kettle/dev/gem_spec_reader"
41
43
  autoload :GemSourceProbe, "kettle/dev/gem_source_probe"
42
44
  autoload :GitAdapter, "kettle/dev/git_adapter"
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kettle-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.36
4
+ version: 3.1.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -445,6 +445,7 @@ files:
445
445
  - lib/kettle/dev/open_collective_config.rb
446
446
  - lib/kettle/dev/paths.rb
447
447
  - lib/kettle/dev/pre_release_cli.rb
448
+ - lib/kettle/dev/probe_dispatch.rb
448
449
  - lib/kettle/dev/rakelib/appraisal.rake
449
450
  - lib/kettle/dev/rakelib/bench.rake
450
451
  - lib/kettle/dev/rakelib/bundle_audit.rake
@@ -457,6 +458,7 @@ files:
457
458
  - lib/kettle/dev/readme_backers.rb
458
459
  - lib/kettle/dev/rebase.rb
459
460
  - lib/kettle/dev/rebase_cli.rb
461
+ - lib/kettle/dev/registry_availability.rb
460
462
  - lib/kettle/dev/release_cli.rb
461
463
  - lib/kettle/dev/release_graph_contract.rb
462
464
  - lib/kettle/dev/release_notifier.rb
@@ -477,10 +479,10 @@ licenses:
477
479
  - AGPL-3.0-only
478
480
  metadata:
479
481
  homepage_uri: "https://kettle-dev.galtzo.com"
480
- source_code_uri: "https://github.com/kettle-dev/kettle-dev/tree/v3.1.36"
481
- changelog_uri: "https://github.com/kettle-dev/kettle-dev/blob/v3.1.36/CHANGELOG.md"
482
+ source_code_uri: "https://github.com/kettle-dev/kettle-dev/tree/v3.1.37"
483
+ changelog_uri: "https://github.com/kettle-dev/kettle-dev/blob/v3.1.37/CHANGELOG.md"
482
484
  bug_tracker_uri: "https://github.com/kettle-dev/kettle-dev/issues"
483
- documentation_uri: "https://www.rubydoc.info/gems/kettle-dev/3.1.36"
485
+ documentation_uri: "https://www.rubydoc.info/gems/kettle-dev/3.1.37"
484
486
  funding_uri: "https://github.com/sponsors/pboling"
485
487
  wiki_uri: "https://github.com/kettle-dev/kettle-dev/wiki"
486
488
  news_uri: "https://www.railsbling.com/tags/kettle-dev"
metadata.gz.sig CHANGED
Binary file