Skip to content

Handover: RC-1-S28-F34

Card: RC-1-S28-F34. Issue: cema-care/his#322. Branch: session/RC-1-S28-F34. Slice: RC-1. This is a round 3 fix of the gate session RC-1-S28-G3. The work belongs to RC-1-S26, which made the RC-1 stack and its gateway environment (with RC-1-S28-F11, which put the gateway in front of it). No new decision record: the fix follows the rule the environment file already states.

The problem

Gate line: Slice gate RC-1, criterion 1 (ACC-002): the end-to-end scenario passes in an integrated environment with no manual repair between domains.

RC-3-S13 (#264) added the API ise.contract-catalogue, served by the unit gateways, to platform/gateways/model/apis.toml. The RC-1 gateway environment e2e/scenarios/RC-1/gateway/e2e.toml gives every unit the model names an address, and a unit outside the stack the discard port, but it had no entry for gateways. The harness checks the model before it starts the gateway, so every run of the RC-1 scenario stopped before its first case: api ise.contract-catalogue: unit gateways has no address in environment e2e. RC-1-S28-F31, F32, F33 and the gate session G3 all recorded this stop.

What changed

  • e2e/scenarios/RC-1/gateway/e2e.toml: gateways = "127.0.0.1:9" under [upstreams], with a comment. The unit is not in the RC-1 stack, so, as for the other platform units outside it, the gateway answers its routes "unavailable" (FR-ISE-GWY-001 part 10). The slice uses no route of the catalogue.
  • e2e/harness/test/test_gateway.py: new test test_every_unit_the_model_routes_to_has_an_address. It reads every unit platform/gateways/model/apis.toml routes to (unit and unit_by_operation), and checks that the RC-1 environment gives each one an address: the run's address for a unit of the stack, the discard port for any other. A future API on a new unit now fails this test by name, rather than the model check at a gate.

Nothing else changed. The other slices' scenarios (RC-2, RC-3, RC-4) name no gateway in their stack.json, so they have no gateway environment to repair (the question G3 left open).

Checks and their results

Check Command Result
The test fails before the repair python3 e2e/harness/test/test_gateway.py, with e2e.toml of origin/main 8 tests, 2 failures and 2 errors: the new test (['gateways'] != []), the existing model check (unit gateways has no address in environment e2e), and the two rendering tests (KeyError on the missing upstream)
It passes after the same, on the branch 8 tests, OK
Harness self-test (the owning session's tests) e2e/harness/scenario selftest OK (the TypeScript tests, and 30 Python tests including the 8 above)
Slice scenario HIS_SESSION=RC-1-S28-F34 e2e/harness/scenario run e2e/scenarios/RC-1 --fresh Run 20261202T075328Z-3e20 (not strict; the record is the next gate round's): the gateway model checked and the internal gateway started (gateway internal on https://127.0.0.1:...), and 15 of 15 cases passed in 10.4 minutes, RC-1-E2E-001 to 015. Outcome passed, record complete

What the gate line now shows

Criterion 1 (ACC-002): the RC-1 scenario starts its gateway again and runs end to end through the built units with no manual repair: 15 of 15 cases passed on this branch. The record for the gate, with --strict and the clinical owner's signature, is the next round's gate session (RC-1-S28-G4). On a host under heavy CPU steal, decision calls can still miss the 250 ms budget, as G3's diagnostic run showed; this run did not.

Requirements and test scenarios of the card

Requirement Test What it shows
Gate RC-1 criterion 1 (ACC-002); FR-ISE-GWY-001 part 10 (a unit with no instance is answered "unavailable"), IF-ISE-001 RC1Gateway.test_every_unit_the_model_routes_to_has_an_address and test_the_environment_checks_with_the_specification_settings in e2e/harness/test/test_gateway.py The RC-1 gateway environment checks against the gateway model as it is on main, so the scenario's gateway starts
The same The slice scenario, e2e/scenarios/RC-1 See the run above

Differences from the specification or contract

None.

Questions for a person

None.

Follow-ups outside the card

  • The pipeline does not run the harness self-test (e2e/harness/scenario selftest) when platform/gateways/model changes, nor at all; platform/delivery-pipeline/bin/changes has no rule for e2e/. Had it run on RC-3-S13's pull request, the test above (and the existing model check test) would have stopped it there instead of at the gate. A rule that runs it when platform/gateways/model/, contracts/ or e2e/ change belongs to the owner of platform/delivery-pipeline. G3 suggested the same.
  • The 5 cases of G3's diagnostic run that failed closed on decision calls over the 250 ms budget during CPU steal on the shared host are not part of this card (G3, issue #322).