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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6046632b555d3558d7b0b8910cbcb50a562d155b92d535f28275eb78cd9f02d9
4
- data.tar.gz: 8a86dad0adc37689a2dc2185ac428c4710f3aa511b2015455a6eeab9ae7468d6
3
+ metadata.gz: b9a6bf9aa88547c46e4d2138f5da872e38684d10056d948ce7d97124173b37ac
4
+ data.tar.gz: 285255f7661b92a7943d92b0b421858064980b9cfdfa39c1eb643c40590948e6
5
5
  SHA512:
6
- metadata.gz: aca61a3a47edbbf4a6dea33970b954f5b5116786d3f14713f67e2140ce0d113364f4e5c08181146296cb28858d5023b552102178386e05c6d9120686c79dbcb2
7
- data.tar.gz: 65fd5eb074422776f240a8161c5bec6d3ea6c8d746e182b9e2f95bf8cbd05131c9a0567af5dc0d9ef3f4e5b9bc1ab71e4c22493d3ef69f9a6e43c9487430fac3
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.25.0
1
+ 2.26.0
@@ -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 blocked."
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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carson
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.25.0
4
+ version: 2.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hailei Wang