Skip to content

Fix stale golden-image fixture in test_decoder_forge.py after #939 - #943

Merged
squid-protocol merged 1 commit into
mainfrom
fix-decoder-forge-golden-image-whitespace
Aug 1, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix-decoder-forge-golden-image-whitespace

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Discovered while resolving the baseline-conflict merge for PR #938: main currently fails full-suite's test_decoder_forge.py::test_ebcdic_comp3_decoder_golden_image after PR #939 merged.

PR #939 correctly stripped trailing whitespace from blank lines inside cobol_to_java_decoder_forge.py's Java-code-generating f-string template (the W293 fix it was meant to make), but the hardcoded GOLDEN_DECODER_UTIL fixture in this test wasn't updated to match the new output.

Confirmed via diff the drift is whitespace-only — three blank lines lost trailing spaces, no bitwise/hex COMP-3 decoding logic changed at all:

-    private static final Logger log = LoggerFactory.getLogger(EbcdicDecoderUtil.class);
-    
+    private static final Logger log = LoggerFactory.getLogger(EbcdicDecoderUtil.class);
+

(and two more identical blank-line cases)

This slipped through unnoticed because full-suite only runs on PRs that get labeled, or on version-tag pushes — not on ordinary pushes to main — so #939's merge never triggered it.

Test plan

  • tests/tools_recorders/test_decoder_forge.py — now passes
  • tests/tools_recorders/ full directory — 37 passed
  • python tests/tools/audit_check.py — clean

Co-Authored-By: Claude Sonnet 5 [email protected]

PR #939 (merged) correctly stripped trailing whitespace from blank lines
inside cobol_to_java_decoder_forge.py's Java-generating template (W293),
but the hardcoded GOLDEN_DECODER_UTIL fixture in this test wasn't updated
to match, leaving test_ebcdic_comp3_decoder_golden_image failing on main.

Confirmed via diff the drift is whitespace-only (three blank lines lost
trailing spaces) -- no bitwise/hex decoding logic changed. This slipped
through because full-suite only runs on labeled PRs or version-tag pushes,
not on ordinary pushes to main, so #939's merge never triggered it.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit e95e8b4 into main Aug 1, 2026
28 checks passed
@squid-protocol
squid-protocol deleted the fix-decoder-forge-golden-image-whitespace branch August 1, 2026 13:53
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