Skip to content

Feature/sv edo 965 mvn perf nocache#237

Open
svanga-hmcts wants to merge 7 commits into
mainfrom
feature/sv-edo-965-mvn-perf-nocache
Open

Feature/sv edo 965 mvn perf nocache#237
svanga-hmcts wants to merge 7 commits into
mainfrom
feature/sv-edo-965-mvn-perf-nocache

Conversation

@svanga-hmcts

Copy link
Copy Markdown

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?

  • Yes
  • No

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change

“svanga-hmcts” 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
svanga-hmcts requested a review from a team as a code owner July 18, 2026 06:31
@svanga-hmcts
svanga-hmcts requested review from ed-graham, oktayekincioglu and willwatters and removed request for a team July 18, 2026 06:31
@svanga-hmcts svanga-hmcts reopened this Jul 18, 2026
@svanga-hmcts svanga-hmcts reopened this Jul 20, 2026
@cpp-github-management

Copy link
Copy Markdown

Passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant