Fix CvdReactor.ProcessRecipeDownload addressing Children["DelmiaRecv"] on the wonder environments #52

Closed
opened 2026-11-06 15:24:38 -05:00 by dohertj2 · 3 comments
Owner

Register row 107 (deferred-work register).

After the 2026-06-27 DelmiaRecv → DelmiaReceiver composition rename, the deployed CvdReactor.ProcessRecipeDownload site script (template 1, script id 4) still addresses Children["DelmiaRecv"]. An unknown child path yields null, so every call would answer Receiver ready flag not set to true regardless of the real flag. Inferred from the captured script, not observed (no call since the rename). The rig stand-in (docker/seed-delmia-sim.sh) uses Children["DelmiaReceiver"] and works.

Revisit trigger (from register): Before the first production Delmia recipe download.

Current state: No fix recorded in any deployment record through 2026-10-22; the QA copy was never read. Verify on vd03 and QA via the management CLI.
Fix: scadabridge template script update on the CvdReactor template, redeploy Z28061/Z28062/Z28061Sim, then a live WWNotifier call; write a deployment record. Related: docs/api-specs/Delmia-Recipe-Download-API.md §7 item 1.

Source: docs/plans/2026-07-08-deferred-work-register.md row 107

Register row 107 (deferred-work register). After the 2026-06-27 `DelmiaRecv` → `DelmiaReceiver` composition rename, the deployed `CvdReactor.ProcessRecipeDownload` site script (template 1, script id 4) still addresses `Children["DelmiaRecv"]`. An unknown child path yields null, so every call would answer `Receiver ready flag not set to true` regardless of the real flag. Inferred from the captured script, not observed (no call since the rename). The rig stand-in (`docker/seed-delmia-sim.sh`) uses `Children["DelmiaReceiver"]` and works. **Revisit trigger (from register):** Before the first production Delmia recipe download. **Current state:** No fix recorded in any deployment record through 2026-10-22; the QA copy was never read. Verify on vd03 and QA via the management CLI. Fix: `scadabridge template script update` on the `CvdReactor` template, redeploy Z28061/Z28062/Z28061Sim, then a live `WWNotifier` call; write a deployment record. Related: `docs/api-specs/Delmia-Recipe-Download-API.md` §7 item 1. Source: `docs/plans/2026-07-08-deferred-work-register.md` row 107
dohertj2 added the type:deploy-gatepriority:p2migrated labels 2026-11-06 15:24:38 -05:00
dohertj2 added the blocked label 2026-11-10 08:43:36 -05:00
Author
Owner

Deploy prep done, not applied (commit a92a418d on main). Plan, original and fixed bodies, and a guarded apply.sh check|apply|rollback 52: docs/deployment/deploy-prep/2026-11-12-gates-52-131/.

Inventory. From a read-only export on 2026-11-12, covering every template script and inbound method. instance diff shows no stale instance on either env, so the deployed scripts are these template bodies.

  • DEV vd03: CvdReactor.ProcessRecipeDownload (template 1, script 4) still has Children["DelmiaRecv"]. The template's only composition is DelmiaReceiver. Instances to redeploy: Z28061 (1), Z28062 (2), Z28061Sim (8).
  • QA vq03/vq04 (first read of QA): the same script id, and the body is byte-identical to DEV's. Instances to redeploy: Z28061, Z28062, Z28063, Z28064, Z28065, Z28066, Z28067, Z28068, Z28069.
  • No other script on either env addresses a Children[...] name that isn't a composition.

Fix. One line: Children["DelmiaRecv"] becomes Children["DelmiaReceiver"]. apply.sh re-sends the parameter schema, because template script update replaces it. It refuses to run unless the live body matches the original file byte for byte.

Order. This can go any time; it doesn't depend on the binary deploy. Doing it in the same window as the next binary deploy means only one redeploy. Agree a slot for Z28061 first, because another team uses it.

Rig evidence. A temporary CvdReactor template held the DEV body, composing the static DelmiaReceiverSim as DelmiaReceiver. It has since been deleted.

  • Original body, ReadyFlag true: Receiver ready flag not set to true, plus the site warning attribute 'DelmiaRecv.ReadyFlag' not found. This confirms the issue's inference.
  • Fixed body, ReadyFlag true: gets past the flag check into the batch write. On the rig that write then fails only because the receiver is static (WriteBatchAndWaitAsync needs data-sourced attributes). On the wonder boxes the receiver is Galaxy-bound.
  • Fixed body, ReadyFlag false: Receiver ready flag not set to true (negative control).
  • Round trip: apply, then rollback, then apply returned the same revision hashes each time.

Label. blocked no longer matches reality: nothing technical blocks this now. It only waits for owner approval to apply on DEV and QA. I've left the label for you to change. Not closing: applying this is a deploy.

**Deploy prep done, not applied** (commit `a92a418d` on `main`). Plan, original and fixed bodies, and a guarded `apply.sh check|apply|rollback 52`: [`docs/deployment/deploy-prep/2026-11-12-gates-52-131/`](https://gitea.dohertylan.com/dohertj2/ScadaBridge/src/branch/main/docs/deployment/deploy-prep/2026-11-12-gates-52-131/README.md). **Inventory.** From a read-only export on 2026-11-12, covering every template script and inbound method. `instance diff` shows no stale instance on either env, so the deployed scripts are these template bodies. - **DEV vd03:** `CvdReactor.ProcessRecipeDownload` (template 1, script 4) still has `Children["DelmiaRecv"]`. The template's only composition is `DelmiaReceiver`. Instances to redeploy: Z28061 (1), Z28062 (2), Z28061Sim (8). - **QA vq03/vq04 (first read of QA):** the same script id, and the body is **byte-identical** to DEV's. Instances to redeploy: Z28061, Z28062, Z28063, Z28064, Z28065, Z28066, Z28067, Z28068, Z28069. - No other script on either env addresses a `Children[...]` name that isn't a composition. **Fix.** One line: `Children["DelmiaRecv"]` becomes `Children["DelmiaReceiver"]`. `apply.sh` re-sends the parameter schema, because `template script update` replaces it. It refuses to run unless the live body matches the original file byte for byte. **Order.** This can go any time; it doesn't depend on the binary deploy. Doing it in the same window as the next binary deploy means only one redeploy. Agree a slot for Z28061 first, because another team uses it. **Rig evidence.** A temporary CvdReactor template held the DEV body, composing the static DelmiaReceiverSim as `DelmiaReceiver`. It has since been deleted. - **Original body, ReadyFlag true:** `Receiver ready flag not set to true`, plus the site warning `attribute 'DelmiaRecv.ReadyFlag' not found`. This confirms the issue's inference. - **Fixed body, ReadyFlag true:** gets past the flag check into the batch write. On the rig that write then fails only because the receiver is static (`WriteBatchAndWaitAsync` needs data-sourced attributes). On the wonder boxes the receiver is Galaxy-bound. - **Fixed body, ReadyFlag false:** `Receiver ready flag not set to true` (negative control). - **Round trip:** `apply`, then `rollback`, then `apply` returned the same revision hashes each time. **Label.** `blocked` no longer matches reality: nothing technical blocks this now. It only waits for owner approval to apply on DEV and QA. I've left the label for you to change. Not closing: applying this is a deploy.
Author
Owner

Applied 2026-11-15 on DEV vd03 and QA vq03/vq04. Z28061 is excluded on both tiers (follow-up #142). Record: docs/deployment/deployment-records/2026-11-15-gate-52-delmiareceiver-fix.md (125db032).

  • Change: CvdReactor.ProcessRecipeDownload (template 1, script 4) now uses Children["DelmiaReceiver"]. apply.sh re-sent the metadata and read it back unchanged. The body is FIXED on both tiers.
  • DEV: redeployed Z28062 and Z28061Sim. Z28061 skipped (stale=True).
  • QA (active central vq04, not vq03 as on 11-13): redeployed Z28062–Z28069. Z28061 skipped (stale=True). Right before applying, all 8 had CycleRunning False and furnaces at 23–25 °C. Afterwards all 8 are at 244/244 Good, and the open batches (Z28063 29049, Z28065 29020, Z28068 29081) and their steps are unchanged.
  • Functional check (read-only): a traced flow-debug run-script on Z28062, run only with DelmiaReceiver.ReadyFlag at a Good False, so the script returns before writing.
    • Before the fix it logged GetAttribute: attribute 'DelmiaRecv.ReadyFlag' not found. That is this bug: the hard-coded text came back no matter what the flag was.
    • After the fix that warning is gone on both tiers, and the script reads the real flag.
    • The response text is unchanged, as expected for a False flag.
    • Not exercised: the write path with ReadyFlag True. QA Z28063 currently has ReadyFlag True, so it was not called. Its next real recipe download will now take the download path.
  • apply.sh: every CLI call now passes --url/--username/--password explicitly, because an env-only URL had silently reached DEV earlier today. Two guards are new: SB_EXPECT refuses unless the expected instances are present (proof of the tier), and SB_SKIP never deploys the listed instances.
  • Rollback: SB_SKIP=Z28061 bash apply.sh rollback 52 per tier.

Closing. Z28061 is tracked in #142.

**Applied 2026-11-15 on DEV vd03 and QA vq03/vq04. Z28061 is excluded on both tiers (follow-up #142).** Record: `docs/deployment/deployment-records/2026-11-15-gate-52-delmiareceiver-fix.md` (`125db032`). - **Change:** `CvdReactor.ProcessRecipeDownload` (template 1, script 4) now uses `Children["DelmiaReceiver"]`. `apply.sh` re-sent the metadata and read it back unchanged. The body is FIXED on both tiers. - **DEV:** redeployed Z28062 and Z28061Sim. Z28061 skipped (stale=True). - **QA (active central vq04, not vq03 as on 11-13):** redeployed Z28062–Z28069. Z28061 skipped (stale=True). Right before applying, all 8 had `CycleRunning` False and furnaces at 23–25 °C. Afterwards all 8 are at 244/244 Good, and the open batches (Z28063 29049, Z28065 29020, Z28068 29081) and their steps are unchanged. - **Functional check (read-only):** a traced `flow-debug run-script` on Z28062, run only with `DelmiaReceiver.ReadyFlag` at a Good False, so the script returns before writing. - Before the fix it logged `GetAttribute: attribute 'DelmiaRecv.ReadyFlag' not found`. That is this bug: the hard-coded text came back no matter what the flag was. - After the fix that warning is gone on both tiers, and the script reads the real flag. - The response text is unchanged, as expected for a False flag. - Not exercised: the write path with `ReadyFlag` True. **QA Z28063 currently has `ReadyFlag` True**, so it was not called. Its next real recipe download will now take the download path. - **`apply.sh`:** every CLI call now passes `--url/--username/--password` explicitly, because an env-only URL had silently reached DEV earlier today. Two guards are new: `SB_EXPECT` refuses unless the expected instances are present (proof of the tier), and `SB_SKIP` never deploys the listed instances. - **Rollback:** `SB_SKIP=Z28061 bash apply.sh rollback 52` per tier. Closing. Z28061 is tracked in #142.
Author
Owner

Z28061 follow-up (2026-11-15): QA Z28061 redeployed and verified, so all ten QA CvdReactor instances now run the fix. DEV Z28061 is skipped: its idle attributes are Bad quality. Details in #142 (061432c8).

Z28061 follow-up (2026-11-15): QA Z28061 redeployed and verified, so all ten QA CvdReactor instances now run the fix. DEV Z28061 is skipped: its idle attributes are Bad quality. Details in #142 (`061432c8`).
Sign in to join this conversation.