Skip to content

Name undeclared raw EBCDIC instead of decoding it silently as cp1252 (Part of #8412) - #8559

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
engine/8412-undeclared-ebcdic
Nov 17, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
engine/8412-undeclared-ebcdic

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8412.

Without --source-encoding, raw EBCDIC bytes fell through the decode ladder to cp1252 / Latin-1 and came out as garbage with no finding. source_text.looks_like_ebcdic (a byte-distribution sniff: EBCDIC letter/digit/blank bytes dominate, a blank every few bytes, next to no printable ASCII) now sets SourceText.ebcdic_undeclared on a guessed decode when no code page was declared. galaxyscope carries it as ebcdic_undeclared (only when true) and the LLM report's 4.1 SOURCE ENCODINGS prints an UNDECLARED EBCDIC line naming the files and the --source-encoding to declare. It is a hint, never a decode: the engine does not pick a code page. read_source's CRLF fold now keeps the flag (and cjk_candidates, which it used to drop).

Checklist: done [c:99fb366a]

Class / Sibling gaps

Class: source bytes decoded through the guess ladder without the reader being told. Members: raw EBCDIC with no declaration (this PR, FB80 and NEL layouts, cp037 / cp500 / cp1047 / cp273, COBOL and JCL text; negatives: ASCII, UTF-8, cp1252, Latin-1 accents, Shift-JIS, @ runs, all-bytes binary, short input); CJK guess (handled, #3878). Sibling gaps: RECFM=V RDW-prefixed exports (not here: a different mechanism, framing not code page; own checklist line, c:8e893dfa); EBCDIC in a mixed file (one declared glob, others not) is flagged per file, as designed. An EBCDIC file under 16 bytes or heavy in punctuation/lowercase-only text is not flagged (sniff thresholds 60% EBCDIC text bytes, 4% blanks, at most 40% printable ASCII).

Remaining slices

None for this line. Other #8412 lines are untouched.

Gates

New test file plus test_source_text, test_cjk_encoding_hint, test_source_encoding_record, test_source_reads: 89 passed. audit_check.py: all clear. crucible_check.py (both legs): PASS, no golden change. pr_gates --ratchets: 5 pass; ports, fact-crosscheck, completeness and ground-truth FAIL here because the worktree has no fetched mainframe corpora (example-health-apis is not fetched at its pinned ref); not re-run against main, left to CI.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 17, 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 17, 2026 08:56
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 08:56
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 17, 2026 09:11
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8559 @ 35daa12: 2 failed check(s)

== crucible (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44051040452/job/133934207498
repro: tests/tools/box/heavy-run.sh python -m pytest -q tests/cics_crucible && tests/tools/box/heavy-run.sh python tests/tools/cics_crucible.py --ci --out /tmp/gitgalaxy-scratch/ci-digest/cics
errors:
CICS crucible: 539 pass, 718 fail, 51 unsupported (1308 cells, 4 shards)
NEW FAIL: ca-address-twa-tctua//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-container-byteoffset/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/direct-entry/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/direct-entry/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/length-range/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/length-range/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/long-overread/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/long-overread/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/short-upgrade/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/short-upgrade/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-assign-startcode/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-client//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-client/notfound/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-client/notfound/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-client/ok/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-client/ok/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-open-port/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-send-doctoken//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-write-header/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: hc-assign-region//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: hc-dcounters/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: hc-document//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: hc-eoc-error/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
... 58 more
log tail:
Beginning upload of artifact content to blob storage
Uploaded bytes 46683
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is c1858d05ec3dc09e0da342087a9321bd7eec5d7b4e724079eeef43eea39cfa0e
Finalizing artifact upload
Artifact cics-crucible-results successfully finalized. Artifact ID 14315000390
Artifact cics-crucible-results has been successfully uploaded! Final size is 46683 bytes. Artifact ID is 14315000390
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/44051040452/artifacts/14315000390
##[group]Run echo "measure: failure, runner-tests: success"
echo "measure: failure, runner-tests: success"
[ "failure" = "success" ] && [ "success" = "success" ]
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
PYTHONUTF8: 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
##[endgroup]
measure: failure, runner-tests: success
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/c90b3789-ef44-44d7-a95b-48effc5efc46' 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/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

== measure (shard 3/4) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44051040452/job/133929090717
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
cobol-stub:pass 3, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:pass 2, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 2, java-ported:fail 2, java:fail 2
cobol-stub:pass 4, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 4, java-ported:fail 4, java:fail 4
cobol-stub:unsupported 1, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
cobol-stub:pass 1, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
cobol-stub:fail 1, cobol-stub:pass 2, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
CICS crucible: 80 pass, 207 fail, 3 unsupported (290 cells)
NEW FAIL: ca-address-twa-tctua//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-container-byteoffset/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions//forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/direct-entry/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/direct-entry/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/length-range/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/length-range/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/long-overread/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/long-overread/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/short-upgrade/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: ca-xctl-versions/short-upgrade/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-assign-startcode/
/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-client/*/forge-compile: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-client/notfound/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-client/notfound/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-client/ok/java-facade: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
NEW FAIL: gt-web-client/ok/java-ported: the ported project: mvn compile: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
... 65 more
log tail:
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
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
MAVEN_ARGS: -ntp
GITGALAXY_ORACLE_PREBUILT: 1
##[endgroup]
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: cics-crucible-shard-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 14696
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 6e3a9ea771d70035d6d933d9e571f4cb372f32c28240b4ef068bab8af411b048
Finalizing artifact upload
Artifact cics-crucible-shard-3 successfully finalized. Artifact ID 14314945358
Artifact cics-crucible-shard-3 has been successfully uploaded! Final size is 14696 bytes. Artifact ID is 14314945358
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/44051040452/artifacts/14314945358
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/c33d08cb-bb3b-40d6-bcaa-b5247b7ac350' 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/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 17, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (3fe64b4) 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 17, 2026 09:40
@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 17, 2026
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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 17, 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 17, 2026 09:42
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 09:42
@squid-shepherd
squid-shepherd Bot merged commit fafce35 into main Nov 17, 2026
104 checks passed
@squid-shepherd
squid-shepherd Bot deleted the engine/8412-undeclared-ebcdic branch November 17, 2026 10:41
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