Skip to content

tests: fix two Windows-only failures in Full Suite Gate (#5091) - #5108

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5091-20261014T1322Z
Oct 14, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5091-20261014T1322Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #5091 (Full Suite Gate, run 38514106566: two windows-latest 3.10 shards failed; the 4 cancelled jobs hit the time limit and say nothing).

Root causes

  1. test_a_re_proof_names_the_port_it_proved (PCIMMA): tree_sha256 sorted Path objects, which Windows orders case-insensitively (cobolrt/cics/DetCics.java before cobolrt/Cobol.java), so the hash differed from the Linux-recorded one. Now sorted by case-sensitive path parts (identical to the old POSIX order, so recorded hashes stay valid).
  2. test_cics_task_refuses_..._container_names[A\254B] (3 params): _cics_task ran java with text=True; the not sign in the output failed to decode with the Windows locale charset inside the reader thread, leaving stdout as None. Now javac/java run UTF-8 and the bytes are decoded explicitly.

Class table

Member Status
crucible_port_provenance.tree_sha256 fixed + new test
equivalence_cache.engine_hash (same Path-sort mechanism) fixed (cache key only)
_cics_task java/javac encoding fixed; the 3 failing params are the regression

Verification

Local: 47 selected tests pass; pr_gates.py --fast 6/6, --ratchets 7/7. No golden impact. Windows can't run locally: the Windows 3.10 shards need a re-run of the gate workflow on this branch.

Cross-repo

None.

🤖 Generated with Claude Code

…java output in _cics_task (#5091)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 14, 2026 13:39
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 13:41
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5108 @ 27906f2: 2 failed check(s)

== full-suite-matrix (macos-latest, 3.10, 2, 2, 22) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38573480030/job/115887670336
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/test_source_reads.py::test_no_source_read_loses_a_byte
errors:
fail-on-cache-miss: false
E AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an estate file:
tests/test_source_reads.py:137: AssertionError
FAILED tests/test_source_reads.py::test_no_source_read_loses_a_byte - AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an e
##[error]Process completed with exit code 1.
log tail:
SKIPPED [1] tests/tools/test_box_tools.py:48: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests/tools/test_box_tools.py:63: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests/tools/test_box_tools.py:80: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests/tools/test_box_tools.py:100: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests/tools/test_box_tools.py:109: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests/tools/test_box_tools.py:123: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests/tools/test_box_tools.py:132: the box tools are bash scripts (flock, /proc, kill) for the Linux box
XFAIL tests/extraction/languages/test_dart.py::test_dart_class_start_xfail_invalid[var query = '''\nclass FakeClass {\n''';] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_func_start_xfail_invalid[/* \n void main() { \n /] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_dependency_capture_xfail_invalid[// import 'package:test/test.dart';] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_dependency_capture_xfail_invalid[/
\n import 'package:foo/foo.dart'; \n /] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_jcl.py::test_jcl_func_start_invalid[//SYSUDUMP DD DATA,DLM=$$\n//BAD EXEC PGM=X\n$$] - Known limitation: No block shielding for instream data in JCL
XFAIL tests/extraction/languages/test_jcl.py::test_jcl_class_start_invalid[//SYSIN DD \n//FAKE JOB 1\n/] - Known limitation: No block shielding for instream data in JCL
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid["fn (a: i32, b: i32)"] - Known limitation: No block shielding for args inside strings
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid[// fn (a: i32, b: i32)] - Known limitation: No block shielding for args inside comments
XPASS tests/extraction/languages/test_jcl.py::test_jcl_args_valid["//STEP1 EXEC PGM=PROG,PARM='THIS STRI"...len102-1d86da8b-"'THIS STRING CONTINUES "...len72-7c3fedb5] - Known limitation: Engine cannot parse JCL line con
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid[//DD DATA \n INCLUDE MEMBER=NOPE \n/
] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid['//STEP1 EXEC PGM=PROG1 THIS COMMENT CO'...len69-d3e393cd] - Known limitation: Inline comments aren't stripped before dependency capture
FAILED tests/test_source_reads.py::test_no_source_read_loses_a_byte - AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an e
tests/cics_crucible/test_cics_runtimes.py:115 in _cics_task() [lossy-errors]
assert not [('tests/cics_crucible/test_cics_runtimes.py', '_cics_task', 'lossy-errors', 115)]
1 failed, 11937 passed, 35 skipped, 8 xfailed, 3 xpassed in 1091.07s (0:18:11)
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/opt/homebrew/bin/git version
git version 2.55.0
Copying '/Users/runner/.gitconfig' to '/Users/runner/work/_temp/f54d878b-49f0-4991-948b-d49ce24d2178/.gitconfig'
Temporarily overriding HOME='/Users/runner/work/_temp/f54d878b-49f0-4991-948b-d49ce24d2178' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/opt/homebrew/bin/git config --global --add safe.directory /Users/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/opt/homebrew/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/opt/homebrew/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]/opt/homebrew/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/opt/homebrew/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]/opt/homebrew/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/opt/homebrew/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== full-suite-matrix (windows-latest, 3.10, 2, 3, true, 25) (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/38573480030/job/115887670193
repro: fails on main too: fix main (then merge origin/main here)
failing tests: tests/test_source_reads.py::test_no_source_read_loses_a_byte
errors:
fail-on-cache-miss: false
E AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an estate file:
tests\test_source_reads.py:137: AssertionError
FAILED tests/test_source_reads.py::test_no_source_read_loses_a_byte - AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an e
##[error]Process completed with exit code 1.
log tail:
SKIPPED [1] tests\tools\test_box_tools.py:41: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests\tools\test_box_tools.py:80: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests\tools\test_box_tools.py:100: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests\tools\test_box_tools.py:123: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests\tools\test_box_tools.py:132: the box tools are bash scripts (flock, /proc, kill) for the Linux box
SKIPPED [1] tests\tools\test_content_keyed_baseline.py:218: ruff not on PATH
SKIPPED [1] tests\tools\test_crucible_case.py:87: no cics-crucible checkout (CICS_CRUCIBLE_PATH)
SKIPPED [1] tests\tools\test_crucible_case.py:157: no cics-crucible checkout (CICS_CRUCIBLE_PATH)
SKIPPED [1] tests\tools\test_crucible_case.py:232: no cics-crucible checkout (CICS_CRUCIBLE_PATH)
SKIPPED [1] tests\tools\test_crucible_pins.py:74: could not import 'tomllib': No module named 'tomllib'
SKIPPED [1] tests\tools\test_ctags_reader_qualify.py:75: ctags not on PATH
SKIPPED [1] tests\tools\test_cache_keys.py:62: owner-protected (#4935): hashes pyproject.toml alone
SKIPPED [1] tests\tools\test_call_graph_resolution_gate.py:107: no typescript with the JavaScript compiler API (<= 6.x) on NODE_PATH
XFAIL tests/extraction/languages/test_dart.py::test_dart_class_start_xfail_invalid[var query = '''\nclass FakeClass {\n''';] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_func_start_xfail_invalid[/* \n void main() { \n /] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_dependency_capture_xfail_invalid[/
\n import 'package:foo/foo.dart'; \n /] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_jcl.py::test_jcl_class_start_invalid[//SYSIN DD \n//FAKE JOB 1\n/] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_args_valid["//STEP1 EXEC PGM=PROG,PARM='THIS STRI"...len102-1d86da8b-"'THIS STRING CONTINUES "...len72-7c3fedb5] - Known limitation: Engine cannot parse JCL line con
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid[//DD DATA \n INCLUDE MEMBER=NOPE \n/
] - Known limitation: No block shielding for instream data in JCL
FAILED tests/test_source_reads.py::test_no_source_read_loses_a_byte - AssertionError: #3813: decode through gitgalaxy.core.source_text (read_source / open_source / decode_bytes) instead of a lossy errors= handler or a text-mode read of an e
tests/cics_crucible/test_cics_runtimes.py:115 in _cics_task() [lossy-errors]
assert not [('tests/cics_crucible/test_cics_runtimes.py', '_cics_task', 'lossy-errors', 115)]
1 failed, 6209 passed, 457 skipped, 4 xfailed, 2 xpassed, 4 subtests passed in 1367.50s (0:22:47)
##[error]Process completed with exit code 1.
Post job cleanup.
[command]"C:\Program Files\Git\bin\git.exe" version
git version 2.55.0.windows.5
Temporarily overriding HOME='D:\a_temp\67a1bd9b-de0a-43cf-890d-506e18350f23' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\gitgalaxy\gitgalaxy
Removing SSH command configuration
[command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core.sshCommand
[command]"C:\Program Files\Git\bin\git.exe" 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]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]"C:\Program Files\Git\bin\git.exe" 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/.extrahe
Removing includeIf entries pointing to credentials config files
[command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp ^includeIf.gitdir:
[command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --show-origin --name-only --get-regexp remote.origin.url"
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol squid-protocol added shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md 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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit afc6b06 into main Oct 14, 2026
60 checks passed
@squid-protocol
squid-protocol deleted the churn/5091-20261014T1322Z branch October 14, 2026 16:18
squid-protocol added a commit that referenced this pull request Oct 14, 2026
…5109) (#5127)

Adopt PR #5108 pattern (javac -encoding UTF-8, java -Dfile.encoding=UTF-8 -Dstdout.encoding=UTF-8, capture bytes and decode as UTF-8) in test_cobol_compare.py, test_facade_layout_4449.py, test_time_zones.py, and test_floating_insertion.py to prevent reader thread failures on Windows.

Add tests/cobol_mainframe/test_java_subprocess_utf8.py to verify test helpers specify UTF-8 encoding flags and round-trip UTF-8 characters including the not-sign.
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.

main is red: Full Suite Gate (All OS x Python)

1 participant