docs: sequence gRPC validation and scope section replays
This commit is contained in:
@@ -444,6 +444,8 @@ Probe uses generated client and fixture fault controls to inspect semantics CLI
|
||||
|
||||
Implement `python3 scripts/validation/grpc-data/cli_gate.py --run-id grpc-data-local --scenario all` and `dotnet run --project scripts/validation/grpc-data/probe/GrpcDataProbe.csproj -c Release -- --manifest <restricted-manifest> --scenario all` (publish probe once inside runner). Each scenario has a nonzero assertion count, prerequisites, hard timeout, restoration and result row. `all` excludes no required feature scenario silently. Software fixture gaps are implementation failures, not successful skips.
|
||||
|
||||
Run a short deployment and catalog smoke check first. Require D01 topology, all six apply acknowledgments, and actual catalog readiness. Then run the complete D07 with `python3 scripts/validation/grpc-data/cli_gate.py --run-id grpc-data-local --scenario D07` before the rest of the matrix. Keep the original CLI sessions on the same consumer endpoint for Raw and UNS. Require a quality gap, a fresh recovery baseline, ordinary updates after the metadata lease, the pinned-node and maintenance controls, and restoration confirmed by all six acknowledgments and catalog readiness. Diagnose a failure here before starting the full matrix. The final candidate still requires all 15 scenarios (D01–D14 plus D01a) and all 38 standalone probe checks.
|
||||
|
||||
| ID | Setup/action | Required assertions |
|
||||
|---|---|---|
|
||||
| D01 | Deploy/read identities for CONTROL/SOURCE/CONSUMER | Each pair sees only its two Akka members; source/consumer processes differ; active roles/capabilities ready; all apply revisions match |
|
||||
@@ -492,13 +494,23 @@ Write evidence under `artifacts/grpc-data/<run>/`: redacted resolved compose/man
|
||||
|
||||
Independently vary unique sources, shared Raw/UNS views, client count, registrations/overlap, scalar/string/array payloads, source rates, intervals/deadbands, worker count, compact/fallback encoding and slow consumers. Include burst/concurrent browse, quiet/hot source fairness, same-origin different pinned node/principal isolation, stalled writer/slow snapshot, producer array reuse, ingress saturation, revocation during encoding and reconnect storm after active-node loss. Run source/readiness invalidation and catch-up memory scenarios with deterministic assertions before performance sampling.
|
||||
|
||||
Run the short workload gate before the full measurement run. Use the same versioned profile definitions and all of their assertions.
|
||||
|
||||
```bash
|
||||
python3 scripts/validation/grpc-data/workload.py --run-id grpc-data-local \
|
||||
--profiles scripts/validation/grpc-data/workload-profiles.json \
|
||||
--select steady --select fan-out --select recovery --select bounded-admission
|
||||
```
|
||||
|
||||
Require all four profiles to pass and restore the rig. Fix a failure before starting the full measurement run. Keep the measurement rig clear of competing tests and builds. Phase completion still requires the full ten-profile run, the complete native adversarial gate and a matching runtime candidate.
|
||||
|
||||
Command: `python3 scripts/validation/grpc-data/workload.py --run-id grpc-data-local --profiles scripts/validation/grpc-data/workload-profiles.json`. Profiles contain small smoke, steady, fan-out and recovery settings, not mandatory advertised capacity numbers. Record actual hardware/container limits/architecture, TLS/compression, source versus delivered rate, bytes/sample, CPU per actor/partition, retained/pool/cache bytes, GC, scheduling p95/p99 and snapshot/recovery time. Compare configurations on identical input. Success means correctness, bounded resource/fairness invariants and useful measurements; no fabricated universal throughput threshold. Detect leaks only against agreed steady-state accounting/tolerance for the specific run, not fragile instantaneous GC values. Record current DriverHostActor/SDK serialization ceilings explicitly.
|
||||
|
||||
**Phase completion:** `python3 -m unittest discover -s scripts/validation/grpc-data/tests -p 'test_workload_results.py'`, P11 applicable dotnet classes (only if added/changed), and workload evidence; tune quotas only from the measured envelope, preserving single-member failover headroom and user-configurability. Astra reviews any change to snapshot/sharing/ordering contracts before release. Commit `perf: measure grpc fanout and recovery bounds` only if code/harness changes justify it.
|
||||
|
||||
## P12 — Final whole-solution verification and integrated Astra review
|
||||
|
||||
**Owner/model:** coordinator GPT-6.2 Sol (high); independent Astra (xhigh, per the model table) final review. **Depends:** all prior phases clean. **This is the only whole-solution test phase.**
|
||||
**Owner/model:** coordinator GPT-6.2 Sol (high); independent Astra (xhigh, per the model table) final review. **Depends:** all prior phases clean. **Only P12 validates the full solution inventory. Execute it in sections from the start.**
|
||||
|
||||
### Task 24: Provide local prerequisites and run the full tests
|
||||
|
||||
@@ -520,28 +532,29 @@ Record the remaining known fixture switches in `fixture-environment-map.json`; e
|
||||
| Native/proprietary/live devices | TwinCAT `TWINCAT_TARGET_HOST/NETID/PORT` and native AMS runtime; Heidenhain `HEIDENHAIN_LSV2_HOST`/credentials; gateway `HISTGW_GATEWAY_ENDPOINT`/`HISTGW_GATEWAY_APIKEY` plus suite opt-ins. Treat absent hardware/licensing/platform cases as unavailable coverage with exact test names, not required new-feature substitutes |
|
||||
| Long-running opt-in tests | `OTOPCUA_SDK2_SOAK` and its duration/mode/output/platform controls, plus folder-event performance controls. Explicitly decide/run software-supported opted-in cases in the final tier and record disabled long-running cases as not executed; a no-category-filter command does not automatically enable them |
|
||||
|
||||
Final command, executed once against the final candidate after restore/build and environment setup:
|
||||
Restore and build the final candidate once. Plan and record the section inventory before starting test execution. Use each unfiltered test project as a baseline section, each of the seven software profiles as its own section, and the read-only AB differential and isolated SDK lifecycle diagnostic as separate sections. Keep both saturation observer protocol controls. Update the final orchestrator to run and reconcile these sections directly.
|
||||
|
||||
Use this build and per-project command shape. Set `section_project` and `section_trx_dir` from the section manifest and supply that section's explicit fixture environment.
|
||||
|
||||
```bash
|
||||
dotnet restore ZB.MOM.WW.OtOpcUa.slnx --disable-parallel -m:2
|
||||
dotnet build ZB.MOM.WW.OtOpcUa.slnx -c Release --no-restore -m:2
|
||||
AKKA_TEST_TIMEFACTOR=3 dotnet test ZB.MOM.WW.OtOpcUa.slnx \
|
||||
AKKA_TEST_TIMEFACTOR=3 dotnet test "$section_project" \
|
||||
-c Release --no-build -m:1 -p:TestTfmsInParallel=false \
|
||||
--settings scripts/ci/ci.runsettings \
|
||||
--blame-hang --blame-hang-timeout 20m --blame-hang-dump-type none \
|
||||
--logger trx --results-directory artifacts/grpc-data/final/trx
|
||||
MIN_EXECUTED=12000 bash scripts/ci/assert-not-all-skipped.sh artifacts/grpc-data/final/trx/*.trx
|
||||
--logger trx --results-directory "$section_trx_dir"
|
||||
```
|
||||
|
||||
The final `dotnet test` has NO category/FQN filter: include SlowUnit and all discoverable runnable integration/live categories. The documented CI command excluding E2E/LiveIntegration is useful precedent for serialization but is not a substitute for this user-requested full run. Run final orchestrator via `python3 scripts/validation/grpc-data/run-final.py --run-id grpc-data-local`; it owns environment setup, build, full command, TRX guard and teardown/evidence. `--no-build` is valid here because the same candidate was just fully built. Use the repository's architecture/platform-supported build setup; resolve genuine incompatibilities rather than excluding projects silently.
|
||||
Baseline project discovery and execution include SlowUnit and all discoverable runnable integration and live cases. Apply the existing exact selections for the supplemental gates. Use the repository's architecture and platform build setup. Provision only the fixtures a section needs. Give SQL-heavy sections fresh owned SQL fixtures and verify memory headroom for their setup and query grants before launch.
|
||||
|
||||
The 12,000 floor is the current baseline guard, not proof of full execution. Also require a result/discovery inventory per test assembly and every new GrpcData class, zero missing/zero-executed expected projects, zero failed tests, and zero skipped required feature cases. Parse every skipped test name/reason. Hardware/Windows/native/proprietary suites that cannot run on the local host are listed as explicit unavailable coverage with requirements and a next gate; never describe that as all tests passed. Any available software fixture that skipped unexpectedly must be fixed/enabled and its applicable project rerun. A test reaching a forbidden shared host is a gate failure, not permission to use it. Do not lower floors, remove categories, blanket retry, change assertions or mark new feature cases optional to force green.
|
||||
For each section, retain the candidate and relevant execution-input hashes, discovery results, command and exit status, TRX, redacted fixture configuration and readiness, and cleanup evidence. If a section fails, preserve the original command and TRX, fix the cause, rebuild affected binaries where needed, then replay the complete affected section. Reuse passing sections when their relevant inputs match. Rerun every affected section after a shared change. Record which original or replayed result was selected for each section and why. Keep the P10 and P11 evidence aligned with the runtime candidate. Rerun impacted live gates after runtime changes. Shared P10 runtime or wiring changes require the full CLI matrix, and changes affecting P11 measurements require a fresh full workload run.
|
||||
|
||||
Use each unfiltered test project and each software profile as a validation section. The solution command above can supply the initial per-project TRXs for an in-flight run. If a section fails, retain its original command and TRX, correct the failure, then rerun the complete affected project or profile. Preserve passing sections with matching execution inputs and rerun every section affected by shared changes. Reconcile the same full discovery inventory, failure and skip rules, 12,000 executed floor, software checks, and cleanup evidence across the selected section TRXs. The evidence identifies every replay and links its original failure and passing result. Docker scenario and workload evidence must match the tested runtime candidate. Rerun impacted scenarios after runtime changes and the full CLI matrix after shared runtime or wiring changes.
|
||||
Reconcile the selected baseline TRXs against the full discovery inventory, including every expected test project and new GrpcData class. Run `scripts/ci/assert-not-all-skipped.sh` with `MIN_EXECUTED=12000` over those selected TRXs. Also require all seven software profiles, both supplemental sections and both observer controls, zero failures, zero missing results, zero skipped required feature cases, and cleanup evidence. Record each skipped test and reason. An expected project can have zero executions only if every discovered case has exact unavailable evidence and a recorded next gate. Enable any unexpectedly skipped available software fixture and replay its affected section. Treat any access to a forbidden shared host as a gate failure. Keep the original assertions, coverage requirements and executed-test floor when replaying a section.
|
||||
|
||||
### Task 25: Final review, documentation and completion evidence
|
||||
|
||||
Give Astra the final diff, design/plan, phase TRX/discovery manifests, local CLI/probe/topology/fault evidence, full-suite results/skip inventory, workload report and unresolved risks. Ask for concrete correctness/security/concurrency/architecture findings, including bounds before mailboxes, immutable producer ownership, no unsafe upstream filtering, final dispatch policy, cache/provenance isolation, mapped ACL with legacy toggle off, and one-hop export boundary. Astra edits only `docs/plans/evidence/grpc-data/final-astra-review.md`. Coordinator resolves findings with focused tests, then applies the final-candidate rule above.
|
||||
Have Astra review the source and completed evidence as they become available. For final approval, give Astra the final diff, design/plan, phase TRX/discovery manifests, local CLI/probe/topology/fault evidence, full-suite results/skip inventory, workload report and unresolved risks. Ask for concrete correctness/security/concurrency/architecture findings, including bounds before mailboxes, immutable producer ownership, no unsafe upstream filtering, final dispatch policy, cache/provenance isolation, mapped ACL with legacy toggle off, and one-hop export boundary. Astra edits only `docs/plans/evidence/grpc-data/final-astra-review.md`. Coordinator resolves findings with focused tests, then applies the final-candidate rule above.
|
||||
|
||||
Update operational docs and `docker-dev/README.md` to distinguish current three-pair topology, API-key data plane and local validation rig; do not copy stale artifact-upload examples. Confirm new options/defaults, TLS trust/rotation, scoped secrets, mapping migration/consumer role behavior, rollback/disable, resource/overload diagnostics and deferred capabilities. Run documentation path checks and relevant script units only; do not invent a new full-suite rerun for prose-only changes.
|
||||
|
||||
@@ -549,7 +562,7 @@ Deliver commit/diff summary, exact tests/CLI scenarios executed and results, Ast
|
||||
|
||||
## Completion checklist and review questions
|
||||
|
||||
- Every phase has only its applicable unit filters, nonzero discovery and TRX evidence; whole solution ran at final candidate only (repeated solely for actual final fixes).
|
||||
- Every phase has only its applicable unit filters, nonzero discovery and TRX evidence; the full solution inventory is reconciled against the final candidate, with passing sections reused on matching inputs and only affected sections replayed.
|
||||
- All design invariants and Astra design findings map to named implementation tests; no Raw/UNS or intra/intercluster scope was lost for scaling convenience.
|
||||
- Local Docker gate actually used separate processes and independent pairs, local-only dependencies, validated TLS and production deployment/auth paths.
|
||||
- OPC UA CLI demonstrated browse/read/write/subscribe through mapped views, including steady-client remote failover; direct gRPC probes filled CLI observability gaps.
|
||||
|
||||
Reference in New Issue
Block a user