kettle-family 1.3.37 → 1.3.39
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
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +45 -1
- data/README.md +2 -114
- data/lib/kettle/family/cli.rb +13 -2
- data/lib/kettle/family/command_runner.rb +6 -6
- data/lib/kettle/family/config.rb +16 -0
- data/lib/kettle/family/discovery.rb +5 -0
- data/lib/kettle/family/mise_tasks.rb +7 -0
- data/lib/kettle/family/release_state_check.rb +11 -6
- data/lib/kettle/family/report.rb +1 -1
- data/lib/kettle/family/version.rb +1 -1
- data/lib/kettle/family/workflow.rb +109 -19
- data.tar.gz.sig +0 -0
- metadata +12 -12
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00ada16f8c2669a9c44af0c59020f24d1cc75c001b21071928d000ee1153db24
|
|
4
|
+
data.tar.gz: 6ede956bf32b54f38edf97e761a9042770e754c56c5b35a60f3bb5f7dc63433a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d393bbecccec9c2accaf8c96f2069824a6dcb225d32d288b32d02d3f2eda94a3a240d6b6e7b68bedf985c0bea7c573083e3ddddf19e0b3936b9cdbd91d486292
|
|
7
|
+
data.tar.gz: fcd14569fdded3e35eca87b737e1c3acc9e8c8678915d532f639339a56a425f44c8516382d5aea04700d8b8d80a77bdae3661f791c356e9e11a6e17bf3d18a47
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,46 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [1.3.39] - 2026-11-08
|
|
34
|
+
|
|
35
|
+
- TAG: [v1.3.39][1.3.39t]
|
|
36
|
+
- COVERAGE: 93.21% -- 7755/8320 lines in 45 files
|
|
37
|
+
- BRANCH COVERAGE: 77.55% -- 3122/4026 branches in 45 files
|
|
38
|
+
- 39.49% documented
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- Executed bundle updates now show planning and per-member phase progress as they run, summarize completed, failed, unfinished, and unstarted members on failure or interruption, and omit routine successful command output from the text report. Discovery also avoids evaluating the same configured and discovered gemspec twice.
|
|
43
|
+
|
|
44
|
+
- Generated [pins] mise task now prefixes env KETTLE_GHA_PINS_OFFLINE_FALLBACK=true so member pins runs fetch live from the GitHub API on a persistent-cache miss (newly introduced actions no longer fail the family pins run with 'offline cache miss'). Env switch, not a CLI flag, so members resolving an older kettle-gha-pins ignore it.
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
|
|
48
|
+
- Release state now uses the checked-out branch's release line, Git counts, and exact GitHub release when a member is on a configured stack branch, while retaining the separate branch report.
|
|
49
|
+
|
|
50
|
+
## [1.3.38] - 2026-11-07
|
|
51
|
+
|
|
52
|
+
- TAG: [v1.3.38][1.3.38t]
|
|
53
|
+
- COVERAGE: 93.15% -- 7697/8263 lines in 45 files
|
|
54
|
+
- BRANCH COVERAGE: 77.57% -- 3089/3982 branches in 45 files
|
|
55
|
+
- 39.53% documented
|
|
56
|
+
|
|
57
|
+
### Added
|
|
58
|
+
|
|
59
|
+
- [kc] template-root-outputs: Monorepo template runs can now update explicitly configured repository-root output paths through the template.root_outputs setting, alongside the nested member being templated. Those outputs are isolated, validated, synchronized, and committed with the template changes.
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- [kc] kettle-jem/prepare: updated 13 project files:
|
|
64
|
+
- configuration (2)
|
|
65
|
+
- dependencies (11)
|
|
66
|
+
|
|
67
|
+
- [kc] kettle-jem/template: updated 7 project files:
|
|
68
|
+
- code and tests (2)
|
|
69
|
+
- dependencies (3)
|
|
70
|
+
- documentation (1)
|
|
71
|
+
- other (1)
|
|
72
|
+
|
|
33
73
|
## [1.3.37] - 2026-10-30
|
|
34
74
|
|
|
35
75
|
- TAG: [v1.3.37][1.3.37t]
|
|
@@ -3343,7 +3383,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
3343
3383
|
- Fixed CI load failures on engines without compatible `pty` support by falling back to Open3 for interactive release commands.
|
|
3344
3384
|
- Fixed Ruby 3.2 version-bump support by loading Prism lazily and wiring the Prism gem only for MRI versions that need it.
|
|
3345
3385
|
|
|
3346
|
-
[Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.
|
|
3386
|
+
[Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.39...HEAD
|
|
3387
|
+
[1.3.39]: https://github.com/kettle-dev/kettle-family/compare/v1.3.38...v1.3.39
|
|
3388
|
+
[1.3.39t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.39
|
|
3389
|
+
[1.3.38]: https://github.com/kettle-dev/kettle-family/compare/v1.3.37...v1.3.38
|
|
3390
|
+
[1.3.38t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.38
|
|
3347
3391
|
[1.3.37]: https://github.com/kettle-dev/kettle-family/compare/v1.3.36...v1.3.37
|
|
3348
3392
|
[1.3.37t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.37
|
|
3349
3393
|
[1.3.36]: https://github.com/kettle-dev/kettle-family/compare/v1.3.35...v1.3.36
|
data/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
`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
12
|
|
|
13
|
-
[![
|
|
13
|
+
[![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
14
|
|
|
15
15
|
<details markdown="1">
|
|
16
16
|
<summary>👣 How will this project approach the September 2025 hostile takeover of RubyGems? 🚑️</summary>
|
|
@@ -91,28 +91,6 @@ The _amazing_ test matrix is powered by the kettle-dev stack.
|
|
|
91
91
|
|
|
92
92
|
</details>
|
|
93
93
|
|
|
94
|
-
### Federated DVCS
|
|
95
|
-
|
|
96
|
-
<details markdown="1">
|
|
97
|
-
<summary>Find this repo on federated forges (Coming soon!)</summary>
|
|
98
|
-
|
|
99
|
-
| Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
|
|
100
|
-
|-------------------------------------------------|-------------------------------------------|-------------------|------------------|-----------------|----------------|
|
|
101
|
-
| 🧪 [kettle-dev/kettle-family on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
|
|
102
|
-
| 🧊 [kettle-dev/kettle-family on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
|
|
103
|
-
| 🐙 [kettle-dev/kettle-family on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
|
|
104
|
-
|
|
105
|
-
</details>
|
|
106
|
-
|
|
107
|
-
### Enterprise Support
|
|
108
|
-
|
|
109
|
-
For enterprise support from the maintainer, use [Upwork][👨🏼🏫expsup-upwork] or [CodeMentor][👨🏼🏫expsup-codementor].
|
|
110
|
-
|
|
111
|
-
Other support channels:
|
|
112
|
-
|
|
113
|
-
- [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
114
|
-
- [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
115
|
-
|
|
116
94
|
## ✨ Installation
|
|
117
95
|
|
|
118
96
|
Install the gem and add to the application's Gemfile by executing:
|
|
@@ -955,36 +933,6 @@ We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you m
|
|
|
955
933
|
|
|
956
934
|
See [CONTRIBUTING.md][🤝contributing] for more detailed instructions.
|
|
957
935
|
|
|
958
|
-
### 🚀 Release Instructions
|
|
959
|
-
|
|
960
|
-
See [CONTRIBUTING.md][🤝contributing].
|
|
961
|
-
|
|
962
|
-
### Code Coverage
|
|
963
|
-
|
|
964
|
-
<details markdown="1">
|
|
965
|
-
<summary>Coverage service badges</summary>
|
|
966
|
-
|
|
967
|
-
[![Coverage Graph][🏀codecov-g]][🏀codecov]
|
|
968
|
-
|
|
969
|
-
[![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls]
|
|
970
|
-
|
|
971
|
-
[![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov]
|
|
972
|
-
|
|
973
|
-
</details>
|
|
974
|
-
|
|
975
|
-
### 🪇 Code of Conduct
|
|
976
|
-
|
|
977
|
-
Everyone interacting with this project's codebases, issue trackers,
|
|
978
|
-
chat rooms and mailing lists agrees to follow the [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct].
|
|
979
|
-
|
|
980
|
-
## 🌈 Contributors
|
|
981
|
-
|
|
982
|
-
[![Contributors][🖐contributors-img]][🖐contributors]
|
|
983
|
-
|
|
984
|
-
Made with [contributors-img][🖐contrib-rocks].
|
|
985
|
-
|
|
986
|
-
Also see GitLab Contributors: [https://gitlab.com/kettle-dev/kettle-family/-/graphs/main][🚎contributors-gl]
|
|
987
|
-
|
|
988
936
|
## 📌 Versioning
|
|
989
937
|
|
|
990
938
|
This library follows [![Semantic Versioning 2.0.0][📌semver-img]][📌semver] for its public API where practical.
|
|
@@ -1018,55 +966,9 @@ See [LICENSE.md][📄license] for details.
|
|
|
1018
966
|
|
|
1019
967
|
If none of the available licenses suit your use case, please [contact us](mailto:floss@galtzo.com) to discuss a custom commercial license.
|
|
1020
968
|
|
|
1021
|
-
### © Copyright
|
|
1022
|
-
|
|
1023
|
-
See [LICENSE.md][📄license] for the official copyright notice.
|
|
1024
|
-
|
|
1025
|
-
<details markdown="1">
|
|
1026
|
-
<summary>Copyright holders</summary>
|
|
1027
|
-
|
|
1028
|
-
- Copyright (c) 2026 Peter H. Boling
|
|
1029
|
-
|
|
1030
|
-
</details>
|
|
1031
|
-
|
|
1032
|
-
## 🤑 A request for help
|
|
1033
|
-
|
|
1034
|
-
Maintainers have teeth and need to pay their dentists.
|
|
1035
|
-
After getting laid off in an RIF in March, and encountering difficulty finding a new one,
|
|
1036
|
-
I began spending most of my time building open source tools.
|
|
1037
|
-
I'm hoping to be able to pay for my kids' health insurance this month,
|
|
1038
|
-
so if you value the work I am doing, I need your support.
|
|
1039
|
-
Please consider sponsoring me or the project.
|
|
1040
|
-
|
|
1041
|
-
To join the community or get help, use the RubyForum or Discord.
|
|
1042
|
-
|
|
1043
|
-
[![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
1044
|
-
[![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
1045
|
-
|
|
1046
|
-
To say "thanks!" ☝️ Join the community or 👇️ send money.
|
|
1047
|
-
|
|
1048
|
-
[![Sponsor kettle-dev/kettle-family 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]
|
|
1049
|
-
|
|
1050
|
-
### Please give the project a star ⭐ ♥.
|
|
1051
|
-
|
|
1052
|
-
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.
|
|
1053
|
-
|
|
1054
|
-
Thanks for RTFM. ☺️
|
|
1055
|
-
|
|
1056
969
|
[⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
|
|
1057
970
|
[⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
|
|
1058
971
|
[⛳liberapay]: https://liberapay.com/pboling/donate
|
|
1059
|
-
[🖇osc-all-img]: https://img.shields.io/opencollective/all/kettle-dev
|
|
1060
|
-
[🖇osc-sponsors-img]: https://img.shields.io/opencollective/sponsors/kettle-dev
|
|
1061
|
-
[🖇osc-backers-img]: https://img.shields.io/opencollective/backers/kettle-dev
|
|
1062
|
-
[🖇osc-backers]: https://opencollective.com/kettle-dev#backer
|
|
1063
|
-
[🖇osc-backers-i]: https://opencollective.com/kettle-dev/backers/badge.svg?style=flat
|
|
1064
|
-
[🖇osc-sponsors]: https://opencollective.com/kettle-dev#sponsor
|
|
1065
|
-
[🖇osc-sponsors-i]: https://opencollective.com/kettle-dev/sponsors/badge.svg?style=flat
|
|
1066
|
-
[🖇osc-all-bottom-img]: https://img.shields.io/opencollective/all/kettle-dev?style=for-the-badge
|
|
1067
|
-
[🖇osc-sponsors-bottom-img]: https://img.shields.io/opencollective/sponsors/kettle-dev?style=for-the-badge
|
|
1068
|
-
[🖇osc-backers-bottom-img]: https://img.shields.io/opencollective/backers/kettle-dev?style=for-the-badge
|
|
1069
|
-
[🖇osc]: https://opencollective.com/kettle-dev
|
|
1070
972
|
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
|
|
1071
973
|
[🖇sponsor-bottom-img]: https://img.shields.io/badge/Sponsor_Me!-pboling-blue?style=for-the-badge&logo=github
|
|
1072
974
|
[🖇sponsor]: https://github.com/sponsors/pboling
|
|
@@ -1087,7 +989,6 @@ Thanks for RTFM. ☺️
|
|
|
1087
989
|
[✉️ruby-forum-top-img]: https://img.shields.io/discourse/topics?server=https%3A%2F%2Fwww.rubyforum.org&style=flat&logo=discourse&label=Ruby%20Users%20Forum
|
|
1088
990
|
[✉️ruby-forum-img]: https://img.shields.io/discourse/topics?server=https%3A%2F%2Fwww.rubyforum.org&style=for-the-badge&logo=discourse&label=Ruby%20Users%20Forum
|
|
1089
991
|
[✉️ruby-forum]: https://www.rubyforum.org/tag/kettle-dev
|
|
1090
|
-
|
|
1091
992
|
[✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
|
|
1092
993
|
[⛳️gem-namespace]: https://github.com/kettle-dev/kettle-family
|
|
1093
994
|
[⛳️namespace-img]: https://img.shields.io/badge/namespace-Kettle::Family-3C2D2D.svg?style=square&logo=ruby&logoColor=white
|
|
@@ -1177,7 +1078,6 @@ Thanks for RTFM. ☺️
|
|
|
1177
1078
|
[🖐contrib-rocks]: https://contrib.rocks
|
|
1178
1079
|
[🖐contributors]: https://github.com/kettle-dev/kettle-family/graphs/contributors
|
|
1179
1080
|
[🖐contributors-img]: https://contrib.rocks/image?repo=kettle-dev/kettle-family
|
|
1180
|
-
[🚎contributors-gl]: https://gitlab.com/kettle-dev/kettle-family/-/graphs/main
|
|
1181
1081
|
[🪇conduct]: https://github.com/kettle-dev/kettle-family/blob/main/CODE_OF_CONDUCT.md
|
|
1182
1082
|
[🪇conduct-img]: https://img.shields.io/badge/Contributor_Covenant-2.1-259D6C.svg
|
|
1183
1083
|
[📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
|
@@ -1191,7 +1091,7 @@ Thanks for RTFM. ☺️
|
|
|
1191
1091
|
[📌gitmoji]: https://gitmoji.dev
|
|
1192
1092
|
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
1193
1093
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
1194
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-8.
|
|
1094
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-8.320-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
1195
1095
|
[🔐security]: https://github.com/kettle-dev/kettle-family/blob/main/SECURITY.md
|
|
1196
1096
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
1197
1097
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
@@ -1200,7 +1100,6 @@ Thanks for RTFM. ☺️
|
|
|
1200
1100
|
[📄license-img]: https://img.shields.io/badge/License-AGPL--3.0--only-259D6C.svg
|
|
1201
1101
|
[📄license-compat]: https://www.apache.org/legal/resolved.html#category-x
|
|
1202
1102
|
[📄license-compat-img]: https://img.shields.io/badge/Apache_Incompatible:_Category_X-%E2%9C%97-C0392B.svg?style=flat&logo=Apache
|
|
1203
|
-
|
|
1204
1103
|
[📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
|
|
1205
1104
|
[📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
|
|
1206
1105
|
[🚎yard-current]: http://rubydoc.info/gems/kettle-family
|
|
@@ -1212,14 +1111,3 @@ Thanks for RTFM. ☺️
|
|
|
1212
1111
|
[💎appraisal2]: https://github.com/appraisal-rb/appraisal2
|
|
1213
1112
|
[💎appraisal2-img]: https://img.shields.io/badge/appraised_by-appraisal2-34495e.svg?plastic&logo=ruby&logoColor=white
|
|
1214
1113
|
[💎d-in-dvcs]: https://railsbling.com/posts/dvcs/put_the_d_in_dvcs/
|
|
1215
|
-
|
|
1216
|
-
<!-- kettle-jem:metadata:start -->
|
|
1217
|
-
| Field | Value |
|
|
1218
|
-
|---|---|
|
|
1219
|
-
| Package | kettle-family |
|
|
1220
|
-
| Description | 👩👩👧👧 Kettle::Family provides scripts and conventions for coordinating related Ruby gems as one family. |
|
|
1221
|
-
| Homepage | https://github.com/kettle-dev/kettle-family |
|
|
1222
|
-
| Source | https://github.com/kettle-dev/kettle-family |
|
|
1223
|
-
| License | `AGPL-3.0-only` |
|
|
1224
|
-
| Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/kettle-dev, https://thanks.dev/u/gh/pboling, https://www.buymeacoffee.com/pboling |
|
|
1225
|
-
<!-- kettle-jem:metadata:end -->
|
data/lib/kettle/family/cli.rb
CHANGED
|
@@ -859,6 +859,8 @@ module Kettle
|
|
|
859
859
|
end
|
|
860
860
|
|
|
861
861
|
def build_report(command, options)
|
|
862
|
+
planning_started = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
863
|
+
planning_progress(command, options, "planning started")
|
|
862
864
|
config = Config.load(root: options[:root], path: options[:config])
|
|
863
865
|
start_at = parse_start_at(options[:start_at])
|
|
864
866
|
Selection.validate_positional_start_at!(command, start_at.member, branch: start_at.branch)
|
|
@@ -871,6 +873,7 @@ module Kettle
|
|
|
871
873
|
release_dependency_member_names: (command == "release") ? nil : direct_member_only_names(effective_only)
|
|
872
874
|
)
|
|
873
875
|
members = discovery.members
|
|
876
|
+
planning_progress(command, options, "discovered #{members.size} members in #{format("%.1f", Process.clock_gettime(Process::CLOCK_MONOTONIC) - planning_started)}s; ordering")
|
|
874
877
|
ordered = if command == "install"
|
|
875
878
|
install_order(members, config)
|
|
876
879
|
elsif command == "metadata"
|
|
@@ -894,6 +897,7 @@ module Kettle
|
|
|
894
897
|
members: ordered,
|
|
895
898
|
release_state_results: release_state_results
|
|
896
899
|
).apply(only: effective_only, exclude: options[:exclude], start_at: start_at.member)
|
|
900
|
+
planning_progress(command, options, "planning complete in #{format("%.1f", Process.clock_gettime(Process::CLOCK_MONOTONIC) - planning_started)}s; #{selected.size} selected")
|
|
897
901
|
options = options.merge(template_branch_selection: branch_selection)
|
|
898
902
|
result_members = selected
|
|
899
903
|
display_members = display_members_for(command: command, config: config, members: ordered, selected_members: selected)
|
|
@@ -1130,13 +1134,20 @@ module Kettle
|
|
|
1130
1134
|
end
|
|
1131
1135
|
|
|
1132
1136
|
def progress_io(command, options)
|
|
1133
|
-
return nil unless %w[release template gha-sha-pins].include?(command)
|
|
1137
|
+
return nil unless %w[release template gha-sha-pins bup bupb update-bundler].include?(command)
|
|
1134
1138
|
return nil unless options[:execute]
|
|
1135
|
-
return nil if options[:json]
|
|
1139
|
+
return nil if options[:json] || (options[:events] && %w[bup bupb update-bundler].include?(command))
|
|
1136
1140
|
|
|
1137
1141
|
stdout
|
|
1138
1142
|
end
|
|
1139
1143
|
|
|
1144
|
+
def planning_progress(command, options, message)
|
|
1145
|
+
return unless %w[bup bupb update-bundler].include?(command) && progress_io(command, options)
|
|
1146
|
+
|
|
1147
|
+
stdout.puts("#{command}: #{message}")
|
|
1148
|
+
stdout.flush if stdout.respond_to?(:flush)
|
|
1149
|
+
end
|
|
1150
|
+
|
|
1140
1151
|
def release_state_progress(command:, config:, members:, options:)
|
|
1141
1152
|
return nil unless command == "release-state"
|
|
1142
1153
|
return nil if options[:events] || options[:json]
|
|
@@ -232,19 +232,19 @@ module Kettle
|
|
|
232
232
|
@mise_adapter = mise_adapter || Kettle::Family.mise_adapter
|
|
233
233
|
end
|
|
234
234
|
|
|
235
|
-
def call(member:, phase:, command:, env: {}, interactive: false, raw: false, stdout_line_handler: nil, log_path: nil, passthrough_output: true)
|
|
235
|
+
def call(member:, phase:, command:, env: {}, interactive: false, raw: false, stdout_line_handler: nil, log_path: nil, passthrough_output: true, chdir: member.root, **options)
|
|
236
236
|
argv = command_argv(member: member, command: command, env: env, raw: raw)
|
|
237
237
|
process_env = process_env(member: member, env: env)
|
|
238
238
|
spawn_options = process_options
|
|
239
239
|
return skipped_result(member: member, phase: phase, argv: argv) unless execute
|
|
240
240
|
|
|
241
241
|
started = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
242
|
-
stdout, stderr, status = with_transcript(log_path, argv: argv, chdir:
|
|
242
|
+
stdout, stderr, status = with_transcript(log_path, argv: argv, chdir: chdir) do |log_io|
|
|
243
243
|
if interactive
|
|
244
244
|
run_interactive(
|
|
245
245
|
env: process_env,
|
|
246
246
|
argv: argv,
|
|
247
|
-
chdir:
|
|
247
|
+
chdir: chdir,
|
|
248
248
|
member_name: member.name,
|
|
249
249
|
process_options: spawn_options,
|
|
250
250
|
stdout_line_handler: stdout_line_handler,
|
|
@@ -252,9 +252,9 @@ module Kettle
|
|
|
252
252
|
passthrough_output: passthrough_output
|
|
253
253
|
)
|
|
254
254
|
elsif stdout_line_handler
|
|
255
|
-
run_streaming(env: process_env, argv: argv, chdir:
|
|
255
|
+
run_streaming(env: process_env, argv: argv, chdir: chdir, process_options: spawn_options, stdout_line_handler: stdout_line_handler, log_io: log_io)
|
|
256
256
|
else
|
|
257
|
-
result = Open3.capture3(process_env, *argv, chdir:
|
|
257
|
+
result = Open3.capture3(process_env, *argv, chdir: chdir, **spawn_options)
|
|
258
258
|
transcript_write(log_io, result[0])
|
|
259
259
|
transcript_write(log_io, result[1])
|
|
260
260
|
result
|
|
@@ -267,7 +267,7 @@ module Kettle
|
|
|
267
267
|
member_name: member.name,
|
|
268
268
|
phase: phase,
|
|
269
269
|
command: argv,
|
|
270
|
-
workdir:
|
|
270
|
+
workdir: chdir,
|
|
271
271
|
status: status.exitstatus,
|
|
272
272
|
success: status.success?,
|
|
273
273
|
stdout: stdout,
|
data/lib/kettle/family/config.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "yaml"
|
|
4
|
+
require "pathname"
|
|
4
5
|
|
|
5
6
|
module Kettle
|
|
6
7
|
module Family
|
|
@@ -208,6 +209,21 @@ module Kettle
|
|
|
208
209
|
fetch_path("template", "jobs")
|
|
209
210
|
end
|
|
210
211
|
|
|
212
|
+
# Root paths that a nested monorepo member's Kettle Jem run may update.
|
|
213
|
+
# These are explicit repository-relative output paths, never globs.
|
|
214
|
+
def template_root_outputs
|
|
215
|
+
paths = Array(fetch_path("template", "root_outputs"))
|
|
216
|
+
paths.map do |path|
|
|
217
|
+
value = path.to_s
|
|
218
|
+
expanded = File.expand_path(value, root)
|
|
219
|
+
unless !value.empty? && !value.end_with?("/") && !Pathname.new(value).absolute? && Paths.within?(expanded, root) && expanded != root
|
|
220
|
+
raise Error, "template.root_outputs entries must be repository-relative paths below the family root: #{value.inspect}"
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
Pathname.new(expanded).relative_path_from(Pathname.new(root)).to_s
|
|
224
|
+
end.uniq
|
|
225
|
+
end
|
|
226
|
+
|
|
211
227
|
# Additional local dependency selectors used by the generated
|
|
212
228
|
# `local-template` task. Values may use Mise's `{{config_root}}` token.
|
|
213
229
|
def template_local_env
|
|
@@ -130,6 +130,11 @@ module Kettle
|
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
def member_from_gemspec(path)
|
|
133
|
+
@members_by_gemspec ||= {}
|
|
134
|
+
@members_by_gemspec[File.expand_path(path)] ||= build_member_from_gemspec(path)
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
def build_member_from_gemspec(path)
|
|
133
138
|
spec = load_gemspec(path)
|
|
134
139
|
root = File.dirname(path)
|
|
135
140
|
dependencies = spec.runtime_dependencies.map(&:name).sort
|
|
@@ -390,6 +390,13 @@ module Kettle
|
|
|
390
390
|
flags = %w[branch-lanes discover metadata report mise-trust].include?(command) ? "" : " --execute"
|
|
391
391
|
flags += " --upgrade major" if name == "pins"
|
|
392
392
|
tasks[name] = "bundle exec kettle-family #{command}#{flags}"
|
|
393
|
+
# Member pins runs execute with --offline (appended in execute
|
|
394
|
+
# mode), which hard-fails on a cold cache entry for a newly
|
|
395
|
+
# introduced action. The env switch opts into kettle-gha-pins'
|
|
396
|
+
# live-fetch-on-miss fallback. It is an env var, not a CLI flag,
|
|
397
|
+
# so members still resolving an older kettle-gha-pins ignore it
|
|
398
|
+
# instead of dying on "invalid option".
|
|
399
|
+
tasks[name] = "env KETTLE_GHA_PINS_OFFLINE_FALLBACK=true #{tasks[name]}" if name == "pins"
|
|
393
400
|
end
|
|
394
401
|
tasks["readiness"] = "bundle exec kettle-family check --execute"
|
|
395
402
|
tasks["deps"] = "bundle exec kettle-family bup --execute --no-commit"
|
|
@@ -67,7 +67,7 @@ module Kettle
|
|
|
67
67
|
def checked_out_scoped_results?
|
|
68
68
|
return false unless branches&.one?
|
|
69
69
|
|
|
70
|
-
members.any? { |member| current_branch_for(member) == branches.first }
|
|
70
|
+
members.any? && members.all? { |member| current_branch_for(member) == branches.first }
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
def scoped_checkout_results(event_handler: nil)
|
|
@@ -111,7 +111,7 @@ module Kettle
|
|
|
111
111
|
[error_result(branch: branch, error: error)]
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
def check_member(member, branch: nil, event_handler: nil)
|
|
114
|
+
def check_member(member, branch: nil, state_branch: branch, event_handler: nil)
|
|
115
115
|
started = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
116
116
|
command = release_state_command(member)
|
|
117
117
|
emit_event(event_handler, member: member, branch: branch, action: "member_start", status: "running", command: command)
|
|
@@ -126,14 +126,14 @@ module Kettle
|
|
|
126
126
|
emit_event(event_handler, member: member, branch: branch, action: "changelog_command", status: success ? "ok" : "failed", elapsed_seconds: elapsed, status_code: status.exitstatus)
|
|
127
127
|
state = success ? JSON.parse(stdout) : {}
|
|
128
128
|
emit_event(event_handler, member: member, branch: branch, action: "computed_booleans", status: "running") if success
|
|
129
|
-
state = branch_filtered_state(member, state,
|
|
129
|
+
state = branch_filtered_state(member, state, state_branch) if success && state_branch
|
|
130
130
|
state = state_with_computed_booleans(state) if success
|
|
131
131
|
emit_event(event_handler, member: member, branch: branch, action: "computed_booleans", status: "ok") if success
|
|
132
132
|
emit_event(event_handler, member: member, branch: branch, action: "git_state", status: "running") if success
|
|
133
|
-
state = enrich_git_state(member.root, state, branch:
|
|
133
|
+
state = enrich_git_state(member.root, state, branch: state_branch) if success
|
|
134
134
|
emit_event(event_handler, member: member, branch: branch, action: "git_state", status: "ok") if success
|
|
135
135
|
emit_event(event_handler, member: member, branch: branch, action: "github_release", status: "running") if success
|
|
136
|
-
state = enrich_github_release(member.root, state, branch:
|
|
136
|
+
state = enrich_github_release(member.root, state, branch: state_branch, member: member) if success
|
|
137
137
|
emit_event(event_handler, member: member, branch: branch, action: "github_release", status: "ok") if success
|
|
138
138
|
emit_event(event_handler, member: member, branch: branch, action: "transfer_changelog", status: "running") if success
|
|
139
139
|
state = enrich_transfer_changelog_lag(member.root, state) if success
|
|
@@ -804,7 +804,12 @@ module Kettle
|
|
|
804
804
|
member_config = member_local_release_config(member)
|
|
805
805
|
return unless member_config
|
|
806
806
|
|
|
807
|
-
|
|
807
|
+
checkout = current_branch_for(member)
|
|
808
|
+
current_result = if member_config.release_target_branches.include?(checkout)
|
|
809
|
+
check_member(member, state_branch: checkout, event_handler: event_handler)
|
|
810
|
+
else
|
|
811
|
+
check_member(member, event_handler: event_handler)
|
|
812
|
+
end
|
|
808
813
|
[current_result, *self.class.new(config: member_config, members: [member]).results(event_handler: event_handler)]
|
|
809
814
|
end
|
|
810
815
|
|
data/lib/kettle/family/report.rb
CHANGED
|
@@ -261,7 +261,7 @@ module Kettle
|
|
|
261
261
|
end
|
|
262
262
|
|
|
263
263
|
def suppress_success_output?(result)
|
|
264
|
-
result.stdout.to_s.empty? || (
|
|
264
|
+
result.stdout.to_s.empty? || (%w[template bup bupb update-bundler].include?(command) && result.ok?)
|
|
265
265
|
end
|
|
266
266
|
|
|
267
267
|
def machine_readable_result?(result)
|
|
@@ -5,7 +5,7 @@ module Kettle
|
|
|
5
5
|
# Version namespace for this gem.
|
|
6
6
|
module Version
|
|
7
7
|
# Current gem version.
|
|
8
|
-
VERSION = "1.3.
|
|
8
|
+
VERSION = "1.3.39"
|
|
9
9
|
end
|
|
10
10
|
# Current gem version exposed at the traditional constant location.
|
|
11
11
|
VERSION = Version::VERSION # Traditional Constant Location
|
|
@@ -619,11 +619,16 @@ module Kettle
|
|
|
619
619
|
return test_member_workflow_results(workflow_members) if command == "test" && execute
|
|
620
620
|
|
|
621
621
|
runner = CommandRunner.new(execute: execute, accept: accept, mise_adapter: @mise_adapter)
|
|
622
|
+
bup_progress = start_bup_progress(workflow_members)
|
|
622
623
|
results = []
|
|
624
|
+
completed = []
|
|
625
|
+
started_members = []
|
|
626
|
+
failed = nil
|
|
627
|
+
runner = BupProgressRunner.new(runner, bup_progress, started_members) if bup_progress
|
|
623
628
|
update_family_root_bundle(runner: runner, memo: results) if %w[bup bupb update-bundler].include?(command)
|
|
624
629
|
return results unless results.all?(&:ok?)
|
|
625
630
|
|
|
626
|
-
results.concat(bup_bootstrap_dependency_results(workflow_members, runner: runner, memo: results)) if %w[bup bupb update-bundler].include?(command)
|
|
631
|
+
results.concat(bup_bootstrap_dependency_results(workflow_members, runner: runner, memo: results, progress: bup_progress)) if %w[bup bupb update-bundler].include?(command)
|
|
627
632
|
return results unless results.all?(&:ok?)
|
|
628
633
|
|
|
629
634
|
if %w[bup bupb update-bundler].include?(command) && release_mode_bundle_update?
|
|
@@ -636,6 +641,8 @@ module Kettle
|
|
|
636
641
|
end
|
|
637
642
|
gha_progress = (command == "gha-sha-pins") ? start_gha_sha_pins_progress(workflow_members) : nil
|
|
638
643
|
workflow_members.each_with_object(results) do |member, memo|
|
|
644
|
+
bup_progress&.start_member(member, total: 1, status: "starting")
|
|
645
|
+
started_members << member.name unless started_members.include?(member.name)
|
|
639
646
|
if command == "template" && config.normalize_lockfiles?
|
|
640
647
|
normalize_lockfiles(member: member, runner: runner, memo: memo, phase: "prepare_lockfiles")
|
|
641
648
|
break memo unless memo.last.ok?
|
|
@@ -657,7 +664,11 @@ module Kettle
|
|
|
657
664
|
)
|
|
658
665
|
memo << result
|
|
659
666
|
gha_progress&.finish_member(member, success: result.ok?, status: result.ok? ? "complete" : "failed")
|
|
660
|
-
|
|
667
|
+
unless result.ok?
|
|
668
|
+
failed = member.name
|
|
669
|
+
bup_progress&.finish_member(member, success: false, status: "failed")
|
|
670
|
+
break memo
|
|
671
|
+
end
|
|
661
672
|
|
|
662
673
|
normalize_lockfiles(member: member, runner: runner, memo: memo, phase: "normalize_lockfiles") if command == "template"
|
|
663
674
|
commit_gha_sha_pins(member: member, runner: runner, memo: memo) if command == "gha-sha-pins"
|
|
@@ -668,9 +679,50 @@ module Kettle
|
|
|
668
679
|
commit_bundle_update(member: member, runner: runner, memo: memo)
|
|
669
680
|
end
|
|
670
681
|
commit_bex_changes(member: member, runner: runner, memo: memo) if command == "bex"
|
|
682
|
+
if bup_progress
|
|
683
|
+
failed = member.name unless memo.last&.ok?
|
|
684
|
+
bup_progress.finish_member(member, success: failed.nil?, status: failed ? "failed" : "complete")
|
|
685
|
+
completed << member.name unless failed
|
|
686
|
+
break memo if failed
|
|
687
|
+
end
|
|
671
688
|
end
|
|
672
689
|
gha_progress&.finish
|
|
673
690
|
results
|
|
691
|
+
ensure
|
|
692
|
+
if bup_progress
|
|
693
|
+
failed ||= results.find { |result| !result.ok? }&.member_name
|
|
694
|
+
bup_progress.finish
|
|
695
|
+
remaining = workflow_members.map(&:name) - completed - Array(failed)
|
|
696
|
+
unfinished = remaining & started_members
|
|
697
|
+
unstarted = remaining - started_members
|
|
698
|
+
bup_progress.summary("#{command} summary: completed: #{completed.join(", ")}; failed: #{failed || "-"}; unfinished: #{unfinished.join(", ")}; unstarted: #{unstarted.join(", ")}")
|
|
699
|
+
end
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
class BupProgressRunner
|
|
703
|
+
def initialize(runner, progress, started_members)
|
|
704
|
+
@runner = runner
|
|
705
|
+
@progress = progress
|
|
706
|
+
@started_members = started_members
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
def call(member:, phase:, **options)
|
|
710
|
+
started = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
711
|
+
@started_members << member.name unless @started_members.include?(member.name)
|
|
712
|
+
@progress.update(member, status: "#{phase} started")
|
|
713
|
+
result = @runner.call(member: member, phase: phase, **options)
|
|
714
|
+
@progress.update(member, status: "#{phase} #{result.ok? ? "ok" : "failed"} (#{format("%.1f", Process.clock_gettime(Process::CLOCK_MONOTONIC) - started)}s)")
|
|
715
|
+
result
|
|
716
|
+
rescue Interrupt
|
|
717
|
+
@progress.update(member, status: "#{phase} interrupted (#{format("%.1f", Process.clock_gettime(Process::CLOCK_MONOTONIC) - started)}s)")
|
|
718
|
+
raise
|
|
719
|
+
end
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
def start_bup_progress(workflow_members)
|
|
723
|
+
return unless execute && progress_io && %w[bup bupb update-bundler].include?(command)
|
|
724
|
+
|
|
725
|
+
WorkflowProgress.new(io: progress_io, label: command, total: workflow_members.size, jobs: 1, members: workflow_members).tap(&:start)
|
|
674
726
|
end
|
|
675
727
|
|
|
676
728
|
def update_family_root_bundle(runner:, memo:)
|
|
@@ -1129,7 +1181,15 @@ module Kettle
|
|
|
1129
1181
|
end
|
|
1130
1182
|
|
|
1131
1183
|
def monorepo_template_worktrees?(wave)
|
|
1132
|
-
monorepo_template_worktrees_enabled? && wave.length > 1
|
|
1184
|
+
(monorepo_template_worktrees_enabled? && wave.length > 1) || monorepo_nested_template_worktree?(wave)
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
def monorepo_nested_template_worktree?(wave)
|
|
1188
|
+
return false unless execute && monorepo_template? && wave.length == 1
|
|
1189
|
+
|
|
1190
|
+
member = wave.first
|
|
1191
|
+
nested = Paths.within?(member.root, config.root) && !Paths.same?(member.root, config.root)
|
|
1192
|
+
nested && !config.template_root_outputs.empty? && kettle_jem_template_command?(config.template_command || DEFAULT_COMMANDS.fetch("template"))
|
|
1133
1193
|
end
|
|
1134
1194
|
|
|
1135
1195
|
def monorepo_template_worktrees_enabled?
|
|
@@ -1207,7 +1267,8 @@ module Kettle
|
|
|
1207
1267
|
progress: progress,
|
|
1208
1268
|
progress_started: true,
|
|
1209
1269
|
commit_changes: false,
|
|
1210
|
-
wave_jobs: wave_jobs
|
|
1270
|
+
wave_jobs: wave_jobs,
|
|
1271
|
+
template_worktree_root: monorepo_template_allowed_paths(entry.fetch(:original_member)).empty? ? nil : entry.fetch(:worktree_root)
|
|
1211
1272
|
)
|
|
1212
1273
|
mutex.synchronize do
|
|
1213
1274
|
ordered_results[index] = member_results
|
|
@@ -1234,17 +1295,18 @@ module Kettle
|
|
|
1234
1295
|
paths = monorepo_template_worktree_changed_paths(worktree_root)
|
|
1235
1296
|
return template_worktree_failure_result(original_member, paths, phase: "template_worktree_materialize") if paths.is_a?(String)
|
|
1236
1297
|
|
|
1237
|
-
|
|
1298
|
+
allowed_paths = monorepo_template_allowed_paths(original_member)
|
|
1299
|
+
invalid_paths = paths.reject { |path| monorepo_template_path_allowed?(path, relative_root, allowed_paths) }
|
|
1238
1300
|
unless invalid_paths.empty?
|
|
1239
1301
|
return template_worktree_failure_result(
|
|
1240
1302
|
original_member,
|
|
1241
|
-
"isolated template worker modified shared path(s): #{invalid_paths.sort.join(", ")}; only #{relative_root}
|
|
1303
|
+
"isolated template worker modified shared path(s): #{invalid_paths.sort.join(", ")}; only #{([relative_root] + allowed_paths).join(", ")} may be materialized",
|
|
1242
1304
|
phase: "template_worktree_materialize"
|
|
1243
1305
|
)
|
|
1244
1306
|
end
|
|
1245
1307
|
|
|
1246
|
-
initial_state = entry.fetch(:primary_member_state)
|
|
1247
|
-
current_state =
|
|
1308
|
+
initial_state = entry[:primary_allowed_state] || entry.fetch(:primary_member_state)
|
|
1309
|
+
current_state = monorepo_template_allowed_state(config.root, relative_root, allowed_paths)
|
|
1248
1310
|
changed_primary_paths = changed_monorepo_template_state_paths(initial_state, current_state)
|
|
1249
1311
|
unless changed_primary_paths.empty?
|
|
1250
1312
|
return template_worktree_failure_result(
|
|
@@ -1271,19 +1333,40 @@ module Kettle
|
|
|
1271
1333
|
changed_paths = monorepo_template_worktree_changed_paths(config.root)
|
|
1272
1334
|
raise Error, changed_paths if changed_paths.is_a?(String)
|
|
1273
1335
|
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
end
|
|
1336
|
+
allowed_paths = monorepo_template_allowed_paths(original_member)
|
|
1337
|
+
member_changed_paths = changed_paths.select { |path| monorepo_template_path_allowed?(path, relative_root, allowed_paths) }
|
|
1277
1338
|
sync_monorepo_template_paths(config.root, entry.fetch(:worktree_root), member_changed_paths)
|
|
1278
|
-
primary_state =
|
|
1279
|
-
worktree_state =
|
|
1339
|
+
primary_state = monorepo_template_allowed_state(config.root, relative_root, allowed_paths)
|
|
1340
|
+
worktree_state = monorepo_template_allowed_state(entry.fetch(:worktree_root), relative_root, allowed_paths)
|
|
1280
1341
|
unless primary_state == worktree_state
|
|
1281
1342
|
changed = changed_monorepo_template_state_paths(primary_state, worktree_state)
|
|
1282
|
-
raise Error, "isolated template worker seed differs from primary
|
|
1343
|
+
raise Error, "isolated template worker seed differs from primary allowed paths: #{changed.join(", ")}"
|
|
1283
1344
|
end
|
|
1284
1345
|
|
|
1285
1346
|
entry[:primary_changed_paths] = member_changed_paths
|
|
1286
|
-
entry[:
|
|
1347
|
+
entry[:primary_allowed_state] = primary_state
|
|
1348
|
+
entry[:primary_member_state] = primary_state if allowed_paths.empty?
|
|
1349
|
+
end
|
|
1350
|
+
|
|
1351
|
+
def monorepo_template_allowed_paths(member)
|
|
1352
|
+
return [] unless Paths.within?(member.root, config.root) && !Paths.same?(member.root, config.root)
|
|
1353
|
+
|
|
1354
|
+
config.template_root_outputs
|
|
1355
|
+
end
|
|
1356
|
+
|
|
1357
|
+
def monorepo_template_path_allowed?(path, relative_root, allowed_paths)
|
|
1358
|
+
path == relative_root || path.start_with?("#{relative_root}/") || allowed_paths.include?(path)
|
|
1359
|
+
end
|
|
1360
|
+
|
|
1361
|
+
def monorepo_template_allowed_state(root, relative_root, allowed_paths)
|
|
1362
|
+
member_state = monorepo_template_member_state(root, relative_root)
|
|
1363
|
+
shared_state = allowed_paths.each_with_object({}) do |allowed, state|
|
|
1364
|
+
paths = git_worktree_paths(root, ["ls-files", "--cached", "--others", "--exclude-standard", "-z", "--", allowed])
|
|
1365
|
+
raise Error, paths if paths.is_a?(String)
|
|
1366
|
+
|
|
1367
|
+
paths.each { |path| state[path] = monorepo_template_path_signature(root, path) }
|
|
1368
|
+
end
|
|
1369
|
+
member_state.merge(shared_state)
|
|
1287
1370
|
end
|
|
1288
1371
|
|
|
1289
1372
|
def monorepo_template_relative_root(member)
|
|
@@ -1402,12 +1485,14 @@ module Kettle
|
|
|
1402
1485
|
# generated bootstrap activates an older installed release and Bundler
|
|
1403
1486
|
# rejects the duplicate requirement raised by the family-root floor bump.
|
|
1404
1487
|
# This is the bup analogue of template_bootstrap_dependency_results.
|
|
1405
|
-
def bup_bootstrap_dependency_results(workflow_members, runner:, memo:)
|
|
1488
|
+
def bup_bootstrap_dependency_results(workflow_members, runner:, memo:, progress: nil)
|
|
1406
1489
|
return [] if workflow_members.empty?
|
|
1407
1490
|
|
|
1491
|
+
progress&.notification("checking bootstrap dependencies")
|
|
1408
1492
|
candidate_members = workflow_members.select { |member| nomono_bootstrap_candidate?(member) }
|
|
1409
1493
|
return [] if candidate_members.empty?
|
|
1410
1494
|
|
|
1495
|
+
progress&.notification("checking latest nomono release for #{candidate_members.size} members")
|
|
1411
1496
|
latest_nomono_version = latest_released_nomono_version
|
|
1412
1497
|
bootstrap = NomonoBootstrap.new(
|
|
1413
1498
|
latest_version: latest_nomono_version,
|
|
@@ -1415,6 +1500,7 @@ module Kettle
|
|
|
1415
1500
|
phase: "bup_bootstrap_dependencies"
|
|
1416
1501
|
)
|
|
1417
1502
|
candidate_members.each_with_object([]) do |member, results|
|
|
1503
|
+
progress&.notification("#{member.name}: checking bootstrap")
|
|
1418
1504
|
next unless bootstrap.member_needs_bootstrap?(member)
|
|
1419
1505
|
|
|
1420
1506
|
floor_paths = bootstrap.paths_to_update(member)
|
|
@@ -1556,7 +1642,7 @@ module Kettle
|
|
|
1556
1642
|
)
|
|
1557
1643
|
end
|
|
1558
1644
|
|
|
1559
|
-
def template_results_for_member(member, progress: nil, progress_key: nil, progress_label: nil, progress_started: false, commit_changes: true, wave_jobs: 1)
|
|
1645
|
+
def template_results_for_member(member, progress: nil, progress_key: nil, progress_label: nil, progress_started: false, commit_changes: true, wave_jobs: 1, template_worktree_root: nil)
|
|
1560
1646
|
progress_key ||= member.name
|
|
1561
1647
|
progress_label ||= member.name
|
|
1562
1648
|
start_template_member_progress(progress, member, progress_key: progress_key, progress_label: progress_label) unless progress_started
|
|
@@ -1583,6 +1669,7 @@ module Kettle
|
|
|
1583
1669
|
phase: command,
|
|
1584
1670
|
command: workflow_command(member),
|
|
1585
1671
|
env: template_command_env(wave_jobs: wave_jobs, member: member),
|
|
1672
|
+
chdir: template_worktree_root || member.root,
|
|
1586
1673
|
stdout_line_handler: template_event_line_handler(member, progress: progress, progress_key: progress_key, progress_label: progress_label)
|
|
1587
1674
|
)
|
|
1588
1675
|
emit_member_result_progress(member, memo.last, progress: progress, progress_key: progress_key, progress_label: progress_label)
|
|
@@ -6044,14 +6131,17 @@ module Kettle
|
|
|
6044
6131
|
return unless memo.all?(&:ok?)
|
|
6045
6132
|
|
|
6046
6133
|
synchronize_template_commit do
|
|
6134
|
+
allowed_paths = monorepo_template_allowed_paths(member)
|
|
6135
|
+
paths = allowed_paths.empty? ? ["."] : [monorepo_template_relative_root(member)] + allowed_paths
|
|
6136
|
+
pathspec = paths.map { |path| Shellwords.escape(path) }.join(" ")
|
|
6047
6137
|
memo << runner.call(
|
|
6048
6138
|
member: member,
|
|
6049
6139
|
phase: "commit_template",
|
|
6050
6140
|
command: [
|
|
6051
6141
|
"sh",
|
|
6052
6142
|
"-lc",
|
|
6053
|
-
"if [ -n \"$(git status --porcelain --
|
|
6054
|
-
"git add -A --
|
|
6143
|
+
"if [ -n \"$(git status --porcelain -- #{pathspec})\" ]; then " \
|
|
6144
|
+
"git add -A -- #{pathspec} && git commit -m #{Shellwords.escape(template_commit_message(member))} -- #{pathspec}; " \
|
|
6055
6145
|
"fi"
|
|
6056
6146
|
],
|
|
6057
6147
|
env: workflow_env
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kettle-family
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.39
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter H. Boling
|
|
@@ -134,7 +134,7 @@ dependencies:
|
|
|
134
134
|
version: '1.0'
|
|
135
135
|
- - ">="
|
|
136
136
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: 1.0.
|
|
137
|
+
version: 1.0.18
|
|
138
138
|
type: :runtime
|
|
139
139
|
prerelease: false
|
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -144,7 +144,7 @@ dependencies:
|
|
|
144
144
|
version: '1.0'
|
|
145
145
|
- - ">="
|
|
146
146
|
- !ruby/object:Gem::Version
|
|
147
|
-
version: 1.0.
|
|
147
|
+
version: 1.0.18
|
|
148
148
|
- !ruby/object:Gem::Dependency
|
|
149
149
|
name: kettle-deps-floor
|
|
150
150
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -174,7 +174,7 @@ dependencies:
|
|
|
174
174
|
version: '3.1'
|
|
175
175
|
- - ">="
|
|
176
176
|
- !ruby/object:Gem::Version
|
|
177
|
-
version: 3.1.
|
|
177
|
+
version: 3.1.28
|
|
178
178
|
type: :runtime
|
|
179
179
|
prerelease: false
|
|
180
180
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -184,7 +184,7 @@ dependencies:
|
|
|
184
184
|
version: '3.1'
|
|
185
185
|
- - ">="
|
|
186
186
|
- !ruby/object:Gem::Version
|
|
187
|
-
version: 3.1.
|
|
187
|
+
version: 3.1.28
|
|
188
188
|
- !ruby/object:Gem::Dependency
|
|
189
189
|
name: kettle-gha-pins
|
|
190
190
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -194,7 +194,7 @@ dependencies:
|
|
|
194
194
|
version: '0.3'
|
|
195
195
|
- - ">="
|
|
196
196
|
- !ruby/object:Gem::Version
|
|
197
|
-
version: 0.3.
|
|
197
|
+
version: 0.3.21
|
|
198
198
|
type: :runtime
|
|
199
199
|
prerelease: false
|
|
200
200
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -204,7 +204,7 @@ dependencies:
|
|
|
204
204
|
version: '0.3'
|
|
205
205
|
- - ">="
|
|
206
206
|
- !ruby/object:Gem::Version
|
|
207
|
-
version: 0.3.
|
|
207
|
+
version: 0.3.21
|
|
208
208
|
- !ruby/object:Gem::Dependency
|
|
209
209
|
name: kettle-jem
|
|
210
210
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -627,11 +627,11 @@ homepage: https://github.com/kettle-dev/kettle-family
|
|
|
627
627
|
licenses:
|
|
628
628
|
- AGPL-3.0-only
|
|
629
629
|
metadata:
|
|
630
|
-
homepage_uri: https://
|
|
631
|
-
source_code_uri: https://github.com/kettle-dev/kettle-family/tree/v1.3.
|
|
632
|
-
changelog_uri: https://github.com/kettle-dev/kettle-family/blob/v1.3.
|
|
630
|
+
homepage_uri: https://structuredmerge.org
|
|
631
|
+
source_code_uri: https://github.com/kettle-dev/kettle-family/tree/v1.3.39
|
|
632
|
+
changelog_uri: https://github.com/kettle-dev/kettle-family/blob/v1.3.39/CHANGELOG.md
|
|
633
633
|
bug_tracker_uri: https://github.com/kettle-dev/kettle-family/issues
|
|
634
|
-
documentation_uri: https://www.rubydoc.info/gems/kettle-family/1.3.
|
|
634
|
+
documentation_uri: https://www.rubydoc.info/gems/kettle-family/1.3.39
|
|
635
635
|
funding_uri: https://github.com/sponsors/pboling
|
|
636
636
|
wiki_uri: https://github.com/kettle-dev/kettle-family/wiki
|
|
637
637
|
news_uri: https://www.railsbling.com/tags/kettle-family
|
|
@@ -662,7 +662,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
662
662
|
- !ruby/object:Gem::Version
|
|
663
663
|
version: '0'
|
|
664
664
|
requirements: []
|
|
665
|
-
rubygems_version: 4.0.
|
|
665
|
+
rubygems_version: 4.0.24
|
|
666
666
|
specification_version: 4
|
|
667
667
|
summary: "\U0001F469\U0001F469\U0001F467\U0001F467 CLI helpers for managing related
|
|
668
668
|
Ruby gems as a family."
|
metadata.gz.sig
CHANGED
|
Binary file
|