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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/harnex/runtime/session.rb +14 -4
- data/lib/harnex/version.rb +1 -1
- 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: da71f86b7e940d085a54ae59ce7f70a9579ca23204213cbc41a017fd5d11ed9f
|
|
4
|
+
data.tar.gz: 194f3ac0c6fabf118e74542dd4836c5014721cdf0000973b03be07dceceeee3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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"
|
data/lib/harnex/version.rb
CHANGED