Feature/sv edo 965 mvn perf nocache#237
Open
svanga-hmcts wants to merge 7 commits into
Open
Conversation
added 6 commits
July 17, 2026 12:26
The mvn 'verify sonar:sonar' command is defined in the shared cpp-azure-devops-templates/pipelines/context-verify.yaml, which appends its sonarQubeOptions parameter to the command. Pass '-T 1C' through that parameter so the reactor builds/tests modules in parallel on the PR verify build, scoped to this repo only (no change to the shared template).
-T 1C parallelised the whole reactor and broke the non-thread-safe compile/jar steps in hearing-domain-common (maven-jar 'supplemental artifacts' error and a maven-compiler NPE, differing per retry = a concurrency race). Remove the -T 1C pipeline flag and instead set maven-surefire/maven-failsafe forkCount=2 (reuseForks) in the root pom. This keeps the reactor single-threaded (no build races) and parallelises only the test phase (~75% of the build) across the two CPUs on the PR-verify agent. Needs a validation run for test isolation/memory.
Pass enableMavenCache=true to the context-verify template to measure the build-time gain from caching Maven dependencies (hearing only).
…ref at branch Revert the surefire/failsafe forkCount=2 change (proved to over-subscribe the 2-CPU agent) so the build measures the Maven-cache gain in isolation. Temporarily point the cppAzureDevOpsTemplates resource ref at the feature branch so the PR build picks up the template's enableMavenCache change (revert ref to main after the template change is merged).
svanga-hmcts
requested review from
ed-graham,
oktayekincioglu and
willwatters
and removed request for
a team
July 18, 2026 06:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira link
See PROJ-XXXXXX
Change description
Testing done
Security Vulnerability Assessment
CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?
Checklist