Skip to content

CI: every committed port must compile against the current generator (#4423) - #4434

Merged
squid-protocol merged 1 commit into
mainfrom
ci/4423-ports-compile
Oct 5, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ci/4423-ports-compile

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Draft. Fixes #4423.

Problem

#4390 shipped with the committed crucible ports no longer compiling against the generator, and #4342/#4349 changed the generated surface again. Nothing in CI said so by name: it showed up only as ratcheted java-ported cells in the CICS Crucible job (Docker + GnuCOBOL, reported per scenario) or as stale evidence records.

Fix

  • tests/tools/ports_compile_check.py: generates each project with the generator at HEAD, lays the committed ports over it, compiles, and fails naming each broken port. No Docker, no COBOL run.
    • crucible ports (tests/cics_crucible/ports/<case>/<PROGRAM>/overlay, 17): the same path as cics_crucible.py forge (refactor, cobol-to-java h2, overlays, mvn compile). A port is named when the compiler's errors name one of its files, else every port of the case is named.
    • equivalence ports (tests/equivalence/<case>/port, 28: CardDemo, CBSA, GenApp): each corpus's project is generated once, the way equivalence_java.prepare_project does it (h2, the case's culture), and built with Maven. Then each port's files (after the files of its uses_ports) are compiled with javac against that build, which is how the harness's --reuse compiles a port.
    • The fixture's scaffolding ports are skipped. The runner's E2E test covers them.
  • .github/workflows/ports-compile.yml, job committed ports compile. It reuses cics-crucible.yml's pin clone, setup-java 17 and the Maven cache, plus java-compile.yml's corpora cache and fetch. It is blocking (no continue-on-error), because every port compiles on main since Prove crucible ports through their deployed entry points (Spring facades) (#4343) #4425.
  • tests/cics_crucible/test_ports_compile_check.py: checks the port discovery (every committed equivalence port, uses_ports order) and the culprit naming.

Proof (local, JDK 17, cics-crucible v0.2.0)

  • main: all 45 committed port(s) compile against the generator at HEAD (4m08s; corpora already fetched, scans cached).
  • One crucible port and one equivalence port corrupted on purpose (PcwizWsState renamed in PCWIZ, a type error appended to COSGN00C), then reverted:
    2 of 4 committed port(s) do not compile against the generator at HEAD:
      - crucible:pc-wizard/PCWIZ
      - equivalence:carddemo-signon
    
    exit 1, with ::error annotations naming each port.
  • ruff_audit --ci, mypy_audit --ci: clean.

🤖 Generated with Claude Code

…4423)

tests/tools/ports_compile_check.py generates each crucible case's project
(cics_crucible.forge) and each equivalence corpus's project (h2, as
equivalence_java.prepare_project does), lays the committed ports over it
and compiles -- no Docker, no COBOL run -- naming each port that fails
(crucible:<case>/<PROGRAM>, equivalence:<case>). 45 ports today: 17
crucible, 28 equivalence (CardDemo / CBSA / GenApp). Workflow
ports-compile.yml runs it, blocking.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 5, 2026 12:17
@squid-protocol
squid-protocol merged commit 0a590f9 into main Oct 5, 2026
31 checks passed
@squid-protocol
squid-protocol deleted the ci/4423-ports-compile branch October 5, 2026 12: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.

CI: every committed port must compile against the current generator

1 participant