kettle-family 1.3.43 → 1.3.44

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: 01170e0538298e8e8d2162df517fd25a56ca758956b08746167849c2bd6c1105
4
+ data.tar.gz: 255c482a12e1c3634b887dd6306190960dc89e8a8185c387d70c52934b679bc6
5
5
  SHA512:
6
- metadata.gz: 725abb6986692d631be4fed49436b2891d7a9a1864b96a66e87d8739ad499b84bdae82f042f8dc6f6f681f08f8980a5fff53d5a70cf89241119cb5d50a69847e
7
- data.tar.gz: e0c2eee2607bc797fbf5d3508b8b1f4e930dceaeecb3dbf5c0f9846d3388df63112bd19c244b41a1d8b6207a12cbb763b494b227b3a987bb01245403bf0bc33c
6
+ metadata.gz: 3b525f403127868a246c2b210219ec16fe331e1bfabd9df24fad917d9b3009360b6b483ef10446866aeed63a343033d604a140e875d03f583d48f08100bae7c5
7
+ data.tar.gz: 604a1caaeacce44c49ac6571a4bf8fa0417bb55d29d604c22306736fb6d19663ee877b315771d579c6354912f8d22bc1bf35ff1899fce4ac3c8eb9fc28e01e84
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,17 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [1.3.44] - 2026-11-16
34
+
35
+ - TAG: [v1.3.44][1.3.44t]
36
+ - COVERAGE: 94.06% -- 8308/8833 lines in 46 files
37
+ - BRANCH COVERAGE: 78.75% -- 3453/4385 branches in 46 files
38
+ - 40.74% documented
39
+
40
+ ### Fixed
41
+
42
+ - 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)
43
+
33
44
  ## [1.3.43] - 2026-11-15
34
45
 
35
46
  - TAG: [v1.3.43][1.3.43t]
@@ -3461,7 +3472,9 @@ Please file a bug if you notice a violation of semantic versioning.
3461
3472
  - Fixed CI load failures on engines without compatible `pty` support by falling back to Open3 for interactive release commands.
3462
3473
  - Fixed Ruby 3.2 version-bump support by loading Prism lazily and wiring the Prism gem only for MRI versions that need it.
3463
3474
 
3464
- [Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.43...HEAD
3475
+ [Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.44...HEAD
3476
+ [1.3.44]: https://github.com/kettle-dev/kettle-family/compare/v1.3.43...v1.3.44
3477
+ [1.3.44t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.44
3465
3478
  [1.3.43]: https://github.com/kettle-dev/kettle-family/compare/v1.3.42...v1.3.43
3466
3479
  [1.3.43t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.43
3467
3480
  [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.833-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
@@ -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.44"
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.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -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.44
633
+ changelog_uri: https://github.com/kettle-dev/kettle-family/blob/v1.3.44/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.44
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
@@ -1,2 +1,4 @@
1
- O���4E&�7����V8/f禍+��R�@�L�A���-��e�r%x։��>�K��e(��[�zz��/O��:���ʰ���?�N=w�����(&��%�<�����*�7��
2
- �r�2�Ki���0���P�I�y�+F[b��X��C��[?ow4Y����ک0��~&ߓ�,�&A�ٰ��OB�l�&��r�"o�A(�М��UC+���g�@#�=�Hq� ��J�=H��KTH�ژ=#�E��e��"��Sy��5�n֍>*/U��R�m]|ٝX��Ы�)Ź�b���8cI�iF=Rd�*�e��7T*����~���K�b���2�l��Ȓ7�E 
1
+ 9��b��R}���V*�aaʿ�����*θߒUɸ���� ���,H��;���
2
+ ���2�a��y��|K�I�_����q
3
+ Z���:.�OؾCҞ�׈�ܜ.KJn)�o,���������7џ� ���"g�@��>G�D��/|Pwj(�z��mh�V����m�QX��x��N�HѪ�Kr$q�Mkd5
4
+ G�r�����#W�c�KR+�2cg�z���!�^]�Q����n�aK�ZhT+��GXa�t����F`Y��_�E�EUw���}�,�u.k�~>��