kettle-dev 2.3.4 → 2.3.6
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 +59 -11
- data/README.md +7 -2
- data/exe/kettle-changelog +2 -0
- data/exe/kettle-release +26 -2
- data/lib/kettle/dev/changelog_cli.rb +3 -0
- data/lib/kettle/dev/ci_monitor.rb +4 -4
- data/lib/kettle/dev/release_cli.rb +8 -2
- data/lib/kettle/dev/version.rb +1 -1
- data/sig/kettle/dev.rbs +583 -1
- data.tar.gz.sig +0 -0
- metadata +18 -62
- metadata.gz.sig +0 -0
- data/AGPL-3.0-only.md +0 -235
- data/CITATION.cff +0 -20
- data/CODE_OF_CONDUCT.md +0 -134
- data/CONTRIBUTING.md +0 -275
- data/FUNDING.md +0 -70
- data/RUBOCOP.md +0 -71
- data/SECURITY.md +0 -21
- data/certs/pboling.pem +0 -27
- data/sig/kettle/dev/appraisals_ast_merger.rbs +0 -72
- data/sig/kettle/dev/changelog_cli.rbs +0 -69
- data/sig/kettle/dev/ci_helpers.rbs +0 -42
- data/sig/kettle/dev/ci_monitor.rbs +0 -17
- data/sig/kettle/dev/commit_msg.rbs +0 -8
- data/sig/kettle/dev/dvcs_cli.rbs +0 -8
- data/sig/kettle/dev/exit_adapter.rbs +0 -8
- data/sig/kettle/dev/gem_spec_reader.rbs +0 -33
- data/sig/kettle/dev/git_adapter.rbs +0 -17
- data/sig/kettle/dev/git_commit_footer.rbs +0 -16
- data/sig/kettle/dev/input_adapter.rbs +0 -8
- data/sig/kettle/dev/modular_gemfiles.rbs +0 -12
- data/sig/kettle/dev/open_collective_config.rbs +0 -8
- data/sig/kettle/dev/pre_release_cli.rbs +0 -34
- data/sig/kettle/dev/prism_utils.rbs +0 -56
- data/sig/kettle/dev/readme_backers.rbs +0 -21
- data/sig/kettle/dev/release_cli.rbs +0 -20
- data/sig/kettle/dev/setup_cli.rbs +0 -8
- data/sig/kettle/dev/source_merger.rbs +0 -70
- data/sig/kettle/dev/tasks/ci_task.rbs +0 -9
- data/sig/kettle/dev/tasks/install_task.rbs +0 -10
- data/sig/kettle/dev/tasks/template_task.rbs +0 -10
- data/sig/kettle/dev/tasks.rbs +0 -7
- data/sig/kettle/dev/template_helpers.rbs +0 -84
- data/sig/kettle/dev/version.rbs +0 -8
- data/sig/kettle/dev/versioning.rbs +0 -21
- data/sig/kettle/emoji_regex.rbs +0 -5
- data/sig/kettle-dev.rbs +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 273f836980d8c8210b2aa13b46a7e8abe3c20890caaff4be48303f807ece69bb
|
|
4
|
+
data.tar.gz: 2cc93d325d82e8f82af073115f5063d684468dbf15978c5300ce44c1384ae9ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 891edcb0fde5e40b98f8f221065e5fa283d249700dfb9e216fc8da6668c6dabfc9cf0ba6892b9f202285d03304a31056dc62e5ee6f56a1a760629d971606d07a
|
|
7
|
+
data.tar.gz: 10de64450794d5b99b0db2b455a8ed05589e18dacafd1299eb6d01546a7ca759dae64739213b4b64dbc2acbf80c0095d39553027496128977de4eab3267a293f
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,50 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [2.3.6] - 2026-07-17
|
|
34
|
+
|
|
35
|
+
- TAG: [v2.3.6][2.3.6t]
|
|
36
|
+
- COVERAGE: 91.85% -- 4292/4673 lines in 36 files
|
|
37
|
+
- BRANCH COVERAGE: 73.94% -- 1685/2279 branches in 36 files
|
|
38
|
+
- 56.67% documented
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- `kettle-release` now accepts `--ci-workflows` and
|
|
43
|
+
`K_RELEASE_CI_WORKFLOWS` to monitor an explicit workflow subset at the CI
|
|
44
|
+
wait step while retaining the default behavior of waiting for all applicable
|
|
45
|
+
workflows.
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- kettle-jem-template-20260716-001 - Shim gemspec manifests now include
|
|
50
|
+
`LICENSE.md` instead of nonexistent `LICENSE.txt`.
|
|
51
|
+
- kettle-jem-template-20260716-002 - Generated gemspec manifests now ship fewer
|
|
52
|
+
repository-only files by default to reduce downstream distro packaging churn.
|
|
53
|
+
|
|
54
|
+
### Fixed
|
|
55
|
+
|
|
56
|
+
- `kettle-release --ci-workflows` now rejects a missing value when the next
|
|
57
|
+
token is another flag, and the release CI workflow subset APIs now have
|
|
58
|
+
matching RBS signatures.
|
|
59
|
+
|
|
60
|
+
## [2.3.5] - 2026-07-16
|
|
61
|
+
|
|
62
|
+
- TAG: [v2.3.5][2.3.5t]
|
|
63
|
+
- COVERAGE: 92.03% -- 4297/4669 lines in 36 files
|
|
64
|
+
- BRANCH COVERAGE: 74.02% -- 1684/2275 branches in 36 files
|
|
65
|
+
- 56.88% documented
|
|
66
|
+
|
|
67
|
+
### Changed
|
|
68
|
+
|
|
69
|
+
- Updated the `kettle-rb` runtime dependency floor to `>= 0.1.2`.
|
|
70
|
+
|
|
71
|
+
### Fixed
|
|
72
|
+
|
|
73
|
+
- `kettle-changelog` now honors `K_CHANGELOG_GEM_NAME` before root gemspec
|
|
74
|
+
discovery, allowing root changelogs for gem families to query live release
|
|
75
|
+
data without requiring a synthetic root gemspec.
|
|
76
|
+
|
|
33
77
|
## [2.3.4] - 2026-07-14
|
|
34
78
|
|
|
35
79
|
- TAG: [v2.3.4][2.3.4t]
|
|
@@ -2479,7 +2523,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
2479
2523
|
- Selecting will run the selected workflow via `act`
|
|
2480
2524
|
- This may move to its own gem in the future.
|
|
2481
2525
|
|
|
2482
|
-
[Unreleased]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.
|
|
2526
|
+
[Unreleased]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.6...HEAD
|
|
2527
|
+
[2.3.6]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.5...v2.3.6
|
|
2528
|
+
[2.3.6t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v2.3.6
|
|
2529
|
+
[2.3.5]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.4...v2.3.5
|
|
2530
|
+
[2.3.5t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v2.3.5
|
|
2483
2531
|
[2.3.4]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.3...v2.3.4
|
|
2484
2532
|
[2.3.4t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v2.3.4
|
|
2485
2533
|
[2.3.3]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.2...v2.3.3
|
|
@@ -2730,25 +2778,25 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
2730
2778
|
[1.0.12t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.12
|
|
2731
2779
|
[1.0.11]: https://github.com/kettle-dev/kettle-dev/compare/v1.0.10...v1.0.11
|
|
2732
2780
|
[1.0.11t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.11
|
|
2733
|
-
[1.0.10]: https://gitlab.com/kettle-
|
|
2781
|
+
[1.0.10]: https://gitlab.com/kettle-dev/kettle-dev/-/compare/v1.0.9...v1.0.10
|
|
2734
2782
|
[1.0.10t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.10
|
|
2735
|
-
[1.0.9]: https://gitlab.com/kettle-
|
|
2783
|
+
[1.0.9]: https://gitlab.com/kettle-dev/kettle-dev/-/compare/v1.0.8...v1.0.9
|
|
2736
2784
|
[1.0.9t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.9
|
|
2737
|
-
[1.0.8]: https://gitlab.com/kettle-
|
|
2785
|
+
[1.0.8]: https://gitlab.com/kettle-dev/kettle-dev/-/compare/v1.0.7...v1.0.8
|
|
2738
2786
|
[1.0.8t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.8
|
|
2739
|
-
[1.0.7]: https://gitlab.com/kettle-
|
|
2787
|
+
[1.0.7]: https://gitlab.com/kettle-dev/kettle-dev/-/compare/v1.0.6...v1.0.7
|
|
2740
2788
|
[1.0.7t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.7
|
|
2741
|
-
[1.0.6]: https://gitlab.com/kettle-
|
|
2789
|
+
[1.0.6]: https://gitlab.com/kettle-dev/kettle-dev/-/compare/v1.0.5...v1.0.6
|
|
2742
2790
|
[1.0.6t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.6
|
|
2743
|
-
[1.0.5]: https://gitlab.com/kettle-
|
|
2791
|
+
[1.0.5]: https://gitlab.com/kettle-dev/kettle-dev/-/compare/v1.0.4...v1.0.5
|
|
2744
2792
|
[1.0.5t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.5
|
|
2745
|
-
[1.0.4]: https://gitlab.com/kettle-
|
|
2793
|
+
[1.0.4]: https://gitlab.com/kettle-dev/kettle-dev/-/compare/v1.0.3...v1.0.4
|
|
2746
2794
|
[1.0.4t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.4
|
|
2747
|
-
[1.0.3]: https://gitlab.com/kettle-
|
|
2795
|
+
[1.0.3]: https://gitlab.com/kettle-dev/kettle-dev/-/compare/v1.0.2...v1.0.3
|
|
2748
2796
|
[1.0.3t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.3
|
|
2749
|
-
[1.0.2]: https://gitlab.com/kettle-
|
|
2797
|
+
[1.0.2]: https://gitlab.com/kettle-dev/kettle-dev/-/compare/v1.0.1...v1.0.2
|
|
2750
2798
|
[1.0.2t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.2
|
|
2751
|
-
[1.0.1]: https://gitlab.com/kettle-
|
|
2799
|
+
[1.0.1]: https://gitlab.com/kettle-dev/kettle-dev/-/compare/v1.0.0...v1.0.1
|
|
2752
2800
|
[1.0.1t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.1
|
|
2753
2801
|
[1.0.0]: https://github.com/kettle-dev/kettle-dev/compare/a427c302df09cfe4253a7c8d400333f9a4c1a208...v1.0.0
|
|
2754
2802
|
[1.0.0t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v1.0.0
|
data/README.md
CHANGED
|
@@ -458,6 +458,11 @@ What it does:
|
|
|
458
458
|
- `kettle-changelog`
|
|
459
459
|
- Behavior:
|
|
460
460
|
- Reads version from the unique `lib/**/version.rb` in the project.
|
|
461
|
+
- Reads the gem name from the root `.gemspec`; set
|
|
462
|
+
`K_CHANGELOG_GEM_NAME` when a root changelog represents a family instead
|
|
463
|
+
of a single gem checkout.
|
|
464
|
+
- Set `K_CHANGELOG_VERSION_FILE` when a root changelog should use a specific
|
|
465
|
+
version file outside the default `lib/**/version.rb` discovery path.
|
|
461
466
|
- Moves entries from the `[Unreleased]` section into a new `[#.#.#] - YYYY-MM-DD` section.
|
|
462
467
|
- Prepends 4 lines with TAG, line coverage, branch coverage, and percent documented.
|
|
463
468
|
- Converts any GitLab-style compare links at the bottom to GitHub style, adds new tag/compare links for the new release and a temporary tag reference `[X.Y.Zt]`.
|
|
@@ -882,7 +887,7 @@ Thanks for RTFM. ☺️
|
|
|
882
887
|
[📌gitmoji]: https://gitmoji.dev
|
|
883
888
|
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
884
889
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
885
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-4.
|
|
890
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-4.673-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
886
891
|
[🔐security]: https://github.com/kettle-dev/kettle-dev/blob/main/SECURITY.md
|
|
887
892
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
888
893
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
@@ -908,7 +913,7 @@ Thanks for RTFM. ☺️
|
|
|
908
913
|
| Field | Value |
|
|
909
914
|
|---|---|
|
|
910
915
|
| Package | kettle-dev |
|
|
911
|
-
| Description | 🍲 Kettle::Dev is a meta tool from kettle-
|
|
916
|
+
| Description | 🍲 Kettle::Dev is a meta tool from kettle-dev to streamline development and testing. Acts as a shim dependency, pulling in many other dependencies, to give you OOTB productivity with a RubyGem, or Ruby app project. Configures a complete set of Rake tasks, for all the libraries is brings in, so they arrive ready to go. Fund overlooked open source projects - bottom of stack, dev/test dependencies: floss-funding.dev |
|
|
912
917
|
| Homepage | https://github.com/kettle-dev/kettle-dev |
|
|
913
918
|
| Source | https://github.com/kettle-dev/kettle-dev |
|
|
914
919
|
| License | `AGPL-3.0-only` |
|
data/exe/kettle-changelog
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
# kettle-changelog: Generate a CHANGELOG.md entry for the current VERSION.
|
|
7
7
|
# - Reads VERSION from lib/**/version.rb (must be unique across files)
|
|
8
8
|
# - Set K_CHANGELOG_VERSION_FILE to use a specific version.rb for monorepo roots
|
|
9
|
+
# - Set K_CHANGELOG_GEM_NAME to use a specific gem name for root changelogs
|
|
9
10
|
# - Moves entries from the "Unreleased" section into a new versioned section
|
|
10
11
|
# - Prepends 4 heading lines:
|
|
11
12
|
# - TAG
|
|
@@ -80,6 +81,7 @@ if ARGV.include?("-h") || ARGV.include?("--help")
|
|
|
80
81
|
K_CHANGELOG_STRICT=false Disable strict mode (equivalent to --no-strict flag)
|
|
81
82
|
K_CHANGELOG_COVERAGE_HARD=false Disable coverage threshold hard-failure
|
|
82
83
|
K_CHANGELOG_VERSION_FILE=path Read VERSION from this file instead of lib/**/version.rb
|
|
84
|
+
K_CHANGELOG_GEM_NAME=name Read live release data as this gem instead of root .gemspec
|
|
83
85
|
|
|
84
86
|
Data generation:
|
|
85
87
|
Strict mode is the default. Release plans remove stale coverage output,
|
data/exe/kettle-release
CHANGED
|
@@ -43,7 +43,7 @@ end
|
|
|
43
43
|
# Do not guard with __FILE__ == $PROGRAM_NAME because binstubs use Kernel.load.
|
|
44
44
|
if ARGV.include?("-h") || ARGV.include?("--help")
|
|
45
45
|
puts <<~USAGE
|
|
46
|
-
Usage: kettle-release [--version VERSION] [--local-ci] [--appraisal-update] [--skip-bundle-audit] [--skip-steps STEPS] [start_step=<0-19>]
|
|
46
|
+
Usage: kettle-release [--version VERSION] [--local-ci] [--appraisal-update] [--skip-bundle-audit] [--skip-steps STEPS] [--ci-workflows WORKFLOWS] [start_step=<0-19>]
|
|
47
47
|
|
|
48
48
|
Automates the release flow for a Ruby gem in the host project.
|
|
49
49
|
|
|
@@ -81,6 +81,7 @@ if ARGV.include?("-h") || ARGV.include?("--help")
|
|
|
81
81
|
--version VERSION # Use this version instead of detecting VERSION from lib/**/version.rb
|
|
82
82
|
--appraisal-update # Use slower appraisal:update instead of default appraisal:generate
|
|
83
83
|
--skip-bundle-audit # Skip bundle:audit/update during release rake checks
|
|
84
|
+
--ci-workflows WORKFLOWS # Comma-separated workflow files or stems to monitor at CI step 10
|
|
84
85
|
--local-ci # Sensitive release mode: run act locally, publish before any git push,
|
|
85
86
|
# create the git tag locally, then push commits and tags after publish
|
|
86
87
|
|
|
@@ -89,6 +90,7 @@ if ARGV.include?("-h") || ARGV.include?("--help")
|
|
|
89
90
|
GEM_CERT_USER=<user> # Select certs/<user>.pem for signing
|
|
90
91
|
K_RELEASE_LOCAL_CI=ask|1|0 # Use 'act' locally before push; 'ask' prompts, '1' forces, default off
|
|
91
92
|
K_RELEASE_LOCAL_CI_WORKFLOW # Name of workflow (without .yml) for local CI; defaults to locked_deps or first
|
|
93
|
+
K_RELEASE_CI_WORKFLOWS # Comma-separated workflow files or stems to monitor at CI step 10
|
|
92
94
|
KETTLE_RELEASE_APPRAISAL_TASK=appraisal:update
|
|
93
95
|
# Use slower appraisal:update instead of default appraisal:generate
|
|
94
96
|
KETTLE_DEV_SKIP_BUNDLE_AUDIT=true
|
|
@@ -145,6 +147,27 @@ def extract_skip_steps_arg!(argv)
|
|
|
145
147
|
skip_steps
|
|
146
148
|
end
|
|
147
149
|
|
|
150
|
+
def extract_ci_workflows_arg!(argv)
|
|
151
|
+
workflows = nil
|
|
152
|
+
if (idx = argv.index("--ci-workflows"))
|
|
153
|
+
workflows = argv[idx + 1]
|
|
154
|
+
if workflows.to_s.empty? || workflows.to_s.start_with?("-")
|
|
155
|
+
Kettle::Dev::ExitAdapter.abort("--ci-workflows requires a comma-separated workflow list")
|
|
156
|
+
end
|
|
157
|
+
argv.slice!(idx, 2)
|
|
158
|
+
end
|
|
159
|
+
argv.delete_if do |arg|
|
|
160
|
+
if arg.start_with?("--ci-workflows=", "ci_workflows=")
|
|
161
|
+
workflows = arg.split("=", 2)[1]
|
|
162
|
+
Kettle::Dev::ExitAdapter.abort("--ci-workflows requires a comma-separated workflow list") if workflows.to_s.empty?
|
|
163
|
+
true
|
|
164
|
+
else
|
|
165
|
+
false
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
workflows
|
|
169
|
+
end
|
|
170
|
+
|
|
148
171
|
local_ci = ARGV.include?("--local-ci")
|
|
149
172
|
appraisal_task = ARGV.delete("--appraisal-update") ? "appraisal:update" : nil
|
|
150
173
|
skip_bundle_audit = !!ARGV.delete("--skip-bundle-audit")
|
|
@@ -152,9 +175,10 @@ start_step_arg = ARGV.find { |a| a.start_with?("start_step=") }
|
|
|
152
175
|
start_step = start_step_arg ? start_step_arg.split("=", 2)[1].to_i : 0
|
|
153
176
|
version_override = extract_version_arg!(ARGV)
|
|
154
177
|
skip_steps = extract_skip_steps_arg!(ARGV)
|
|
178
|
+
ci_workflows = extract_ci_workflows_arg!(ARGV)
|
|
155
179
|
|
|
156
180
|
begin
|
|
157
|
-
Kettle::Dev::ReleaseCLI.new(start_step: start_step, local_ci: local_ci, version: version_override, appraisal_task: appraisal_task, skip_steps: skip_steps, skip_bundle_audit: skip_bundle_audit).run
|
|
181
|
+
Kettle::Dev::ReleaseCLI.new(start_step: start_step, local_ci: local_ci, version: version_override, appraisal_task: appraisal_task, skip_steps: skip_steps, skip_bundle_audit: skip_bundle_audit, ci_workflows: ci_workflows).run
|
|
158
182
|
rescue LoadError => e
|
|
159
183
|
warn("#{script_basename}: could not load dependency: #{e.class}: #{e.message}")
|
|
160
184
|
warn(Array(e.backtrace).join("\n")) if ENV["DEBUG"]
|
|
@@ -353,6 +353,9 @@ module Kettle
|
|
|
353
353
|
end
|
|
354
354
|
|
|
355
355
|
def detect_gem_name
|
|
356
|
+
env_gem_name = ENV.fetch("K_CHANGELOG_GEM_NAME", "").to_s.strip
|
|
357
|
+
return env_gem_name unless env_gem_name.empty?
|
|
358
|
+
|
|
356
359
|
gemspecs = Dir[File.join(@root, "*.gemspec")]
|
|
357
360
|
abort("Could not find a .gemspec in project root.") if gemspecs.empty?
|
|
358
361
|
path = gemspecs.min
|
|
@@ -47,9 +47,9 @@ module Kettle
|
|
|
47
47
|
#
|
|
48
48
|
# @param restart_hint [String] guidance command shown on failure
|
|
49
49
|
# @return [void]
|
|
50
|
-
def monitor_all!(restart_hint: "bundle exec kettle-release start_step=10")
|
|
50
|
+
def monitor_all!(restart_hint: "bundle exec kettle-release start_step=10", workflows: nil, **options)
|
|
51
51
|
checks_any = false
|
|
52
|
-
checks_any |= monitor_github_internal!(restart_hint: restart_hint)
|
|
52
|
+
checks_any |= monitor_github_internal!(restart_hint: restart_hint, workflows: workflows)
|
|
53
53
|
checks_any |= monitor_gitlab_internal!(restart_hint: restart_hint)
|
|
54
54
|
abort("CI configuration not detected (GitHub or GitLab). Ensure CI is configured and remotes point to the correct hosts.") unless checks_any
|
|
55
55
|
end
|
|
@@ -269,9 +269,9 @@ module Kettle
|
|
|
269
269
|
|
|
270
270
|
# -- internals (abort-on-failure legacy paths used elsewhere) --
|
|
271
271
|
|
|
272
|
-
def monitor_github_internal!(restart_hint:)
|
|
272
|
+
def monitor_github_internal!(restart_hint:, workflows: nil)
|
|
273
273
|
root = Kettle::Dev::CIHelpers.project_root
|
|
274
|
-
workflows = Kettle::Dev::CIHelpers.workflows_list(root)
|
|
274
|
+
workflows = Array(workflows).empty? ? Kettle::Dev::CIHelpers.workflows_list(root) : Array(workflows)
|
|
275
275
|
gh_remote = preferred_github_remote
|
|
276
276
|
return false unless gh_remote && !workflows.empty?
|
|
277
277
|
|
|
@@ -108,12 +108,13 @@ module Kettle
|
|
|
108
108
|
|
|
109
109
|
public
|
|
110
110
|
|
|
111
|
-
def initialize(start_step: 0, local_ci: false, version: nil, appraisal_task: nil, skip_steps: nil, skip_bundle_audit: nil)
|
|
111
|
+
def initialize(start_step: 0, local_ci: false, version: nil, appraisal_task: nil, skip_steps: nil, skip_bundle_audit: nil, ci_workflows: nil, **options)
|
|
112
112
|
@root = Kettle::Dev::CIHelpers.project_root
|
|
113
113
|
@git = Kettle::Dev::GitAdapter.new
|
|
114
114
|
@start_step = (start_step || 0).to_i
|
|
115
115
|
@start_step = 0 if @start_step < 0
|
|
116
116
|
@skip_steps = normalize_skip_steps(skip_steps)
|
|
117
|
+
@ci_workflows = normalize_ci_workflows(ci_workflows || ENV["K_RELEASE_CI_WORKFLOWS"])
|
|
117
118
|
@local_ci = !!local_ci
|
|
118
119
|
@skip_bundle_audit = truthy_value?(skip_bundle_audit) || truthy_value?(ENV["KETTLE_DEV_SKIP_BUNDLE_AUDIT"])
|
|
119
120
|
@version_override = Kettle::Dev::Versioning.normalize_explicit_version(version)
|
|
@@ -405,6 +406,11 @@ module Kettle
|
|
|
405
406
|
end.uniq
|
|
406
407
|
end
|
|
407
408
|
|
|
409
|
+
def normalize_ci_workflows(value)
|
|
410
|
+
workflows = Array(value).flat_map { |part| part.to_s.split(",") }.map(&:strip).reject(&:empty?)
|
|
411
|
+
workflows.map { |workflow| workflow.match?(/\.ya?ml\z/) ? workflow : "#{workflow}.yml" }.uniq
|
|
412
|
+
end
|
|
413
|
+
|
|
408
414
|
private
|
|
409
415
|
|
|
410
416
|
def local_ci?
|
|
@@ -714,7 +720,7 @@ module Kettle
|
|
|
714
720
|
|
|
715
721
|
def monitor_workflows_after_push!
|
|
716
722
|
# Use abort-on-failure CI monitor to match historical behavior and specs
|
|
717
|
-
Kettle::Dev::CIMonitor.monitor_all!(restart_hint: "bundle exec kettle-release start_step=10")
|
|
723
|
+
Kettle::Dev::CIMonitor.monitor_all!(restart_hint: "bundle exec kettle-release start_step=10", workflows: @ci_workflows)
|
|
718
724
|
end
|
|
719
725
|
|
|
720
726
|
def run_cmd!(cmd)
|