kettle-family 1.3.42 → 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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +32 -1
- data/README.md +46 -24
- data/lib/kettle/family/report.rb +3 -0
- data/lib/kettle/family/version.rb +1 -1
- data/lib/kettle/family/workflow.rb +144 -8
- data/lib/kettle/family/workflow_progress.rb +22 -5
- data.tar.gz.sig +0 -0
- metadata +6 -6
- metadata.gz.sig +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 01170e0538298e8e8d2162df517fd25a56ca758956b08746167849c2bd6c1105
|
|
4
|
+
data.tar.gz: 255c482a12e1c3634b887dd6306190960dc89e8a8185c387d70c52934b679bc6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b525f403127868a246c2b210219ec16fe331e1bfabd9df24fad917d9b3009360b6b483ef10446866aeed63a343033d604a140e875d03f583d48f08100bae7c5
|
|
7
|
+
data.tar.gz: 604a1caaeacce44c49ac6571a4bf8fa0417bb55d29d604c22306736fb6d19663ee877b315771d579c6354912f8d22bc1bf35ff1899fce4ac3c8eb9fc28e01e84
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,33 @@ 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
|
+
|
|
44
|
+
## [1.3.43] - 2026-11-15
|
|
45
|
+
|
|
46
|
+
- TAG: [v1.3.43][1.3.43t]
|
|
47
|
+
- COVERAGE: 94.05% -- 8279/8803 lines in 46 files
|
|
48
|
+
- BRANCH COVERAGE: 78.71% -- 3439/4369 branches in 46 files
|
|
49
|
+
- 40.81% documented
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
|
|
53
|
+
- `pull` and `up` temporarily stash member worktree changes before syncing and restore them afterward. `up` pushes the rebased commits before restoring the stash. If restoring a stash containing only `Gemfile.lock` fails, the pulled lockfile is left clean, the stash is retained for recovery, and the family run continues with a warning. (#67)
|
|
54
|
+
|
|
55
|
+
### Fixed
|
|
56
|
+
|
|
57
|
+
- A release tooling bundle check repaired by `bundle install` no longer causes a false failure summary or an unnecessary release resume command. (#65, #66)
|
|
58
|
+
- Correct the README command reference, release-state selectors, release profiles, and template dirty-file rules; document `pull` and `up` stash recovery.
|
|
59
|
+
|
|
33
60
|
## [1.3.42] - 2026-11-15
|
|
34
61
|
|
|
35
62
|
- TAG: [v1.3.42][1.3.42t]
|
|
@@ -3445,7 +3472,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
3445
3472
|
- Fixed CI load failures on engines without compatible `pty` support by falling back to Open3 for interactive release commands.
|
|
3446
3473
|
- Fixed Ruby 3.2 version-bump support by loading Prism lazily and wiring the Prism gem only for MRI versions that need it.
|
|
3447
3474
|
|
|
3448
|
-
[Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.
|
|
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
|
|
3478
|
+
[1.3.43]: https://github.com/kettle-dev/kettle-family/compare/v1.3.42...v1.3.43
|
|
3479
|
+
[1.3.43t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.43
|
|
3449
3480
|
[1.3.42]: https://github.com/kettle-dev/kettle-family/compare/v1.3.41...v1.3.42
|
|
3450
3481
|
[1.3.42t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.42
|
|
3451
3482
|
[1.3.41]: https://github.com/kettle-dev/kettle-family/compare/v1.3.40...v1.3.41
|
data/README.md
CHANGED
|
@@ -481,6 +481,7 @@ The command names below are available from `kettle-family --help`:
|
|
|
481
481
|
| `version` | Print the kettle-family version. |
|
|
482
482
|
| `help` | Print top-level or command-specific help. |
|
|
483
483
|
| `mise-trust` | Trust mise configuration for the family. |
|
|
484
|
+
| `mise-tasks` | Refresh managed family mise tasks and migrate standard root task definitions. |
|
|
484
485
|
| `discover` | Discover members and print their execution order. |
|
|
485
486
|
| `plan` | Alias for `discover`. |
|
|
486
487
|
| `report` | Print family discovery and configuration details. |
|
|
@@ -489,7 +490,7 @@ The command names below are available from `kettle-family --help`:
|
|
|
489
490
|
| `clean-unreleased` | Uninstall locally installed family versions newer than released versions. |
|
|
490
491
|
| `clean-blockers` | Uninstall unreleased gems, from any family, pinned by members' lockfiles — removes cross-family blockers such as an unreleased StructuredMerge gem pinned by a kettle-dev member. |
|
|
491
492
|
| `clean-installed` | The deterministic inverse of `install`: uninstall each selected member's current source version (plus configured install local dependencies) when that version is unreleased, including cached `.gem` files. Sees installed-but-unpinned pollution the other two cleanups miss. |
|
|
492
|
-
| `reconcile-releases` |
|
|
493
|
+
| `reconcile-releases` | Check for missing GitHub Releases; `--execute` creates verified backfills. |
|
|
493
494
|
| `reset` | Reset a managed family artifact, such as release lockfiles. |
|
|
494
495
|
| `test` | Run the configured test workflow for each selected member. |
|
|
495
496
|
| `lint` | Run the configured lint workflow for each selected member. |
|
|
@@ -516,6 +517,14 @@ The command names below are available from `kettle-family --help`:
|
|
|
516
517
|
Use `kettle-family help COMMAND` for command-specific options. Most workflow
|
|
517
518
|
commands also accept `--only`, `--exclude`, `--start-at`, `--jobs`,
|
|
518
519
|
`--execute`, `--dry-run`, `--commit`, and `--no-commit` as applicable.
|
|
520
|
+
`test` and ordinary `template` runs do not accept a positional `--start-at`:
|
|
521
|
+
use `--only` or the report's retry hint because their parallel dispatch is not
|
|
522
|
+
positional. `template` also accepts `MEMBER@BRANCH` for a branch-stack resume.
|
|
523
|
+
|
|
524
|
+
`mise-tasks` writes its managed task file and updates `mise.toml` directly; it
|
|
525
|
+
does not require `--execute`. It warns about duplicate task definitions by
|
|
526
|
+
default. Use `--clean` to remove those duplicates from the root configuration,
|
|
527
|
+
or `--task-file PATH` to choose a different managed task file.
|
|
519
528
|
|
|
520
529
|
Inspect discovery and release plans before executing them:
|
|
521
530
|
|
|
@@ -567,8 +576,8 @@ The supported release-state tokens are:
|
|
|
567
576
|
|
|
568
577
|
| Token | Meaning |
|
|
569
578
|
|-------|---------|
|
|
570
|
-
| `unreleased` | The
|
|
571
|
-
| `prepared` | The
|
|
579
|
+
| `unreleased` | The `Unreleased` changelog section contains entries. |
|
|
580
|
+
| `prepared` | The latest versioned changelog section matches the current `version.rb`. |
|
|
572
581
|
| `pending` | The member has unreleased changelog work or an unpublished prepared release. |
|
|
573
582
|
| `bump` | The member has unreleased changelog work and still needs a version bump. |
|
|
574
583
|
|
|
@@ -589,6 +598,14 @@ Most commands accept `--json` to print a machine-readable report instead of the
|
|
|
589
598
|
text report, and `--report PATH` to write that JSON report while still printing
|
|
590
599
|
the normal text report.
|
|
591
600
|
|
|
601
|
+
`pull --execute` and `up --execute` temporarily stash tracked and untracked
|
|
602
|
+
member changes before pulling with rebase. `up` pushes the rebased commits
|
|
603
|
+
before restoring the stash. If restoration fails for a stash containing only
|
|
604
|
+
the root `Gemfile.lock`, the pulled lockfile is left clean and the stash is
|
|
605
|
+
retained; the report identifies it and provides recovery commands. The member
|
|
606
|
+
is reported with a warning and the run continues. Other restore failures stop
|
|
607
|
+
the run, as do pull or push failures. `push` alone does not stash changes.
|
|
608
|
+
|
|
592
609
|
Refresh member dependencies before templating when the generated project should
|
|
593
610
|
be validated against the latest compatible releases:
|
|
594
611
|
|
|
@@ -662,14 +679,14 @@ and leaves RubyGems MFA prompts interactive by default:
|
|
|
662
679
|
kettle-family release --publish --execute
|
|
663
680
|
```
|
|
664
681
|
|
|
665
|
-
Release uses
|
|
682
|
+
Release uses explicitly separate execution contexts. `release_bootstrap`
|
|
666
683
|
starts `kettle-release` from the family-root tool bundle, so a family can retain
|
|
667
684
|
its configured local sibling graph while it prepares a release wave. It never
|
|
668
|
-
uses a member's development Gemfile to boot the release tool.
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
685
|
+
uses a member's development Gemfile to boot the release tool. The
|
|
686
|
+
`release_registry` profile uses registry dependencies for the canonical release
|
|
687
|
+
lockfile. Explicit monorepo CI-local paths and configured wave transitions use
|
|
688
|
+
separate profiles with their own permitted-path rules; see
|
|
689
|
+
[Execution Profiles](EXECUTION_PROFILES.md) for those exceptions.
|
|
673
690
|
|
|
674
691
|
Use named recovery modes when a publish wave has already prepared a member:
|
|
675
692
|
|
|
@@ -693,14 +710,16 @@ family changelog commands and child `kettle-release` commands. Use
|
|
|
693
710
|
`--no-accept` when you want each child command to ask its own confirmation
|
|
694
711
|
prompts.
|
|
695
712
|
|
|
696
|
-
Executed publish runs can
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
interaction
|
|
713
|
+
Executed publish runs can use 1Password, Bitwarden (`bitwarden`, `bw`, or
|
|
714
|
+
`vaultwarden`), `rbw`, or a configured `command` adapter for release
|
|
715
|
+
credentials. Adapters can also be registered through `Secrets::Registry`.
|
|
716
|
+
The signing passphrase is cached in memory for the family run; RubyGems OTPs
|
|
717
|
+
are requested fresh. Where the installed `kettle-release` supports direct
|
|
718
|
+
secrets and 1Password is selected, the child requests secrets through the
|
|
719
|
+
family broker. Otherwise the family runner handles supported prompts. An
|
|
720
|
+
explicit child `--secrets-provider` controls that child's provider interaction.
|
|
721
|
+
|
|
722
|
+
For example, configure the local 1Password CLI:
|
|
704
723
|
|
|
705
724
|
```yaml
|
|
706
725
|
release:
|
|
@@ -781,10 +800,11 @@ registry dependency chain. Members with their own `CHANGELOG.md` retain the
|
|
|
781
800
|
normal dependency.
|
|
782
801
|
|
|
783
802
|
Resume a failed family publish after fixing the failure. Already published
|
|
784
|
-
versions are skipped automatically. A release report gives
|
|
785
|
-
resume
|
|
786
|
-
when
|
|
787
|
-
|
|
803
|
+
versions are skipped automatically. A release report gives member-scoped
|
|
804
|
+
resume commands for failed children, including the recorded `--start-step`
|
|
805
|
+
when a child emitted a failed release-step event. Members with the same recovery
|
|
806
|
+
step may be grouped into one command. Run the commands one at a time. If any
|
|
807
|
+
members were never started, the report also gives a separate
|
|
788
808
|
normal-flow command for exactly those members. Use `--start-step` only after
|
|
789
809
|
the pre-release gate already passed or the failure was intentionally handled:
|
|
790
810
|
|
|
@@ -851,8 +871,10 @@ successful or unreached members are restored normally. A successful run always
|
|
|
851
871
|
restores its autostashes regardless of this option.
|
|
852
872
|
|
|
853
873
|
Before creating any autostash, the workflow checks every selected member
|
|
854
|
-
checkout.
|
|
855
|
-
|
|
874
|
+
checkout. Changes under `lib/`, `spec/`, and `test/` are eligible for stashing.
|
|
875
|
+
Managed `Gemfile.lock`, `Appraisal.root.gemfile.lock`,
|
|
876
|
+
`.structuredmerge/kettle-jem.lock`, and modular `*_local.gemfile` paths are
|
|
877
|
+
also allowed and are left in place. Other dirty paths, including changelogs,
|
|
856
878
|
configuration, and generated workflow files, fail the run before templating
|
|
857
879
|
starts and are listed in the error. This preflight is separate from
|
|
858
880
|
`--no-cleanup`: the latter preserves a failed template for debugging, while
|
|
@@ -1115,7 +1137,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
|
|
|
1115
1137
|
[📌gitmoji]: https://gitmoji.dev
|
|
1116
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
|
|
1117
1139
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
1118
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-8.
|
|
1140
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-8.833-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
1119
1141
|
[🔐security]: https://github.com/kettle-dev/kettle-family/blob/main/SECURITY.md
|
|
1120
1142
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
1121
1143
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
data/lib/kettle/family/report.rb
CHANGED
|
@@ -152,6 +152,7 @@ module Kettle
|
|
|
152
152
|
lines << " skipped: #{summary_list(data.fetch("skipped"))}"
|
|
153
153
|
lines << " failed: #{summary_list(data.fetch("failed").map { |entry| summary_entry(entry) })}"
|
|
154
154
|
lines << " pending: #{summary_list(data.fetch("pending").map { |entry| summary_entry(entry) })}"
|
|
155
|
+
data.fetch("sync_warnings").each { |warning| lines << " warning: #{warning}" }
|
|
155
156
|
hints = data.fetch("resume_hints")
|
|
156
157
|
if hints.one?
|
|
157
158
|
lines << " resume: #{hints.first}"
|
|
@@ -182,6 +183,7 @@ module Kettle
|
|
|
182
183
|
"skipped" => summary_skipped,
|
|
183
184
|
"failed" => summary_failed,
|
|
184
185
|
"pending" => summary_pending,
|
|
186
|
+
"sync_warnings" => results.select { |result| result.phase == "sync_stash_warning" }.map { |result| "#{result.member_name}: #{result.reason}; #{result.stdout}" },
|
|
185
187
|
"release_log_dirs" => release_log_dirs,
|
|
186
188
|
"resume_hint" => resume_hint,
|
|
187
189
|
"resume_hints" => resume_hints
|
|
@@ -425,6 +427,7 @@ module Kettle
|
|
|
425
427
|
end
|
|
426
428
|
|
|
427
429
|
def result_state(result)
|
|
430
|
+
return "warning" if result.phase == "sync_stash_warning"
|
|
428
431
|
return "skipped" if result.skipped
|
|
429
432
|
return "ok" if result.success
|
|
430
433
|
|
|
@@ -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.44"
|
|
9
9
|
end
|
|
10
10
|
# Current gem version exposed at the traditional constant location.
|
|
11
11
|
VERSION = Version::VERSION # Traditional Constant Location
|
|
@@ -3077,19 +3077,97 @@ module Kettle
|
|
|
3077
3077
|
reporter = member_reporter(sync_members)
|
|
3078
3078
|
sync_members.each_with_object([]) do |member, memo|
|
|
3079
3079
|
reporter&.start_member(member, steps: steps.length)
|
|
3080
|
+
stash = nil
|
|
3081
|
+
if execute && command != "push"
|
|
3082
|
+
status = runner.call(member: member, phase: "sync_worktree_check", command: %w[git status --porcelain=v1 -z --untracked-files=all])
|
|
3083
|
+
unless status.ok?
|
|
3084
|
+
reporter&.step_started(member, "pull")
|
|
3085
|
+
status.phase = "pull"
|
|
3086
|
+
memo << status
|
|
3087
|
+
reporter&.step_finished(member, "pull", ok: false, elapsed_seconds: status.elapsed_seconds)
|
|
3088
|
+
reporter&.finish_member(member, success: false)
|
|
3089
|
+
break memo
|
|
3090
|
+
end
|
|
3091
|
+
unless status.stdout.empty?
|
|
3092
|
+
lockfile_only = status.stdout.match?(/\A[ MADRCU]{2} Gemfile\.lock\x00\z/)
|
|
3093
|
+
previous = runner.call(member: member, phase: "sync_previous_stash", command: %w[git rev-parse -q --verify refs/stash])
|
|
3094
|
+
save = runner.call(member: member, phase: "sync_stash", command: ["git", "stash", "push", "--include-untracked", "--message", "kettle-family-#{command}-#{member.name}"])
|
|
3095
|
+
memo << save unless save.ok?
|
|
3096
|
+
if save.ok?
|
|
3097
|
+
ref = runner.call(member: member, phase: "sync_stash_ref", command: %w[git rev-parse --verify refs/stash])
|
|
3098
|
+
memo << ref unless ref.ok?
|
|
3099
|
+
stash = {oid: ref.stdout.strip, lockfile_only: lockfile_only} if ref.ok? && (!previous.ok? || previous.stdout.strip != ref.stdout.strip)
|
|
3100
|
+
if ref.ok? && !stash
|
|
3101
|
+
ref.success = false
|
|
3102
|
+
ref.reason = "no new stash was created; worktree changes were not saved"
|
|
3103
|
+
memo << ref
|
|
3104
|
+
end
|
|
3105
|
+
end
|
|
3106
|
+
unless stash
|
|
3107
|
+
reporter&.finish_member(member, success: false)
|
|
3108
|
+
break memo
|
|
3109
|
+
end
|
|
3110
|
+
end
|
|
3111
|
+
end
|
|
3112
|
+
member_ok = true
|
|
3080
3113
|
steps.each do |phase, git_command|
|
|
3081
3114
|
reporter&.step_started(member, phase)
|
|
3082
3115
|
memo << runner.call(member: member, phase: phase, command: git_command)
|
|
3083
3116
|
reporter&.step_finished(member, phase, ok: memo.last.ok?, elapsed_seconds: memo.last.elapsed_seconds)
|
|
3084
|
-
|
|
3117
|
+
unless memo.last.ok?
|
|
3118
|
+
member_ok = false
|
|
3119
|
+
break
|
|
3120
|
+
end
|
|
3085
3121
|
end
|
|
3086
|
-
|
|
3087
|
-
|
|
3122
|
+
if stash
|
|
3123
|
+
restore = git_sync_restore_stash(member: member, stash: stash, runner: runner, allow_lockfile_warning: member_ok)
|
|
3124
|
+
memo << restore
|
|
3125
|
+
member_ok &&= restore.ok?
|
|
3126
|
+
end
|
|
3127
|
+
reporter&.finish_member(member, success: member_ok)
|
|
3128
|
+
break memo unless member_ok
|
|
3088
3129
|
end
|
|
3089
3130
|
ensure
|
|
3090
3131
|
reporter&.finish
|
|
3091
3132
|
end
|
|
3092
3133
|
|
|
3134
|
+
def git_sync_restore_stash(member:, stash:, runner:, allow_lockfile_warning:)
|
|
3135
|
+
oid = stash.fetch(:oid)
|
|
3136
|
+
restore = runner.call(member: member, phase: "sync_stash_restore", command: ["git", "stash", "apply", "--index", oid])
|
|
3137
|
+
if !restore.ok? && allow_lockfile_warning && stash.fetch(:lockfile_only)
|
|
3138
|
+
# This stash contained only the root lockfile, so resetting that path
|
|
3139
|
+
# cannot discard any unrelated work. Keep the stash for inspection.
|
|
3140
|
+
cleanup = runner.call(member: member, phase: "sync_stash_cleanup", command: %w[git restore --source=HEAD --staged --worktree -- Gemfile.lock])
|
|
3141
|
+
return cleanup unless cleanup.ok?
|
|
3142
|
+
|
|
3143
|
+
status = runner.call(member: member, phase: "sync_stash_cleanup_check", command: %w[git status --porcelain=v1 -z --untracked-files=all])
|
|
3144
|
+
return status unless status.ok?
|
|
3145
|
+
unless status.stdout.empty?
|
|
3146
|
+
status.success = false
|
|
3147
|
+
status.reason = "stash restore left a dirty worktree; stash #{oid} was retained"
|
|
3148
|
+
return status
|
|
3149
|
+
end
|
|
3150
|
+
|
|
3151
|
+
cleanup.phase = "sync_stash_warning"
|
|
3152
|
+
cleanup.reason = "warning: lockfile changes remain in stash #{oid}"
|
|
3153
|
+
cleanup.stdout = "Could not restore Gemfile.lock; the pulled lockfile was kept clean. Inspect with git stash show -p #{oid}; recover with git stash apply --index #{oid}."
|
|
3154
|
+
return cleanup
|
|
3155
|
+
end
|
|
3156
|
+
return restore unless restore.ok?
|
|
3157
|
+
|
|
3158
|
+
listing = runner.call(member: member, phase: "sync_stash_list", command: %w[git stash list --format=%gd:%H])
|
|
3159
|
+
return listing unless listing.ok?
|
|
3160
|
+
|
|
3161
|
+
entry = listing.stdout.lines.find { |line| line.strip.end_with?(":#{oid}") }
|
|
3162
|
+
unless entry
|
|
3163
|
+
restore.success = false
|
|
3164
|
+
restore.reason = "restored stash could not be located for removal (#{oid})"
|
|
3165
|
+
return restore
|
|
3166
|
+
end
|
|
3167
|
+
drop = runner.call(member: member, phase: "sync_stash_drop", command: ["git", "stash", "drop", entry.split(":", 2).first])
|
|
3168
|
+
drop.ok? ? restore : drop
|
|
3169
|
+
end
|
|
3170
|
+
|
|
3093
3171
|
def test_progress_line_handler(reporter, member)
|
|
3094
3172
|
lambda do |line|
|
|
3095
3173
|
event = line.start_with?("{") ? parse_template_event(line) : nil
|
|
@@ -3422,7 +3500,10 @@ module Kettle
|
|
|
3422
3500
|
check = runner.call(member: member, phase: "release_tool_bundle_check", command: ["bundle", "check"], env: env)
|
|
3423
3501
|
return [check] if check.ok?
|
|
3424
3502
|
|
|
3425
|
-
|
|
3503
|
+
repair = runner.call(member: member, phase: "release_tool_bundle_repair", command: ["bundle", "install"], env: env)
|
|
3504
|
+
# A failed probe is diagnostic, not an unresolved release failure if
|
|
3505
|
+
# installing the missing gems succeeds.
|
|
3506
|
+
repair.ok? ? [repair] : [check, repair]
|
|
3426
3507
|
end
|
|
3427
3508
|
|
|
3428
3509
|
def append_dependency_floor_lockfile_results(dependent_members:, runner:, memo:)
|
|
@@ -5694,7 +5775,7 @@ module Kettle
|
|
|
5694
5775
|
when "remote_parity"
|
|
5695
5776
|
remote_parity_event_label(event)
|
|
5696
5777
|
when "ci_monitor"
|
|
5697
|
-
ci_monitor_event_label(event)
|
|
5778
|
+
ci_monitor_event_label(event, include_count: false)
|
|
5698
5779
|
when "pre_release"
|
|
5699
5780
|
pre_release_event_label(event)
|
|
5700
5781
|
when "changelog"
|
|
@@ -5709,7 +5790,15 @@ module Kettle
|
|
|
5709
5790
|
event["status"].to_s
|
|
5710
5791
|
end
|
|
5711
5792
|
mark = release_event_status_mark(event)
|
|
5712
|
-
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"]})"
|
|
5713
5802
|
end
|
|
5714
5803
|
|
|
5715
5804
|
def release_event_status_mark(event)
|
|
@@ -5793,7 +5882,7 @@ module Kettle
|
|
|
5793
5882
|
parts.join(":")
|
|
5794
5883
|
end
|
|
5795
5884
|
|
|
5796
|
-
def ci_monitor_event_label(event)
|
|
5885
|
+
def ci_monitor_event_label(event, include_count: true)
|
|
5797
5886
|
action = event["action"].to_s
|
|
5798
5887
|
provider = event["provider"].to_s
|
|
5799
5888
|
target = event["workflow"].to_s
|
|
@@ -5802,7 +5891,7 @@ module Kettle
|
|
|
5802
5891
|
parts << action unless action.empty?
|
|
5803
5892
|
parts << provider unless provider.empty?
|
|
5804
5893
|
parts << target unless target.empty?
|
|
5805
|
-
if
|
|
5894
|
+
if include_count && event["completed"] && event["total"]
|
|
5806
5895
|
parts << "#{event["completed"]}/#{event["total"]}"
|
|
5807
5896
|
end
|
|
5808
5897
|
completed_workflow = event["completed_workflow"].to_s
|
|
@@ -6069,6 +6158,22 @@ module Kettle
|
|
|
6069
6158
|
output.match?(/Bundler::(?:GemNotFound|VersionConflict)|Could not (?:find|resolve) |already activated .* but your Gemfile requires/)
|
|
6070
6159
|
end
|
|
6071
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
|
+
|
|
6072
6177
|
def checksum_option_unsupported?(result)
|
|
6073
6178
|
return false unless execute && !result.ok?
|
|
6074
6179
|
|
|
@@ -6274,6 +6379,37 @@ module Kettle
|
|
|
6274
6379
|
end
|
|
6275
6380
|
result = retry_result
|
|
6276
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
|
|
6277
6413
|
if recoverable_bundle_failure?(result)
|
|
6278
6414
|
recover_template_lockfiles(
|
|
6279
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(
|
|
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 -
|
|
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.
|
|
4
|
+
version: 1.3.44
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter H. Boling
|
|
@@ -234,7 +234,7 @@ dependencies:
|
|
|
234
234
|
version: '0.1'
|
|
235
235
|
- - ">="
|
|
236
236
|
- !ruby/object:Gem::Version
|
|
237
|
-
version: 0.1.
|
|
237
|
+
version: 0.1.24
|
|
238
238
|
type: :runtime
|
|
239
239
|
prerelease: false
|
|
240
240
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -244,7 +244,7 @@ dependencies:
|
|
|
244
244
|
version: '0.1'
|
|
245
245
|
- - ">="
|
|
246
246
|
- !ruby/object:Gem::Version
|
|
247
|
-
version: 0.1.
|
|
247
|
+
version: 0.1.24
|
|
248
248
|
- !ruby/object:Gem::Dependency
|
|
249
249
|
name: kettle-test
|
|
250
250
|
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.
|
|
633
|
-
changelog_uri: https://github.com/kettle-dev/kettle-family/blob/v1.3.
|
|
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.
|
|
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,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
�
|
|
4
|
-
|
|
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�~>��
|