Skip to content

Equivalence cases for example-health-apis Medication family: HCMADB01, HCMADB02, HCMABA01 (Part of #8121) - #8224

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8121-20261110T1516Z
Nov 10, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8121-20261110T1516Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Equivalence cases for the example-health-apis Medication family write path: HCMADB01, HCMADB02, HCMABA01 (Part of #8121). Case data only: no engine, translator or harness change.

Case Before After (det port vs GnuCOBOL + Db2)
health-hcmadb01 no case 6 runs, 4/4 paragraphs, 6/6 branches, equal
health-hcmadb02 no case 8 scenarios, 7/7 paragraphs, 8/11 branches, equal
health-hcmaba01 no case 6 runs, 5/5 paragraphs, 6/6 branches, equal

HCMABA01 LINKs HCMADB01 (INSERT MEDICATION) and HCMADB02 (one PRESCRIPTION row per dose); HCAZERRS is listed under programs. Scenarios: happy path, a second medication, no COMMAREA (ABEND HCCA), short COMMAREA, unknown patient (FK failure -> '90'); HCMADB02 adds frequency 1, another frequency, end before start, a multi-day span and a duplicate prescription key. Injected Db2 faults run with --faults all.

What is not covered

HCMADB02's frequency 2, 3 and 4 arms start with MOVE 08000000 TO WS-START-NUM-TIME. The det port emits Cobol.move(D8000000, ...), dropping the leading zero, so the hour reads 80 and H2 rolls the date over (a missing 08:00 row, an extra row on the next day); GnuCOBOL keeps 08:00:00. Those scenarios were dropped rather than loosened: 3 branch outcomes in HCMADB02 stay uncovered. Logged as port blocker P127 (#8223) (tests/cobol_mainframe/port_blockers.json, page regenerated), unfixed (fix belongs in det/gen.py move(), its own PR).

Class / Sibling gaps

Class: example-health-apis families, one per PR. Done: Menu (#8191), Visit (#8217), Threshold (#8220), Medication write path (this PR); Patient is #8222 (merged). Sibling gaps: HCIMDB01 and HCM1BI01 (read path, SQLCODE +100 divergence, P124/P126 shape); HCM1PL01 and HCMAPL01 (map programs); HCMRESTW (owner ruling needed); HCMADB02/HCMABA01 multi-dose scenarios (P127); the earlier held siblings (HCIVDB01, HCV1BI01, HCV1PL01).

Checklist: partial [c:54bc7fde] -- the read-path and map programs, HCMRESTW and the multi-dose scenarios (P127) are left, listed above.

Remaining slices

Read path (HCIMDB01, HCM1BI01) after the SQLCODE +100 fix; map programs HCM1PL01 / HCMAPL01; HCMRESTW; HCMADB02 frequency 2..4 after P127; Patient family in #8222.

Overlap: #8222 merged first; journey.json conflicted and was merged by hand (one journal entry here).

Lessons for agents

  • A det-port numeric literal with a leading zero moved to a group item loses the zero (Cobol.move(D8000000, ...)): a Db2 time-of-day loop then diverges on H2 only. Read the generated Hcmadb02Service.java before assuming a scenario or seed is wrong.
  • Cut the failing scenario to one to see whether a diff is order-dependent before touching the seed.

File cap: 0 hand-written files (case data, generated ledgers/pages, one ledger entry).
File-cap exception: the 11 files are case data (LICENSE, NOTICE, seed.sql per case) and generated ledgers or pages; hand-written files: 0.

Cross-repo: none

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 10, 2026 10:50
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 10, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 10, 2026 15:55
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 10, 2026 15:55
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 10, 2026 16:04
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8224 @ 4388ed7: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42849456998/job/129950740169
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: 54898b74c23fde5556c9b3c3a2290865feef0dfe
Build Date: 2026-10-28T21:51:42Z
Worker ID: {23d1bfd9-2700-474f-92de-7a6e44942bf4}
Region: centralus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
26.04.1
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-26.04
Version: 20261101.186.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu26/20261101.186/images/ubuntu/Ubuntu2604-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu26%2F20261101.186
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
PLAN: full
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: full)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42849456998/job/129946124975
repro: python -m pytest -q tests/tools/test_det_sweep_timing.py::test_every_db2_case_has_a_committed_duration_but_the_newest
failing tests: tests/tools/test_det_sweep_timing.py::test_every_db2_case_has_a_committed_duration_but_the_newest
errors:
fail-on-cache-miss: false
E AssertionError: ['cbsa-bnk1dcs-generated', 'health-hcapdb01', 'health-hcapdb02', 'health-hcmaba01', 'health-hcmadb01', 'health-hcmadb02', ...]
tests/tools/test_det_sweep_timing.py:106: AssertionError
FAILED tests/tools/test_det_sweep_timing.py::test_every_db2_case_has_a_committed_duration_but_the_newest - AssertionError: ['cbsa-bnk1dcs-generated', 'health-hcapdb01', 'health-hcapdb02', 'health-hcmaba01', 'health-hcmadb01', 'health-hcmadb
##[error]Process completed with exit code 1.
log tail:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 1008444
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 5536b0761bcdb7530586a777dc542a849bb491b5ca60e48b72eb4cc5ffc41a14
Finalizing artifact upload
Artifact test-times-part-3 successfully finalized. Artifact ID 13780441477
Artifact test-times-part-3 has been successfully uploaded! Final size is 1008444 bytes. Artifact ID is 13780441477
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/42849456998/artifacts/13780441477
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/19c7af84-cc97-42d5-879d-3b5dfffb418c' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 10, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 10, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (2482e0f) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 10, 2026 16:45
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 10, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 10, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 10, 2026 16:47
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 10, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 10, 2026 16:48
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 10, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 10, 2026
@squid-shepherd
squid-shepherd Bot merged commit bd85411 into main Nov 10, 2026
80 of 103 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant