harnex 0.7.11 → 0.7.12

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: 104afb9f09fe59bd24191fde1122294a35ae47069a929022228b4365d653da54
4
- data.tar.gz: ac8032b88f3c0001718ffc053923000abbba33743e6de4b68459108ca481cbcf
3
+ metadata.gz: da71f86b7e940d085a54ae59ce7f70a9579ca23204213cbc41a017fd5d11ed9f
4
+ data.tar.gz: 194f3ac0c6fabf118e74542dd4836c5014721cdf0000973b03be07dceceeee3e
5
5
  SHA512:
6
- metadata.gz: f76c4a9847aebd46cca3bada6c0af0e622bb3840fa53160cb4811c2beac2a007c6a01faadf042ef22f73e55c2ddde5571adc56d774e5b444ece412ad656242e4
7
- data.tar.gz: 1d9843aa631eb411fa31c772cf5c09b92cc5d5d67ed95583abf041fd250e31343c76215a8949f268563e14609416724fd681bad6bfc5c6b7c270a4f9639e6838
6
+ metadata.gz: 7975b8610b1d21c230fb0ccf7b55c16bdd9e9ff71c770bdb42f831e687313e47c9e01b20157fc8f95c767bdf716e3501fcb56a490d37dfb277f7ac1bd03fda74
7
+ data.tar.gz: 54e0d45f362d94efa2d0d698911c2d2b1daaf534c97be95bef99512d3c6ab8ad44bdb6d099eaff6d5bb38e08acee563901d94db528ab0b03df8a856648c88dd5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.7.12] - 2026-07-10 | 11:19 PM | IST
6
+
7
+ ### Fixed
8
+
9
+ - The new `reliability` block no longer treats legacy generic-PTY
10
+ `exit="disconnected"` rows (process exited 0 but no adapter usage summary was
11
+ parsed) as real transport loss. Legacy `actual.disconnections` remains
12
+ compatible; new `reliability.real_disconnections` stays `0` for that normal
13
+ no-summary process exit case.
14
+
5
15
  ## [0.7.11] - 2026-07-10 | 11:14 PM | IST
6
16
 
7
17
  ### Added
@@ -1236,7 +1236,7 @@ module Harnex
1236
1236
  end
1237
1237
 
1238
1238
  def build_summary_reliability
1239
- counters = summary_event_counters
1239
+ counters = reliability_event_counters
1240
1240
  real_disconnections = counters[:disconnections].to_i
1241
1241
  {
1242
1242
  "adapter_close" => summary_adapter_close(real_disconnections),
@@ -1250,7 +1250,7 @@ module Harnex
1250
1250
  end
1251
1251
 
1252
1252
  def build_summary_actual
1253
- counters = summary_event_counters
1253
+ counters = legacy_summary_event_counters
1254
1254
  output_measurements = summary_output_measurements
1255
1255
 
1256
1256
  actual = {
@@ -1362,7 +1362,7 @@ module Harnex
1362
1362
  summary_string(match[1])
1363
1363
  end
1364
1364
 
1365
- def summary_event_counters
1365
+ def legacy_summary_event_counters
1366
1366
  counters = @event_counters.snapshot
1367
1367
  if %w[disconnected boot_failure].include?(@exit_reason)
1368
1368
  counters[:disconnections] = [counters[:disconnections], 1].max
@@ -1370,9 +1370,19 @@ module Harnex
1370
1370
  counters
1371
1371
  end
1372
1372
 
1373
+ def reliability_event_counters
1374
+ counters = @event_counters.snapshot
1375
+ if structured_transport? && %w[disconnected boot_failure].include?(@exit_reason)
1376
+ counters[:disconnections] = [counters[:disconnections], 1].max
1377
+ end
1378
+ counters
1379
+ end
1380
+
1373
1381
  def summary_adapter_close(real_disconnections)
1374
1382
  return "interrupted" if @exit_code == 124 || @term_signal
1375
- return "lost" if %w[disconnected boot_failure].include?(@exit_reason) || real_disconnections.to_i.positive?
1383
+ return "lost" if real_disconnections.to_i.positive?
1384
+ return "lost" if structured_transport? && %w[disconnected boot_failure].include?(@exit_reason)
1385
+ return "normal" if @exit_code == 0
1376
1386
  return "normal" if %w[success failure].include?(@exit_reason)
1377
1387
 
1378
1388
  "unknown"
@@ -1,4 +1,4 @@
1
1
  module Harnex
2
- VERSION = "0.7.11"
2
+ VERSION = "0.7.12"
3
3
  RELEASE_DATE = "2026-07-10"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harnex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.11
4
+ version: 0.7.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jikku Jose