carson 3.23.0 → 3.23.1
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
- data/RELEASE.md +8 -0
- data/VERSION +1 -1
- data/lib/carson/runtime/govern.rb +0 -50
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74175b83073b45d8ffdf3ee6aa1af6ebe02f4e8c7eacbc315d5cb7fb42d89578
|
|
4
|
+
data.tar.gz: 9f7eae79be834f3a7b78f9caa5b415946a1205a3d5e09029b88b5f9234a962bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dfc053ce86819ec64133a52a436a52c5719f2f2af60aebbe85ee0316f1173bc706b6c9e9158254319ff3d3c5cd457bd5583d86c818bbc3b4c866a5b90f53c427
|
|
7
|
+
data.tar.gz: 608c6af987bc8351db9febdb9c5d5ef7f181f4b19b0991c20e4033b98f788ba227c9da1bde01f3b40b92299110e91c0bee0f7a23acc95d25f26f44c0ccaddee9
|
data/RELEASE.md
CHANGED
|
@@ -5,6 +5,14 @@ Release-note scope rule:
|
|
|
5
5
|
- `RELEASE.md` records only version deltas, breaking changes, and migration actions.
|
|
6
6
|
- Operational usage guides live in `MANUAL.md` and `API.md`.
|
|
7
7
|
|
|
8
|
+
## 3.23.1
|
|
9
|
+
|
|
10
|
+
### What changed
|
|
11
|
+
|
|
12
|
+
- **Govern no longer depends on cache-report writes** — `carson govern` no longer writes `govern_latest.md/json` under `~/.carson/cache` as part of its normal execution. Govern now advances deliveries directly from the ledger and prints results to stdout/JSON only.
|
|
13
|
+
|
|
14
|
+
### No migration required
|
|
15
|
+
|
|
8
16
|
## 3.23.0
|
|
9
17
|
|
|
10
18
|
### What changed
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.23.
|
|
1
|
+
3.23.1
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
# Govern reassesses queued/gated deliveries, records revision cycles, and integrates one ready delivery at a time.
|
|
3
3
|
require "json"
|
|
4
4
|
require "time"
|
|
5
|
-
require "fileutils"
|
|
6
5
|
|
|
7
6
|
module Carson
|
|
8
7
|
class Runtime
|
|
9
8
|
module Govern
|
|
10
|
-
GOVERN_REPORT_MD = "govern_latest.md".freeze
|
|
11
|
-
GOVERN_REPORT_JSON = "govern_latest.json".freeze
|
|
12
|
-
|
|
13
9
|
# Portfolio-level entry point. Scans governed repos (or the current repo) and advances deliveries.
|
|
14
10
|
def govern!( dry_run: false, json_output: false, loop_seconds: nil )
|
|
15
11
|
if loop_seconds
|
|
@@ -31,7 +27,6 @@ module Carson
|
|
|
31
27
|
repositories: repositories.map { |path| govern_repo!( repo_path: path, dry_run: dry_run ) }
|
|
32
28
|
}
|
|
33
29
|
|
|
34
|
-
write_govern_report( report: report )
|
|
35
30
|
if json_output
|
|
36
31
|
output.puts JSON.pretty_generate( report )
|
|
37
32
|
else
|
|
@@ -423,51 +418,6 @@ module Carson
|
|
|
423
418
|
""
|
|
424
419
|
end
|
|
425
420
|
|
|
426
|
-
def write_govern_report( report: )
|
|
427
|
-
report_dir = report_dir_path
|
|
428
|
-
FileUtils.mkdir_p( report_dir )
|
|
429
|
-
File.write( File.join( report_dir, GOVERN_REPORT_JSON ), JSON.pretty_generate( report ) )
|
|
430
|
-
File.write( File.join( report_dir, GOVERN_REPORT_MD ), render_govern_markdown( report: report ) )
|
|
431
|
-
end
|
|
432
|
-
|
|
433
|
-
def render_govern_markdown( report: )
|
|
434
|
-
lines = []
|
|
435
|
-
lines << "# Carson Govern Report"
|
|
436
|
-
lines << ""
|
|
437
|
-
lines << "**Cycle**: #{report[ :cycle_at ]}"
|
|
438
|
-
lines << "**Dry run**: #{report[ :dry_run ]}"
|
|
439
|
-
lines << ""
|
|
440
|
-
|
|
441
|
-
Array( report[ :repositories ] ).each do |repo_report|
|
|
442
|
-
lines << "## #{repo_report[ :path ]}"
|
|
443
|
-
lines << ""
|
|
444
|
-
if repo_report[ :error ]
|
|
445
|
-
lines << "**Error**: #{repo_report[ :error ]}"
|
|
446
|
-
lines << ""
|
|
447
|
-
next
|
|
448
|
-
end
|
|
449
|
-
|
|
450
|
-
deliveries = Array( repo_report[ :deliveries ] )
|
|
451
|
-
if deliveries.empty?
|
|
452
|
-
lines << "No active deliveries."
|
|
453
|
-
lines << ""
|
|
454
|
-
next
|
|
455
|
-
end
|
|
456
|
-
|
|
457
|
-
deliveries.each do |delivery|
|
|
458
|
-
lines << "### #{delivery[ :branch ]}"
|
|
459
|
-
lines << ""
|
|
460
|
-
lines << "- **Status**: #{delivery[ :status ]}"
|
|
461
|
-
lines << "- **Action**: #{delivery[ :action ]}"
|
|
462
|
-
lines << "- **Summary**: #{delivery[ :summary ]}" unless delivery[ :summary ].to_s.empty?
|
|
463
|
-
lines << "- **Revision count**: #{delivery[ :revision_count ]}"
|
|
464
|
-
lines << ""
|
|
465
|
-
end
|
|
466
|
-
end
|
|
467
|
-
|
|
468
|
-
lines.join( "\n" )
|
|
469
|
-
end
|
|
470
|
-
|
|
471
421
|
def print_govern_summary( report: )
|
|
472
422
|
Array( report[ :repositories ] ).each do |repo_report|
|
|
473
423
|
if repo_report[ :error ]
|