Merge #923: gRPC data H4 Gateway-backend remote history live leg vs the real AVEVA Historian (read-only gateway), H01–H08 pass; rig --history-backend gateway; drop the #922 H01 re-browse workaround now that #922 is fixed
v2-ci / unit-tests (push) Has been cancelled
v2-ci / unit-tests (push) Has been cancelled
This commit is contained in:
@@ -174,6 +174,31 @@ reaches the origin. Controls: the origin's own `counter` is historizing and its
|
||||
are in the same tap window; the probe's `--scenario history-v1-origin` sends new-shape calls (capabilities with the header are
|
||||
byte-identical to without; HistoryRead ⇒ `PERMISSION_DENIED`: a pre-H2 data listener admits only its six v1 methods) and the tap records them.
|
||||
|
||||
### Gateway origin backend (#923, needs the VPN to the AVEVA historian)
|
||||
|
||||
`--history-backend gateway` points SOURCE at a **host-run, read-only** HistorianGateway (not run-owned; start it first) through
|
||||
`http://host.docker.internal:<port>` — the only non-run-owned endpoint the allowlist admits, and only under
|
||||
`ServerHistorian__Endpoint`. The gateway must run with `ApiKeys:Mode=Disabled`, `Historian:LiveWritesEnabled=false`,
|
||||
`RuntimeDb:Enabled=false`, ports bound to `127.0.0.1` (the 2026-11-28 run used a scratch compose project `zb-historiangw-923` from a
|
||||
fresh `dotnet publish` of `historiangw` main, gRPC on `127.0.0.1:5231`). The seeder binds the historized tags `historianReadOnly`
|
||||
to existing historian tags (`GRPC_DATA_HISTORY_GATEWAY_TAGS`, default `counter=SysTimeSec,flt=SysDataAcqOverallItemsPerSec,text=SysString`);
|
||||
provisioning and continuous historization are off. `GRPC_DATA_HISTORY_GATEWAY_ENDPOINT` overrides the default
|
||||
`http://host.docker.internal:5231`.
|
||||
|
||||
```bash
|
||||
python3 scripts/validation/grpc-data/rig.py up --run-id h923-gw --history --history-backend gateway --timeout 900
|
||||
python3 scripts/validation/grpc-data/rig.py seed --run-id h923-gw
|
||||
sleep 75
|
||||
python3 scripts/validation/grpc-data/rig.py deploy --run-id h923-gw --timeout 300
|
||||
python3 scripts/validation/grpc-data/history_gate.py --run-id h923-gw # H01..H07 (H07 = reverse + end-only, gateway only)
|
||||
# restart the gateway with Historian__ReadLimits__MaxValuesCeiling=40 and __AllowStreamingBeyondCeiling=false, then:
|
||||
python3 scripts/validation/grpc-data/history_gate.py --run-id h923-gw --scenario H08 --gateway-ceiling 40
|
||||
python3 scripts/validation/grpc-data/rig.py down --run-id h923-gw
|
||||
```
|
||||
|
||||
On the gateway the window is a fixed 120 s of the recent past (nothing is accumulated). H08 re-reads the window and answers the
|
||||
previous full run stored in `evidence/H-gateway-baseline.json`, so run it after a full run on the same run id.
|
||||
|
||||
## Scenario authoring and node probes
|
||||
|
||||
The seeder is available through `LocalRig.seed_helper(action, *arguments)`. Its
|
||||
|
||||
Reference in New Issue
Block a user