Skip to content

java-ported: plan.json carries the CSD's TDQUEUEs, so an undefined queue is QIDERR (Part of #7956) - #8403

Merged
squid-protocol merged 1 commit into
mainfrom
fix/7956-java-plan-tdqueues
Nov 13, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/7956-java-plan-tdqueues

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Unblocks #8288. The java-ported side answered NORMAL where the case CSD defines no such transient-data queue, so hc-tdqueue-enable ran 2 of 4 scenarios.

java_plan (tests/tools/cics_crucible.py) put no TDQUEUE list in plan.json, so CicsTask.tdQueues stayed null and the Java task took every queue as defined. The cobol-stub side gets the same facts through tdqueues.cfg, so the two runtimes disagreed on the oracle's QIDERR. The Java runtime already had withTdQueues, withTdQueueTypes and withTdQueueAttributes — only the harness side was missing.

The second half of the blocker

hc-tdqueue-enable had no committed deterministic port, so java-ported could not run it at all — a plain run reports no port of any of its programs (0/4), not 2/4. The 2/4 in #8288 came from a scratch build that was never committed, since that PR is body-only. This registers the case in cics_crucible_det.PROGRAMS and commits HCTDEN's det port, 52/52 statements, no holes.

Evidence

Measured on cics-crucible d0e7ebe (the case is on crucible main, squashed in via squid-protocol/cics-crucible#104; it is not in the pinned v0.18.0). Same det port both runs; the harness change is the only difference.

result
without the fix 2 pass / 2 fail — inquire, undefined: 'R=44 R2=01' expected, got 'R=00 R2=00'
with the fix 4 pass / 0 fail — PROVEN

tests/cics_crucible: 1113 passed, 15 skipped.

Follow-ups (not in this PR)

Note for agents

/usr/lib/jvm/java-21-openjdk-amd64 on this box is a JRE — it has no javac. Maven defaults to it and fails with the misleading release version 17 not supported. Export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 before any crucible run that compiles.

🤖 Generated with Claude Code

…eue is QIDERR (Part of #7956)

The java-ported side answered NORMAL where the CSD defines no such transient-data queue: `java_plan`
put no TDQUEUE list in plan.json, so `CicsTask.tdQueues` stayed null and the task took every queue
as defined. The cobol-stub side got the same facts through tdqueues.cfg, so the two runtimes
disagreed on the oracle's QIDERR.

The plan now emits `tdqueues` (name -> "TYPE KEY=VALUE...") when, and only when, the case's CSD
defines some -- an always-present empty key would break the exact-equality plan tests -- and the
generated test hands them to the task through withTdQueues / withTdQueueTypes, plus
withTdQueueAttributes for the rest (RECOVSTATUS and friends, #5168 X61). The Java runtime already
had all three setters; only the harness side was missing.

This is the gap that held PR #8288. `hc-tdqueue-enable` also had no committed deterministic port,
so java-ported could not run it at all ("no port of any of its programs"), so this registers the
case in cics_crucible_det.PROGRAMS and commits HCTDEN's det port (52/52 statements, no holes).

Measured on cics-crucible d0e7ebe, same det port both times, the harness change the only difference:

  without  2 pass / 2 fail  (`inquire`, `undefined`: 'R=44 R2=01' expected, got 'R=00 R2=00')
  with     4 pass / 0 fail  PROVEN

tests/cics_crucible: 1113 passed, 15 skipped.

Co-Authored-By: Claude Opus 5 <[email protected]>
@squid-protocol
squid-protocol merged commit a811d6e into main Nov 13, 2026
41 checks passed
@squid-protocol
squid-protocol deleted the fix/7956-java-plan-tdqueues branch November 13, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant