carson 2.25.0 → 2.26.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 +15 -0
- data/VERSION +1 -1
- data/lib/carson/runtime/audit.rb +1 -2
- 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: b9a6bf9aa88547c46e4d2138f5da872e38684d10056d948ce7d97124173b37ac
|
|
4
|
+
data.tar.gz: 285255f7661b92a7943d92b0b421858064980b9cfdfa39c1eb643c40590948e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10b6caadf5c171c80052bab4f02c124b52d4f5808f3381ceca0735755e411bf3704654c7f130fe386557f0c31034036630d4df8ce1da571f00fce6c2e91bf0e5
|
|
7
|
+
data.tar.gz: c7f53dfd624afef9d54dd6df6b2eb2f6e8ccefe59f5d092692335c75a2a5854ab8d2d8fc5c178815816746a74196691fff8105f5b3cc5f594ca6017db2938c92
|
data/RELEASE.md
CHANGED
|
@@ -5,6 +5,21 @@ 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.26.0 — Baseline Check No Longer Blocks Commits
|
|
9
|
+
|
|
10
|
+
### What changed
|
|
11
|
+
|
|
12
|
+
- **Default-branch CI baseline failures are now advisory, not blocking.** When main's CI is failing, `carson audit` reports it as `attention` instead of `block`. This eliminates the deadlock where a broken main prevented committing the fix on any branch. The baseline status is still reported so users are aware before merging.
|
|
13
|
+
- Message changed from "merge blocked" to "fix before merge" to reflect the advisory nature.
|
|
14
|
+
|
|
15
|
+
### Why
|
|
16
|
+
|
|
17
|
+
Carson's pre-commit hook runs `audit`, which checks main's CI baseline. If main had a failing check, the audit hard-blocked all commits across every branch — including the branch carrying the fix. This circular dependency made it impossible to commit the repair without bypassing the hook entirely.
|
|
18
|
+
|
|
19
|
+
### Migration
|
|
20
|
+
|
|
21
|
+
No action required. The `CARSON_AUDIT_ADVISORY_CHECK_NAMES` env var workaround is no longer needed for this scenario.
|
|
22
|
+
|
|
8
23
|
## 2.25.0 — Onboard/Offboard UX Improvements
|
|
9
24
|
|
|
10
25
|
### What changed
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.26.0
|
data/lib/carson/runtime/audit.rb
CHANGED
|
@@ -75,7 +75,6 @@ module Carson
|
|
|
75
75
|
puts_verbose ""
|
|
76
76
|
puts_verbose "[Default Branch CI Baseline (gh)]"
|
|
77
77
|
default_branch_baseline = default_branch_ci_baseline_report
|
|
78
|
-
audit_state = "block" if default_branch_baseline.fetch( :status ) == "block"
|
|
79
78
|
audit_state = "attention" if audit_state == "ok" && default_branch_baseline.fetch( :status ) != "ok"
|
|
80
79
|
baseline_st = default_branch_baseline.fetch( :status )
|
|
81
80
|
if baseline_st == "block"
|
|
@@ -83,7 +82,7 @@ module Carson
|
|
|
83
82
|
parts << "#{default_branch_baseline.fetch( :failing_count )} failing" if default_branch_baseline.fetch( :failing_count ).positive?
|
|
84
83
|
parts << "#{default_branch_baseline.fetch( :pending_count )} pending" if default_branch_baseline.fetch( :pending_count ).positive?
|
|
85
84
|
parts << "no check-runs for active workflows" if default_branch_baseline.fetch( :no_check_evidence )
|
|
86
|
-
audit_concise_problems << "Baseline (#{default_branch_baseline.fetch( :default_branch, config.main_branch )}): #{parts.join( ', ' )} — merge
|
|
85
|
+
audit_concise_problems << "Baseline (#{default_branch_baseline.fetch( :default_branch, config.main_branch )}): #{parts.join( ', ' )} — fix before merge."
|
|
87
86
|
elsif baseline_st == "attention"
|
|
88
87
|
parts = []
|
|
89
88
|
parts << "#{default_branch_baseline.fetch( :advisory_failing_count )} advisory failing" if default_branch_baseline.fetch( :advisory_failing_count ).positive?
|