Skip to content

tests/tools: shared mvn resolver, Windows-safe argline split, bare-mvn guard (Part of #4939) - #4967

Merged
squid-protocol merged 2 commits into
mainfrom
churn/4939-20261012T0901Z
Oct 12, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/4939-20261012T0901Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4939.

What: tests/tools/maven_exe.py::mvn_executable(env=None) is the one Maven resolver (shutil.which, so mvn.cmd on Windows; bare mvn when not found). Every bare "mvn" argv in tests/tools now goes through it. equivalence_java.split_argline replaces POSIX-mode shlex.split in _run_direct (posix only off Windows). New test_maven_exe_4939.py monkeypatches shutil.which / os.name, so it runs on Linux, and an AST guard fails on a new literal "mvn" argv in tests/tools.

Class: Windows-unportable subprocess invocations in tests/tools

Member Status
bare mvn: det_survey (3 sites), cics_crucible, java_target_matrix, devin_port, thirdparty_port, ibm_wca4z_port, equivalence_java, mutation, scip_callgraph (which() or "mvn") fixed, guarded
shlex.split in _run_direct fixed (split_argline), tested both modes
tests/cobol_mainframe test_mutation_tooling asserts mvn[0] == "mvn"; test_no_jcl_batch_controller bare mvn fixed (outside tests/tools, same mechanism)
npm (npm.cmd) in callgraph_refs.py:141 sibling gap, not in this PR (guard covers mvn only)

Note: the issue's list omitted det_survey's second/third site and scip_callgraph; the new guard found them.

Gates: pr_gates --fast 5/5, --ratchets 7/7 (none skipped). No engine change, no golden impact.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 12, 2026 05:03
…rd against a bare mvn argv (Part of #4939)

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

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 12, 2026 09:16
@squid-protocol
squid-protocol enabled auto-merge (squash) October 12, 2026 09:16
@squid-protocol squid-protocol added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #4967 @ 668e0fa: 4 failed check(s)

== db2 1/4 (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38227806210/job/114740019282
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --db2-only --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
fail-on-cache-miss: false
Traceback (most recent call last):
RuntimeError: docker build -q -t: ERROR: failed to build: failed to solve: failed to load cache key: Get "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz": net/http: TLS handshake time
##[error]the background Db2 start did not finish
##[error]Process completed with exit code 1.
log tail:
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
GITGALAXY_ORACLE_PREBUILT: 1
DB2_JOBS: 4
GITGALAXY_DB2_POOL: 4
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-db2-logs-0.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 591
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is ed8df75517b6a1384a1a074e0629cb41d81482ff6e7d028d58f8da182f13611c
Finalizing artifact upload
Artifact det-sweep-db2-logs-0 successfully finalized. Artifact ID 11737286017
Artifact det-sweep-db2-logs-0 has been successfully uploaded! Final size is 591 bytes. Artifact ID is 11737286017
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38227806210/artifacts/11737286017
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/6e47ecf8-ed37-4436-9d09-4c305a02fc2c' 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

== db2 3/4 (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38227806210/job/114740019198
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --db2-only --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
fail-on-cache-miss: false
Traceback (most recent call last):
RuntimeError: docker build -q -t: ERROR: failed to build: failed to solve: failed to load cache key: Get "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz": net/http: TLS handshake time
##[error]the background Db2 start did not finish
##[error]Process completed with exit code 1.
log tail:
GITGALAXY_ORACLE_PREBUILT: 1
DB2_JOBS: 4
GITGALAXY_DB2_POOL: 4
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-db2-logs-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 591
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 1e52359c98485f9a4995bd001d03813345fde864c0894c054ddf3067e6aa1716
Finalizing artifact upload
Artifact det-sweep-db2-logs-2 successfully finalized. Artifact ID 11737448160
Artifact det-sweep-db2-logs-2 has been successfully uploaded! Final size is 591 bytes. Artifact ID is 11737448160
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38227806210/artifacts/11737448160
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/870c8797-faf7-4de9-a0b8-43b40e0ce62b' 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
Terminate orphan process: pid (2203) (bash)
Terminate orphan process: pid (2204) (docker)

== db2 4/4 (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38227806210/job/114740019267
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --db2-only --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
fail-on-cache-miss: false
Traceback (most recent call last):
RuntimeError: docker build -q -t: ERROR: failed to build: failed to solve: failed to load cache key: Get "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz": net/http: TLS handshake time
##[error]the background Db2 start did not finish
##[error]Process completed with exit code 1.
log tail:
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
GITGALAXY_ORACLE_PREBUILT: 1
DB2_JOBS: 4
GITGALAXY_DB2_POOL: 4
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-db2-logs-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 591
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 443a6ab580aa3658fb4d69619abfc987492edbfdff46aefe8a716452a3fd867d
Finalizing artifact upload
Artifact det-sweep-db2-logs-3 successfully finalized. Artifact ID 11737371569
Artifact det-sweep-db2-logs-3 has been successfully uploaded! Final size is 591 bytes. Artifact ID is 11737371569
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38227806210/artifacts/11737371569
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/2250b64b-737d-4e2e-9c1a-a1aadddb881e' 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

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38227806210/job/114747284130
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases mortgage-csmrt,mortgage-mpmt --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: mortgage-csmrt,mortgage-mpmt
errors:
det mortgage-csmrt NOT PROVEN proven on 5 scenarios, covering 1/1 paragraphs and 1/2 branches
det mortgage-mpmt NOT PROVEN
##[error]Process completed with exit code 1.
log tail:
warning: coverage ledger: cbsa-crdtagy3: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: cbsa-crdtagy4: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: cbsa-crdtagy5: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: cbsa-getcompy: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: cbsa-getscode: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: cbsa-inqcust: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: cbsa-updcust: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: genapp-lgacvs01: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: genapp-lgapvs01: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: genapp-lgastat1: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: genapp-lgdpvs01: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: genapp-lgicvs01: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: genapp-lgipvs01: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: genapp-lgsetup: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: genapp-lgucvs01: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: genapp-lgupvs01: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: genapp-lgwebst5: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: mortgage-mlist: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: mortgage-mlist-generated: stale (harness, oracle changed); refresh when convenient
warning: coverage ledger: mortgage-nbrvl: proven with no coverage line; cannot be checked
warning: coverage ledger: zecs-zecsplt: stale (harness, oracle changed); refresh when convenient
sweep: as expected
no Db2 shard reported a sweep.json
##[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/53dd9421-6302-4487-93c5-6e78f91fc00c' 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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. 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:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 12, 2026
@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 12, 2026
@squid-protocol
squid-protocol merged commit fd4ab00 into main Oct 12, 2026
134 of 144 checks passed
@squid-protocol
squid-protocol deleted the churn/4939-20261012T0901Z branch October 12, 2026 12:04
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