carson 2.28.0 → 2.29.0
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 +12 -0
- data/VERSION +1 -1
- data/lib/carson/runtime/audit.rb +22 -15
- 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: 4db94cc8153a2add26aa8e34ee4d1232d2211bf0ecc81ed0a806b1b5608b0550
|
|
4
|
+
data.tar.gz: da51fe2ad074433bd52d83c22c06ed95187ac96745ffe66152a2f01120fdd8ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a1aeea9070859c0781734ed69e7c984054f40dc6c3572b063614c81b10ed75c933989e99c65de749a7d5bcbe0b16e65702020d30fb69d3d8c8d8d9ecbcbab3a
|
|
7
|
+
data.tar.gz: e2e54a61d3e4d8acf3267f192482d0cc0358b1476f06037933e298a3150282a5c112c7de2ab14c057c930dfe20e05416eececc53824ee54f96872eafdbeead39
|
data/RELEASE.md
CHANGED
|
@@ -5,6 +5,18 @@ 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
|
+
## 2.29.0 — Audit Concise Output UX
|
|
9
|
+
|
|
10
|
+
### What changed
|
|
11
|
+
|
|
12
|
+
- **"Checks: skipped" and "Baseline: skipped" messages are no longer shown in concise audit output.** If checks cannot run (no PR, no required checks, `gh` unavailable), the audit stays silent instead of surfacing a misleading "skipped" line. Verbose mode still logs the skip reason for debugging.
|
|
13
|
+
- **Audit state no longer bumps to "attention" for skipped checks.** A skip is a non-event, not a concern.
|
|
14
|
+
- **Failing and pending check names are now included in concise messages.** Before: `Baseline (main): 1 failing — fix before merge.` After: `Baseline (main): 1 failing (lint) — fix before merge.` Same treatment applies to PR required checks and advisory baseline messages.
|
|
15
|
+
|
|
16
|
+
### Migration
|
|
17
|
+
|
|
18
|
+
- No action required. This is a display-only change to concise audit output.
|
|
19
|
+
|
|
8
20
|
## 2.28.0 — Non-Interactive CLI Flags for Setup
|
|
9
21
|
|
|
10
22
|
### What changed
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.29.0
|
data/lib/carson/runtime/audit.rb
CHANGED
|
@@ -54,42 +54,49 @@ module Carson
|
|
|
54
54
|
puts_verbose ""
|
|
55
55
|
puts_verbose "[PR and Required Checks (gh)]"
|
|
56
56
|
monitor_report = pr_and_check_report
|
|
57
|
-
audit_state = "attention" if audit_state == "ok" && monitor_report.fetch( :status )
|
|
58
|
-
if monitor_report.fetch( :status ) == "
|
|
59
|
-
audit_concise_problems << "Checks: skipped (#{monitor_report.fetch( :skip_reason )})."
|
|
60
|
-
elsif monitor_report.fetch( :status ) == "attention"
|
|
57
|
+
audit_state = "attention" if audit_state == "ok" && !%w[ok skipped].include?( monitor_report.fetch( :status ) )
|
|
58
|
+
if monitor_report.fetch( :status ) == "attention"
|
|
61
59
|
checks = monitor_report.fetch( :checks )
|
|
62
60
|
fail_n = checks.fetch( :failing_count )
|
|
63
61
|
pend_n = checks.fetch( :pending_count )
|
|
64
62
|
total = checks.fetch( :required_total )
|
|
63
|
+
fail_names = checks.fetch( :failing ).map { |e| e.fetch( :name ) }.join( ", " )
|
|
65
64
|
if fail_n.positive? && pend_n.positive?
|
|
66
|
-
audit_concise_problems << "Checks: #{fail_n} failing, #{pend_n} pending of #{total} required."
|
|
65
|
+
audit_concise_problems << "Checks: #{fail_n} failing (#{fail_names}), #{pend_n} pending of #{total} required."
|
|
67
66
|
elsif fail_n.positive?
|
|
68
|
-
audit_concise_problems << "Checks: #{fail_n} of #{total} failing."
|
|
67
|
+
audit_concise_problems << "Checks: #{fail_n} of #{total} failing (#{fail_names})."
|
|
69
68
|
elsif pend_n.positive?
|
|
70
69
|
audit_concise_problems << "Checks: pending (#{total - pend_n} of #{total} complete)."
|
|
71
|
-
elsif checks.fetch( :status ) == "skipped"
|
|
72
|
-
audit_concise_problems << "Checks: skipped (#{checks.fetch( :skip_reason )})."
|
|
73
70
|
end
|
|
74
71
|
end
|
|
75
72
|
puts_verbose ""
|
|
76
73
|
puts_verbose "[Default Branch CI Baseline (gh)]"
|
|
77
74
|
default_branch_baseline = default_branch_ci_baseline_report
|
|
78
|
-
audit_state = "attention" if audit_state == "ok" && default_branch_baseline.fetch( :status )
|
|
75
|
+
audit_state = "attention" if audit_state == "ok" && !%w[ok skipped].include?( default_branch_baseline.fetch( :status ) )
|
|
79
76
|
baseline_st = default_branch_baseline.fetch( :status )
|
|
80
77
|
if baseline_st == "block"
|
|
81
78
|
parts = []
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
if default_branch_baseline.fetch( :failing_count ).positive?
|
|
80
|
+
names = default_branch_baseline.fetch( :failing ).map { |e| e.fetch( :name ) }.join( ", " )
|
|
81
|
+
parts << "#{default_branch_baseline.fetch( :failing_count )} failing (#{names})"
|
|
82
|
+
end
|
|
83
|
+
if default_branch_baseline.fetch( :pending_count ).positive?
|
|
84
|
+
names = default_branch_baseline.fetch( :pending ).map { |e| e.fetch( :name ) }.join( ", " )
|
|
85
|
+
parts << "#{default_branch_baseline.fetch( :pending_count )} pending (#{names})"
|
|
86
|
+
end
|
|
84
87
|
parts << "no check-runs for active workflows" if default_branch_baseline.fetch( :no_check_evidence )
|
|
85
88
|
audit_concise_problems << "Baseline (#{default_branch_baseline.fetch( :default_branch, config.main_branch )}): #{parts.join( ', ' )} — fix before merge."
|
|
86
89
|
elsif baseline_st == "attention"
|
|
87
90
|
parts = []
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
if default_branch_baseline.fetch( :advisory_failing_count ).positive?
|
|
92
|
+
names = default_branch_baseline.fetch( :advisory_failing ).map { |e| e.fetch( :name ) }.join( ", " )
|
|
93
|
+
parts << "#{default_branch_baseline.fetch( :advisory_failing_count )} advisory failing (#{names})"
|
|
94
|
+
end
|
|
95
|
+
if default_branch_baseline.fetch( :advisory_pending_count ).positive?
|
|
96
|
+
names = default_branch_baseline.fetch( :advisory_pending ).map { |e| e.fetch( :name ) }.join( ", " )
|
|
97
|
+
parts << "#{default_branch_baseline.fetch( :advisory_pending_count )} advisory pending (#{names})"
|
|
98
|
+
end
|
|
90
99
|
audit_concise_problems << "Baseline (#{default_branch_baseline.fetch( :default_branch, config.main_branch )}): #{parts.join( ', ' )}."
|
|
91
|
-
elsif baseline_st == "skipped"
|
|
92
|
-
audit_concise_problems << "Baseline: skipped (#{default_branch_baseline.fetch( :skip_reason )})."
|
|
93
100
|
end
|
|
94
101
|
if config.template_canonical.nil? || config.template_canonical.to_s.empty?
|
|
95
102
|
puts_verbose ""
|