Skip to content

tests/tools: Gradle and file-redirecting mvn wrappers start UTF-8 JVMs (Part of #5174) - #5382

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5174-20261017T2220Z
Oct 17, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5174-20261017T2220Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5174 (siblings of #5161: a JVM started without a UTF-8 charset).

  • maven_exe.py: gradle_utf8_env (GRADLE_OPTS, the client JVM) and GRADLE_DAEMON_ARG (org.gradle.jvmargs, the daemon JVM; the 512m heap is restated because the property replaces the default).
  • java_target_matrix.build: the Gradle branch uses both (it previously got only MAVEN_OPTS).
  • det_survey: estate (file-redirected mvn) and classpath (text=True, now encoding="utf-8") run under maven_utf8_env.
  • ibm_wca4z_port: junit runs under maven_utf8_env; the JUnit pom's surefire argLine carries the UTF-8 flags.
  • Guard test_java_subprocess_utf8.py: now also covers Gradle launchers, argv[0]-slot launchers (the form that hid det_survey's text=True call), and requires env= from maven_utf8_env/gradle_utf8_env on every mvn/gradle subprocess; source pins for the callers it cannot see (run_decoded, command variables).

Tests/tools only: no golden bless. Local: guard + test_maven_exe_4939 64 passed; audit_check and pr_gates --fast clear. Not run: a real Gradle build (no gradle binary on this box).

Sibling gaps

  • Other launcher_executable callers: only npm, not a JVM. Nothing to fix.
  • java_target_matrix.py:189 runs text=True on a self-spawned Python (not a JVM). Left alone.
  • None of these tools is burned-estate proof work, so no burned program needs them.

Cross-repo

None.

Lessons for agents

  • test_java_matrix_gate.py fails to collect when run alone (No module named 'maven_exe'); it needs tests/tools on PYTHONPATH (pre-existing, order-dependent).

🤖 Generated with Claude Code

…s; guard extended (Part of #5174)

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 17, 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 17, 2026 22:25
@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 22:30
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5382 @ b4b065a: 1 failed check(s)

== ground-truth part 1/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39075049386/job/117521319554
repro: python -m pytest -q tests/cobol_mainframe/
errors:
fail-on-cache-miss: false
FAIL tests/cobol_mainframe/test_completeness.py::test_pinned_corpus_completeness[dbb-mortgage-application]: 16.2s is over 15s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
##[error]Process completed with exit code 1.
log tail:
archive: true
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 83189
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 9a86ad5bad1f237c69ad1f0f5c1b789ce8a98fedc67665dbe0ba59053fcebc31
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 12116678315
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 83189 bytes. Artifact ID is 12116678315
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39075049386/artifacts/12116678315
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/fd85491b-6cbe-4401-92b3-f7e9318f2de2' 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-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 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol added 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:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 9743bfb into main Oct 17, 2026
37 checks passed
@squid-protocol
squid-protocol deleted the churn/5174-20261017T2220Z branch October 17, 2026 23:28
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