Skip to content

tests: resolved-JDK java/javac output decoded as UTF-8; guard covers the whole class (Closes #5128) - #5160

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5128-20261014T2224Z
Oct 14, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5128-20261014T2224Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #5128. Siblings of #5109 / #5091 / PR #5127.

Class

Test and tool helpers that run a resolved JDK binary (str(jdk / "java"), jdk / "bin" / "java", _JDK, JAVA_BIN, java_bin, dp.tool(None, "java")) and decode the output with the Windows locale charset.

Fix, as in #5127: javac -encoding UTF-8; java -Dfile.encoding=UTF-8 -Dstdout.encoding=UTF-8; text captures pass encoding="utf-8" (the test_det_programs text=not raw helpers keep raw bytes, with encoding=None if raw else "utf-8").

Checklist (all fixed)

  • test_pointer_lane_4771
  • test_det_nondigit_binary
  • test_det_hfp
  • test_numproc
  • test_key_collation
  • test_det_dynamic_call_4736
  • test_regional_options
  • test_det_funcs
  • test_return_transid_commarea_bytes_4817
  • test_commarea_length_bytes_4817
  • test_link_xctl_chain_4816
  • test_det_le_time
  • test_decimal_comma
  • test_model_link_xctl_4956
  • test_sql_faults
  • test_det_receive_map_justify_5082
  • test_sql_unit_of_work
  • test_link_xctl_commarea_4816
  • test_link_commarea_bytes_4806
  • test_det_translate
  • test_det_ceedays
  • test_det_programs
  • test_cobolrt (java call)
  • tests/tools/gen_ebcdic_dbcs.py
  • tests/tools/equivalence_env.py
  • tests/tools/equivalence_java.py
  • tests/tools/mutation.py
  • tests/tools/thirdparty_port.py (also the dp.tool(jdk, "java") argv at ~393, found by the new guard)
  • tests/tools/referees/cobrix_adapter.py
  • tests/tools/referees/mapa_adapter.py

Same mechanism, not on the checklist, also fixed: test_bidi_layout (-Dfile.encoding), test_dbcs_widths, test_cics_runtimes, test_facade_layout_4449, test_generated_record_layer, test_java_unicode_names, tests/tools/det_survey.py.

Guard

test_java_subprocess_utf8.py now scans every tests/**/*.py for the bare, resolved-path (str(x / "java"), x / "bin" / "java"), variable (java, javac) and dp.tool(...) argv forms, with a synthetic-source test so it cannot go vacuous. The old file-list test stays as a floor.

Verification

  • Touched test files: 1232 passed, 426 skipped (Docker / JDK + Maven cells skip locally and run in CI).
  • pr_gates --fast: 6/6. pr_gates --ratchets: 7 pass, 0 skipped.
  • No golden / ledger change (tests and tools only).

🤖 Generated with Claude Code

…ard covers the whole class (Part of #5128)

Same pattern as #5127 on the str(jdk / "java"), jdk / "bin" / "java", _JDK,
JAVA_BIN, java_bin and dp.tool(None, "java") forms: javac -encoding UTF-8,
java -Dfile.encoding=UTF-8 -Dstdout.encoding=UTF-8, text captures pass
encoding="utf-8". test_java_subprocess_utf8.py now scans every tests/**/*.py
for these forms (and argv lists built into a variable via dp.tool), with a
synthetic-source self-test so it cannot go vacuous.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 22:43
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 22:44
@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 #5160 @ 6bb4c98: 1 failed check(s)

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38649615672/job/116144883811
repro: python -m pytest -q tests/cobol_mainframe/test_mutation_tooling.py::test_runs_after_the_first_maven_run_take_the_direct_path_with_mavens_classpath_and_flags
failing tests: tests/cobol_mainframe/test_mutation_tooling.py::test_runs_after_the_first_maven_run_take_the_direct_path_with_mavens_classpath_and_flags
errors:
fail-on-cache-miss: false
E AssertionError: assert ['-Dfile.enco...0/w/datasets'] == ['-Dequivalen...lence.tz=UTC']
tests/cobol_mainframe/test_mutation_tooling.py:219: AssertionError
FAILED tests/cobol_mainframe/test_mutation_tooling.py::test_runs_after_the_first_maven_run_take_the_direct_path_with_mavens_classpath_and_flags - AssertionError: assert ['-Dfile.enco...0/w/datasets'] == ['-Dequivalen...lence.tz=UTC']
##[error]Process completed with exit code 1.
log tail:
SKIPPED [1] tests/core_engine/test_aperture_workflow_blob.py:166: evidence-refresh.yml not found
SKIPPED [1] tests/core_engine/test_bms_symbolic.py:108: the pinned CardDemo corpus is not cloned
SKIPPED [250] tests/core_engine/test_graph_engine.py:113: networkx is the parity oracle
SKIPPED [25] tests/core_engine/test_graph_engine.py:147: networkx is the parity oracle
SKIPPED [25] tests/core_engine/test_graph_engine.py:163: networkx is the parity oracle
SKIPPED [1] tests/core_engine/test_language_strictness.py:122: keyword-rosetta corpus not checked out as a sibling (set KEYWORD_ROSETTA_PATH)
SKIPPED [1] tests/cultural_gauntlet/test_cultural_gauntlet.py:478: collation_h2: its database is not on this machine
SKIPPED [1] tests/cultural_gauntlet/test_cultural_gauntlet.py:478: collation_postgresql_en_us: its database is not on this machine
SKIPPED [1] tests/estate_crucible/test_estate_crucible_scorer.py:193: no estate-crucible checkout at /home/runner/work/gitgalaxy/estate-crucible (set ESTATE_CRUCIBLE_PATH)
XFAIL tests/core_engine/test_aperture.py::test_aperture_embedded_hex_shield - Engine currently allows hex arrays if has_intent=True. Pending engine patch.
FAILED tests/cobol_mainframe/test_mutation_tooling.py::test_runs_after_the_first_maven_run_take_the_direct_path_with_mavens_classpath_and_flags - AssertionError: assert ['-Dfile.enco...0/w/datasets'] == ['-Dequivalen...lence.tz=UTC']
At index 0 diff: '-Dfile.encoding=UTF-8' != '-Dequivalence.in=/tmp/pytest-of-runner/pytest-0/popen-gw0/test_runs_after_the_first_mave0/in'
Full diff:
[
+ '-Dfile.encoding=UTF-8',
+ '-Dstdout.encoding=UTF-8',
'-Dequivalence.in=/tmp/pytest-of-runner/pytest-0/popen-gw0/test_runs_after_the_first_mave0/in',
'-Dequivalence.out=/tmp/pytest-of-runner/pytest-0/popen-gw0/test_runs_after_the_first_mave0/w/out',
'-Dequivalence.datasets=/tmp/pytest-of-runner/pytest-0/popen-gw0/test_runs_after_the_first_mave0/w/datasets',
- '-Dequivalence.locale=en-US',
- '-Dequivalence.tz=UTC',
]
1 failed, 6314 passed, 388 skipped, 1 xfailed, 20 warnings, 9 subtests passed in 505.41s (0:08:25)
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/92b97259-ca1b-48ec-ac86-127df5fa0cb7' 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
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-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 14, 2026
@squid-protocol squid-protocol removed 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

CI shepherd: the head of this PR (f47d6d9) 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).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 23:22
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 1a130bd into main Oct 14, 2026
44 checks passed
@squid-protocol
squid-protocol deleted the churn/5128-20261014T2224Z branch October 14, 2026 23:48
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.

Siblings of #5109: resolved-JDK java/javac subprocess output decoded with the Windows locale charset

1 participant