kettle-family 1.3.43 → 1.3.45

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: ee70dc05d6421e96d35aa6af3c337c438689937f84ab20e5ed0b77a164b1fd67
4
- data.tar.gz: 2039cc587b2671f469eeefa05a3d5c9d161fe06574470c1637b3fb9cd0de603b
3
+ metadata.gz: 8dbff4a4645613617d74bc2b407d6f2721cbea6a39b39cc38c56414db49e78c3
4
+ data.tar.gz: 1be7a949a969fac31e45c62d5064ca15e681379dfcb00973c80d5c323e67c2e9
5
5
  SHA512:
6
- metadata.gz: 725abb6986692d631be4fed49436b2891d7a9a1864b96a66e87d8739ad499b84bdae82f042f8dc6f6f681f08f8980a5fff53d5a70cf89241119cb5d50a69847e
7
- data.tar.gz: e0c2eee2607bc797fbf5d3508b8b1f4e930dceaeecb3dbf5c0f9846d3388df63112bd19c244b41a1d8b6207a12cbb763b494b227b3a987bb01245403bf0bc33c
6
+ metadata.gz: 18d77f935fb48e0c0217de3b0b9b30bdb8680d159e852c6eb0fce547b9b385e6061e664aadcd25aec569cc218956bb22e2a762024bb60c1174b1539c09b4b2fe
7
+ data.tar.gz: c1c0124a9368b6720c558f95bb568d50e2999bee9f6571d2201040c8e6050a3db722317278c548d3333c687de5455a84755ebfb446c5b50e2f596153fcc2f139
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,28 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [1.3.45] - 2026-11-16
34
+
35
+ - TAG: [v1.3.45][1.3.45t]
36
+ - COVERAGE: 93.98% -- 8327/8860 lines in 46 files
37
+ - BRANCH COVERAGE: 78.61% -- 3461/4403 branches in 46 files
38
+ - 40.74% documented
39
+
40
+ ### Fixed
41
+
42
+ - `mise run pins` now reports updated GitHub Actions and versions per family member without dumping discovery and review data.
43
+
44
+ ## [1.3.44] - 2026-11-16
45
+
46
+ - TAG: [v1.3.44][1.3.44t]
47
+ - COVERAGE: 94.06% -- 8308/8833 lines in 46 files
48
+ - BRANCH COVERAGE: 78.75% -- 3453/4385 branches in 46 files
49
+ - 40.74% documented
50
+
51
+ ### Fixed
52
+
53
+ - Family templating now self-heals a boot-time Bundler::GemNotFound in prepare_template_dependencies. kettle-jem prepare boots with RUBYOPT=-rbundler/setup, so a member lockfile pinning gems absent from the family runner's gemset crashed at process boot before prepare's own repair install could run, and lockfile recovery only re-locks (never installs), so the retry failed identically. The workflow now detects the materialize message, runs a RUBYOPT-stripped bundle install against the member bundle (new prepare_template_dependencies_install phase), and retries preparation once (#70)
54
+
33
55
  ## [1.3.43] - 2026-11-15
34
56
 
35
57
  - TAG: [v1.3.43][1.3.43t]
@@ -3461,7 +3483,11 @@ Please file a bug if you notice a violation of semantic versioning.
3461
3483
  - Fixed CI load failures on engines without compatible `pty` support by falling back to Open3 for interactive release commands.
3462
3484
  - Fixed Ruby 3.2 version-bump support by loading Prism lazily and wiring the Prism gem only for MRI versions that need it.
3463
3485
 
3464
- [Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.43...HEAD
3486
+ [Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.45...HEAD
3487
+ [1.3.45]: https://github.com/kettle-dev/kettle-family/compare/v1.3.44...v1.3.45
3488
+ [1.3.45t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.45
3489
+ [1.3.44]: https://github.com/kettle-dev/kettle-family/compare/v1.3.43...v1.3.44
3490
+ [1.3.44t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.44
3465
3491
  [1.3.43]: https://github.com/kettle-dev/kettle-family/compare/v1.3.42...v1.3.43
3466
3492
  [1.3.43t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.43
3467
3493
  [1.3.42]: https://github.com/kettle-dev/kettle-family/compare/v1.3.41...v1.3.42
data/README.md CHANGED
@@ -1137,7 +1137,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
1137
1137
  [📌gitmoji]: https://gitmoji.dev
1138
1138
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
1139
1139
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
1140
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-8.803-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
1140
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-8.860-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
1141
1141
  [🔐security]: https://github.com/kettle-dev/kettle-family/blob/main/SECURITY.md
1142
1142
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
1143
1143
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -116,6 +116,7 @@ module Kettle
116
116
  return append_metadata_results(lines) if command == "metadata"
117
117
  return if results.empty?
118
118
  return append_release_state_results(lines) if command == "release-state"
119
+ return append_gha_pins_results(lines) if gha_pins_executed?
119
120
 
120
121
  visible_results = results.reject { |result| release_wave_result?(result) }
121
122
  return if visible_results.empty?
@@ -131,7 +132,49 @@ module Kettle
131
132
  append_template_summary(lines) if command == "template"
132
133
  end
133
134
 
135
+ def gha_pins_executed?
136
+ command == "gha-sha-pins" && results.any? { |result| result.phase == "gha_sha_pins_list" }
137
+ end
138
+
139
+ def append_gha_pins_results(lines)
140
+ lines << "pins:"
141
+ results.select { |result| result.phase == "gha-sha-pins" }.each do |result|
142
+ changes = gha_pins_changes(result.stderr)
143
+ if result.skipped
144
+ lines << " #{result_identity(result)}: #{result.reason || "skipped"}"
145
+ elsif changes.empty? && result.ok?
146
+ summary = template_events(result.stdout).reverse.find { |event| event["type"] == "gha_sha_pins_summary" }
147
+ status = (summary && summary["updates"].to_i.zero?) ? "up to date" : "no update details available"
148
+ lines << " #{result_identity(result)}: #{status}"
149
+ else
150
+ changes.each { |change| lines << " #{result_identity(result)}: #{change}" }
151
+ end
152
+ end
153
+ results.reject(&:ok?).each do |result|
154
+ lines << " #{result_state(result)} #{result_identity(result)} #{result.phase} #{result.reason || ""}".rstrip
155
+ append_result_stdout(lines, result)
156
+ append_indented_output(lines, result.stderr) unless result.stderr.to_s.empty?
157
+ end
158
+ end
159
+
160
+ # kettle-gha-pins emits progress as NDJSON; its current event schema does
161
+ # not include changes, which are in the accompanying human report.
162
+ def gha_pins_changes(output)
163
+ rows = output.to_s.split("Outdated actions (", 2)[1]
164
+ return [] unless rows
165
+
166
+ rows.lines.drop(2).take_while { |line| !line.strip.empty? }.filter_map do |line|
167
+ action, old_version, new_version, = line.split
168
+ "#{action} #{old_version} -> #{new_version}" if new_version
169
+ end.uniq
170
+ end
171
+
134
172
  def append_summary(lines)
173
+ if gha_pins_executed?
174
+ lines << "summary: #{success? ? "success" : "failure"} (#{format_elapsed(elapsed_seconds)})"
175
+ return
176
+ end
177
+
135
178
  data = summary
136
179
  lines << "context:"
137
180
  report_context_lines.each { |line| lines << " #{line}" }
@@ -267,7 +310,7 @@ module Kettle
267
310
  end
268
311
 
269
312
  def machine_readable_result?(result)
270
- command == "release" && %w[gha_sha_pins_list gha_sha_pins_review].include?(result.phase.to_s)
313
+ %w[release gha-sha-pins].include?(command) && %w[gha_sha_pins_list gha_sha_pins_review].include?(result.phase.to_s)
271
314
  end
272
315
 
273
316
  def template_event_stdout?(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.43"
8
+ VERSION = "1.3.45"
9
9
  end
10
10
  # Current gem version exposed at the traditional constant location.
11
11
  VERSION = Version::VERSION # Traditional Constant Location
@@ -5775,7 +5775,7 @@ module Kettle
5775
5775
  when "remote_parity"
5776
5776
  remote_parity_event_label(event)
5777
5777
  when "ci_monitor"
5778
- ci_monitor_event_label(event)
5778
+ ci_monitor_event_label(event, include_count: false)
5779
5779
  when "pre_release"
5780
5780
  pre_release_event_label(event)
5781
5781
  when "changelog"
@@ -5790,7 +5790,15 @@ module Kettle
5790
5790
  event["status"].to_s
5791
5791
  end
5792
5792
  mark = release_event_status_mark(event)
5793
- progress&.update(member, status: status, mark: mark) if status && !status.empty?
5793
+ progress&.update(member, status: status, mark: mark, secondary: release_event_secondary_progress(event)) if status && !status.empty?
5794
+ end
5795
+
5796
+ def release_event_secondary_progress(event)
5797
+ return unless event["type"] == "ci_monitor"
5798
+ return unless event["completed"].is_a?(Integer) && event["total"].is_a?(Integer)
5799
+ return if event["completed"].negative? || event["total"] <= 0
5800
+
5801
+ "(#{event["completed"]}/#{event["total"]})"
5794
5802
  end
5795
5803
 
5796
5804
  def release_event_status_mark(event)
@@ -5874,7 +5882,7 @@ module Kettle
5874
5882
  parts.join(":")
5875
5883
  end
5876
5884
 
5877
- def ci_monitor_event_label(event)
5885
+ def ci_monitor_event_label(event, include_count: true)
5878
5886
  action = event["action"].to_s
5879
5887
  provider = event["provider"].to_s
5880
5888
  target = event["workflow"].to_s
@@ -5883,7 +5891,7 @@ module Kettle
5883
5891
  parts << action unless action.empty?
5884
5892
  parts << provider unless provider.empty?
5885
5893
  parts << target unless target.empty?
5886
- if %w[github_wait github_started github_tick].include?(action) && event["completed"] && event["total"]
5894
+ if include_count && event["completed"] && event["total"]
5887
5895
  parts << "#{event["completed"]}/#{event["total"]}"
5888
5896
  end
5889
5897
  completed_workflow = event["completed_workflow"].to_s
@@ -6150,6 +6158,22 @@ module Kettle
6150
6158
  output.match?(/Bundler::(?:GemNotFound|VersionConflict)|Could not (?:find|resolve) |already activated .* but your Gemfile requires/)
6151
6159
  end
6152
6160
 
6161
+ # `kettle-jem prepare` boots with RUBYOPT=-rbundler/setup, so ruby
6162
+ # materializes the member's current lockfile before any kettle-jem code
6163
+ # (including prepare's own RUBYOPT-stripped repair `bundle install`) can
6164
+ # run. When the lockfile pins gems absent from the runner's gemset, the
6165
+ # boot dies with Bundler's materialize message; the lockfile recovery
6166
+ # phase only re-locks and never installs gems, so the retry crashes
6167
+ # identically. The repair is a RUBYOPT-stripped `bundle install` against
6168
+ # the member bundle. Resolution-time failures ("Could not find gem 'x'
6169
+ # in source at ...") name a different message and stay on the lockfile
6170
+ # recovery path.
6171
+ def boot_materialize_gem_not_found?(result)
6172
+ return false unless execute && !result.ok?
6173
+
6174
+ [result.stdout, result.stderr].join("\n").match?(/Could not find .+ in locally installed gems \(Bundler::GemNotFound\)/)
6175
+ end
6176
+
6153
6177
  def checksum_option_unsupported?(result)
6154
6178
  return false unless execute && !result.ok?
6155
6179
 
@@ -6355,6 +6379,37 @@ module Kettle
6355
6379
  end
6356
6380
  result = retry_result
6357
6381
  end
6382
+ if boot_materialize_gem_not_found?(result)
6383
+ install_result = runner.call(
6384
+ member: member,
6385
+ phase: "prepare_template_dependencies_install",
6386
+ command: %w[bundle install],
6387
+ env: template_bundler_update_env(template_prepare_env(wave_jobs: wave_jobs, member: member), member)
6388
+ )
6389
+ unless install_result.ok?
6390
+ install_result.stderr = [
6391
+ result.stderr,
6392
+ "Self-healing bundle install could not repair the boot-time Bundler::GemNotFound.",
6393
+ install_result.stderr
6394
+ ].compact.reject(&:empty?).join("\n")
6395
+ memo << install_result
6396
+ return false
6397
+ end
6398
+ memo << install_result
6399
+ retry_result = runner.call(
6400
+ member: member,
6401
+ phase: "prepare_template_dependencies",
6402
+ command: template_prepare_command(member),
6403
+ env: template_prepare_env(wave_jobs: wave_jobs, member: member)
6404
+ )
6405
+ unless retry_result.ok?
6406
+ retry_result.stderr = [
6407
+ "Self-healing bundle install succeeded, but template preparation still fails.",
6408
+ retry_result.stderr
6409
+ ].compact.reject(&:empty?).join("\n")
6410
+ end
6411
+ result = retry_result
6412
+ end
6358
6413
  if recoverable_bundle_failure?(result)
6359
6414
  recover_template_lockfiles(
6360
6415
  member: member,
@@ -8,14 +8,15 @@ module Kettle
8
8
  class WorkflowProgress
9
9
  MEMBER_WIDTH = 24
10
10
  PROGRESS_WIDTH = 7
11
+ SECONDARY_WIDTH = 9
11
12
  ELAPSED_WIDTH = 7
12
- FORMAT = "%<member>-#{MEMBER_WIDTH}.#{MEMBER_WIDTH}s %<progress>s %<duration>s %<events>s %<status>s"
13
+ FORMAT = "%<member>-#{MEMBER_WIDTH}.#{MEMBER_WIDTH}s %<progress>s %<secondary>s %<duration>s %<events>s %<status>s"
13
14
  EVENT_WIDTH = 20
14
15
  MIN_STATUS_WIDTH = 12
15
16
  DEFAULT_TERMINAL_WIDTH = 80
16
17
  ELLIPSIS = "..."
17
18
 
18
- def initialize(io:, label:, total:, jobs:, members: [], enabled: true, clock: nil, heading: nil, waves: {})
19
+ def initialize(io:, label:, total:, jobs:, members: [], enabled: true, clock: nil, heading: nil, waves: {}, **options)
19
20
  @io = io
20
21
  @label = label
21
22
  @total = total.to_i
@@ -37,6 +38,7 @@ module Kettle
37
38
  @member_totals = {}
38
39
  @member_labels = @line_order.to_h { |member_name| [member_name, wave_label(member_name)] }
39
40
  @member_counts = Hash.new(0)
41
+ @member_secondary = {}
40
42
  @member_started_at = {}
41
43
  @member_finished_elapsed = {}
42
44
  @member_events = Hash.new("")
@@ -71,6 +73,7 @@ module Kettle
71
73
  store_label(key, label)
72
74
  @member_totals[key] = total.to_i
73
75
  @member_counts[key] = 0
76
+ @member_secondary.delete(key)
74
77
  @member_started_at[key] ||= monotonic_now
75
78
  @member_finished_elapsed.delete(key)
76
79
  if @tty
@@ -87,6 +90,7 @@ module Kettle
87
90
  synchronize do
88
91
  store_label(key, label)
89
92
  event_mark = mark || (success ? "." : "F")
93
+ @member_secondary.delete(key)
90
94
  increment_member_count(key)
91
95
  if @tty
92
96
  append_event(key, event_mark)
@@ -97,12 +101,13 @@ module Kettle
97
101
  end
98
102
  end
99
103
 
100
- def update(member, status:, mark: nil, key: member.name, label: member.name)
104
+ def update(member, status:, mark: nil, key: member.name, label: member.name, secondary: nil, **options)
101
105
  return unless @enabled
102
106
  return if status.to_s.empty?
103
107
 
104
108
  synchronize do
105
109
  store_label(key, label)
110
+ @member_secondary[key] = secondary
106
111
  if @tty
107
112
  append_event(key, mark) if mark
108
113
  render(key, status: status)
@@ -117,6 +122,7 @@ module Kettle
117
122
 
118
123
  synchronize do
119
124
  store_label(key, label)
125
+ @member_secondary.delete(key)
120
126
  total = @member_totals[key].to_i
121
127
  @member_counts[key] = total if total.positive?
122
128
  @member_finished_elapsed[key] = elapsed_seconds_by_name(key)
@@ -251,8 +257,9 @@ module Kettle
251
257
  FORMAT,
252
258
  member: @member_labels.fetch(member_name, member_name),
253
259
  progress: progress_text(member_name),
260
+ secondary: secondary_text(member_name),
254
261
  duration: elapsed_text(member_name),
255
- events: @member_events[member_name].rjust(EVENT_WIDTH),
262
+ events: @member_events[member_name].chars.last(rendered_event_width).join.rjust(rendered_event_width),
256
263
  status: @member_statuses[member_name]
257
264
  )
258
265
  end
@@ -279,6 +286,10 @@ module Kettle
279
286
  "(#{count}/#{denominator})".rjust(PROGRESS_WIDTH)
280
287
  end
281
288
 
289
+ def secondary_text(member_name)
290
+ truncate_display(@member_secondary[member_name].to_s, SECONDARY_WIDTH).rjust(SECONDARY_WIDTH)
291
+ end
292
+
282
293
  def elapsed_text(member_name)
283
294
  format_elapsed(elapsed_seconds_by_name(member_name)).rjust(ELAPSED_WIDTH)
284
295
  end
@@ -334,8 +345,14 @@ module Kettle
334
345
  Unicode::DisplayWidth.of(value.to_s)
335
346
  end
336
347
 
348
+ def rendered_event_width
349
+ return EVENT_WIDTH if render_width >= 90
350
+
351
+ [EVENT_WIDTH - SECONDARY_WIDTH - 1, 1].max
352
+ end
353
+
337
354
  def status_width
338
- available = [render_width - MEMBER_WIDTH - 1 - PROGRESS_WIDTH - 1 - ELAPSED_WIDTH - 1 - EVENT_WIDTH - 1, 1].max
355
+ available = [render_width - MEMBER_WIDTH - 1 - PROGRESS_WIDTH - 1 - SECONDARY_WIDTH - 1 - ELAPSED_WIDTH - 1 - rendered_event_width - 1, 1].max
339
356
  [available, MIN_STATUS_WIDTH].max.clamp(1, available)
340
357
  end
341
358
 
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.43
4
+ version: 1.3.45
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.18
137
+ version: 1.0.19
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.18
147
+ version: 1.0.19
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: kettle-deps-floor
150
150
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ dependencies:
154
154
  version: '0.1'
155
155
  - - ">="
156
156
  - !ruby/object:Gem::Version
157
- version: 0.1.2
157
+ version: 0.1.3
158
158
  type: :runtime
159
159
  prerelease: false
160
160
  version_requirements: !ruby/object:Gem::Requirement
@@ -164,7 +164,7 @@ dependencies:
164
164
  version: '0.1'
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
- version: 0.1.2
167
+ version: 0.1.3
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: kettle-dev
170
170
  requirement: !ruby/object:Gem::Requirement
@@ -629,10 +629,10 @@ licenses:
629
629
  - AGPL-3.0-only
630
630
  metadata:
631
631
  homepage_uri: https://structuredmerge.org
632
- source_code_uri: https://github.com/kettle-dev/kettle-family/tree/v1.3.43
633
- changelog_uri: https://github.com/kettle-dev/kettle-family/blob/v1.3.43/CHANGELOG.md
632
+ source_code_uri: https://github.com/kettle-dev/kettle-family/tree/v1.3.45
633
+ changelog_uri: https://github.com/kettle-dev/kettle-family/blob/v1.3.45/CHANGELOG.md
634
634
  bug_tracker_uri: https://github.com/kettle-dev/kettle-family/issues
635
- documentation_uri: https://www.rubydoc.info/gems/kettle-family/1.3.43
635
+ documentation_uri: https://www.rubydoc.info/gems/kettle-family/1.3.45
636
636
  funding_uri: https://github.com/sponsors/pboling
637
637
  wiki_uri: https://github.com/kettle-dev/kettle-family/wiki
638
638
  news_uri: https://www.railsbling.com/tags/kettle-family
metadata.gz.sig CHANGED
Binary file