docs(grpc-data): H2 live smoke on final HEAD (h2-history-smoke-final)

This commit is contained in:
Joseph Doherty
2026-11-23 23:46:50 -05:00
parent 1d3f172f83
commit 180bd76578
+41 -2
View File
@@ -149,6 +149,45 @@ Not reproduced on master here (no second checkout from this worktree) — coordi
## Live smoke (rig)
### Final HEAD — run `h2-history-smoke-final`
2026-11-24 04:37–04:52 UTC, standalone rig, clean tree. The build is `1d3f172f8` = final `99598637d` + one harness-only commit (the probe
asserts the review-fix-7a capabilities shape); `git diff 99598637d 1d3f172f8 -- src tests` is empty. Recorded `source_tree_hash`
`1796e93b3a4fdf61…`, equal to the checkout's at smoke time. **Normal build-hash checks**: `ScenarioRunner.verify_candidate`
matched every Host stamp and the device fixture; no `--pinned-build`. The second principal is seeded with an origin ACL without HistoryRead
(`ReadOnly − HistoryRead`). Its export lacks HistoryRead in phase A; phase B grants it through the seeder `mutate`
(`export_id=export-raw-nohistory`, `export_allowed_operations=63`) and a normal deploy.
```bash
python3 scripts/validation/grpc-data/rig.py up --run-id h2-history-smoke-final --history --timeout 900
python3 scripts/validation/grpc-data/rig.py seed --run-id h2-history-smoke-final
sleep 75 # CONTROL's ClusterNode contact refresh (see the harness note below); the first deploy then applied on all six
python3 scripts/validation/grpc-data/rig.py deploy --run-id h2-history-smoke-final --timeout 300
python3 scripts/validation/grpc-data/history_smoke.py --run-id h2-history-smoke-final --label export-denied --denied-expect permission-denied
# ScenarioRunner.mutate(export_id="export-raw-nohistory", export_allowed_operations=63) → deploy
python3 scripts/validation/grpc-data/history_smoke.py --run-id h2-history-smoke-final --label acl-denied --denied-expect unsupported
python3 scripts/validation/grpc-data/cli_gate.py --run-id h2-history-smoke-final --scenario D01
python3 scripts/validation/grpc-data/cli_gate.py --run-id h2-history-smoke-final --scenario D03
python3 scripts/validation/grpc-data/rig.py down --run-id h2-history-smoke-final
```
| # | Item | Observed (both SOURCE listeners unless noted) | Result |
|---|---|---|---|
| 1 | `GetCapabilities` with / without the `history` header (granted key) | without: `operations` 31 (source-1 Primary) / 23 (source-2 Secondary), no field 16, 158/160 B. With: 63 / 55, field 16 = `{raw, processed, atTime, 19 aggregates, resolution 1 tick, 10000 per page, 4 concurrent, idle 60 s}`, 388/390 B | PASS |
| 2 | Raw `end=now, num_values_per_node=5` on `counter` | `0x00000000`, 40…36 newest first + continuation. Resume ⇒ `0x00000000`, 35…31. Same token again ⇒ `0x804A0000`, no samples, no continuation. Phase B: 80…76 / 75…71 / `0x804A0000` | PASS |
| 3a | Unhistorized `scalar` | `0x80720000`, no samples/continuation/diagnostic, item bytes `108080C88308` | PASS |
| 3b | No-grant key (export without HistoryRead) — HistoryRead | RPC `PERMISSION_DENIED` | PASS |
| 3b′ | No-grant key — `GetCapabilities` with the header (review fix 7a) | `history` present = `{maxValuesPerPage 10000, maxConcurrentReads 4, continuationIdle 600000000}`; raw/processed/atTime false, **no aggregates, resolution 0**, `operations` 31 / 23 (**no bit 32**) | PASS |
| 3c | Same key, export granted, origin ACL denies | `0x80720000`, **byte-identical** to 3a (`108080C88308`). Its capabilities are now the full granted shape (63 / 55) | PASS |
| 3d | Granted key without the header | `FAILED_PRECONDITION` | PASS |
| 4 | Values vs Client CLI `historyread` on `ns=2;s=modbus/plc/counter`, same window | 30 values (A) / 31 values (B). The forward Raw on each SOURCE listener and the consumer reads are row-for-row identical (µs timestamp, value, quality). CLI on `scalar` ⇒ `BadHistoryOperationUnsupported (0x80720000)` | PASS |
| 5 | Runtime consumer: CONSUMER node probe on the deployed `consumer-source` lease (Cluster/Primary) → `IDataHistoryService` | consumer-1 and consumer-2: Raw and UNS newest 5 = item 2's values + continuation, resume Good. Window = the CLI rows. `scalar` ⇒ `0x80720000` | PASS |
| 6 | D01, D03 with history on (normal `cli_gate.py`) | D01 PASS (48 assertions), D03 PASS (377), both restored | PASS |
Teardown: `rig.py down`; label-filtered `docker container/volume/network/image ls` for the run ⇒ 0/0/0/0. No product defect found.
### Earlier run — `h2-history-smoke` (pre-final build, kept as history)
Run `h2-history-smoke`, 2026-11-24 04:17–04:33 UTC, standalone rig (`scripts/validation/grpc-data`, OrbStack), not docker-dev.
**Build inputs:** HEAD `eb29360d4` plus the review-2 work then uncommitted in the worktree
(`LocalDataServices.History.cs`, `OpcUaServer.csproj`; diff SHA-256 `b1e0fda7…`); recorded `source_tree_hash` `fff3094c6d2dd694…`.
@@ -188,7 +227,7 @@ python3 scripts/validation/grpc-data/rig.py down --run-id h2-history-smoke
Teardown: `rig.py down` removed every run-labelled container, network, volume and image. Label-filtered `docker … ls` afterwards: 0/0/0/0.
**Recipe mismatch (not a code change; for the coordinator).** The recipe (step 3 above) and `DataConnections.md` ("not exported, denied … answers the
**Recipe mismatch (not a code change; since resolved in docs by `f3f0af87a`).** The recipe (step 3 above) and `DataConnections.md` ("not exported, denied … answers the
same `BadHistoryOperationUnsupported`") say that a key whose **export** lacks HistoryRead gets the per-item
`0x80720000`. Live, the RPC is refused with `PERMISSION_DENIED` before any item is evaluated. This is review fix 2
(`Ready(…, HistoryRead)` ⇒ PermissionDenied with no export grant, like v1 Read). It is per-principal and node-independent,
@@ -196,7 +235,7 @@ so it does not separate unhistorized nodes from denied ones. The per-node indist
recipe/doc wording should say "export grant missing ⇒ `PERMISSION_DENIED`; ACL-denied / unhistorized / unknown ⇒ identical
`0x80720000`".
**Observed on the pre-review2-7a build.** For the no-grant principal, the capabilities still carried field 16 with the full
**Observed on the pre-review2-7a build** (superseded: the final run confirms 7a, item 3b′). For the no-grant principal, the capabilities still carried field 16 with the full
aggregate list and resolution (`operations` 31, no bit 32). `808e1fe98` (review2-7a, landed after this build) addresses exactly that.
It was not re-verified live.