Skip to content

equivalence: runs after the first Maven run take the direct JVM path (Fixes #4910) - #4914

Merged
squid-protocol merged 3 commits into
mainfrom
perf/4910-direct-runs
Oct 11, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
perf/4910-direct-runs

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4910

After a project's first successful Maven run, run_maven keeps surefire's own test classpath (surefire.test.class.path from its report) and the precompiled marker, so every later run of that project (fault, extra environment, entry, CICS facade side) takes the existing _run_direct: plain java in a fresh JVM, same classpath, same -D properties/flags (the same argline), same working dir, JAVA_DIRECT_TIMEOUT from #4908. Fresh JVM per run is kept. If anything is missing it falls back to Maven.

Distribution (static, 104 cases): 8 batch cases have extra runs (121 in all): posttran 28, trnrpt 24, dailyval 20, intcalc 19, readacct 12, readcard/readcust/readxref 6. Every CICS case with a port (90) gains the one facade run. Db2 batch cases also gain a run per enumerated SQL fault (dynamic). The other batch / call cases have one run.

Measured (det_port run, quiet box, before = main):

case before after
carddemo-readacct 78.2 s 54.6 s
carddemo-posttran 164.8 s 149.4 s
carddemo-acctview (CICS, facade) 26.7 s 19.1 s
carddemo-readcard 44.8 s 38.8 s
carddemo-cobtupdt (Db2) 54.1 s 57.8 s (no extra runs; noise)
cbsa-acctctrl (CICS Db2) 32.7 s 30.3 s

The saving is about 1.9 s per run, not 3.8 s: the Spring context start inside the JVM remains (the test body is 0.4 s); only Maven's own start-up goes. Cutting that further would need different JVM flags, which would risk the verdicts, so it is not done here.

Identical verdicts: for all six cases the proof report.json (every run's outputs, faults fired, coverage) is leaf-for-leaf identical before and after, paths and timings aside; all PROVED.

Tests: test_runs_after_the_first_maven_run_take_the_direct_path_with_mavens_classpath_and_flags (first run = mvn, second = direct; same flags, the surefire classpath plus launcher and runner, same cwd, timeout).

Gates: pr_gates --fast 5/5; --ratchets 7 pass, 0 skipped; det_port.py check 104/104 ports unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX

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

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 1489516 into main Oct 11, 2026
45 checks passed
@squid-protocol
squid-protocol deleted the perf/4910-direct-runs branch October 11, 2026 18:09
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.

pipeline: equivalence fault runs re-start Maven + Spring each time (~3.8 s each, >80% of a batch case) — use the existing _run_direct path

1 participant