[rc/3.23] Java: isolate Maven integration test repositories by jketema · Pull Request #22855 · github/codeql · GitHub
Skip to content

[rc/3.23] Java: isolate Maven integration test repositories - #22855

Merged
jketema merged 1 commit into
rc/3.23from
fix-maven-empty-home-rc-3.23
Oct 20, 2026
Merged

jketema merged 1 commit into
rc/3.23from
fix-maven-empty-home-rc-3.23

Conversation

@jketema

@jketema jketema commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Backport of 7bd102b (already on main) to rc/3.23.

Newer Maven on the macOS runners writes resolver-status.properties into the local repository under the test's fake home (empty-home/.m2/repository/.meta/), which is inside the source root and so ends up in source_archive.actual. This makes buildless-maven, buildless-maven-mirrorof and buildless-maven-existing-settings-xml fail. Setting -Dmaven.repo.local to a temp dir keeps that state out of the source archive.

Backport of 7bd102b to rc/3.23.

Maven 3.10 writes resolver-status.properties into the local repository.
Keep generated repository state outside the test source root so source
archive expectations remain stable across Maven versions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jketema
jketema marked this pull request as ready for review October 20, 2026 14:54
@jketema
jketema requested a review from a team as a code owner October 20, 2026 14:54
Copilot AI max review requested due to automatic review settings October 20, 2026 14:54
@github-actions github-actions Bot added the Java label Oct 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The narrow, test-only changes isolate Maven state without altering existing settings selection, and no blocking issues were identified.

No open issues 🎉

What changed in this PR

Backports Maven integration-test repository isolation to rc/3.23, keeping resolver metadata out of source archives.

Changes:

  • Place Maven local repositories under pytest’s tmp_path.
  • Preserve existing fake-home and Maven settings configurations.
File Description
java/​ql/​integration-tests/​java/​buildless-maven/​test.py Isolates the default Maven test repository.
java/​ql/​integration-tests/​java/​buildless-maven-mirrorof/​test.py Isolates repository state while preserving mirror settings.
java/​ql/​integration-tests/​java/​buildless-maven-existing-settings-xml/​test.py Isolates repository state while preserving existing settings coverage.

Review effort: Max

@jketema
jketema merged commit c291d9d into rc/3.23 Oct 20, 2026
16 checks passed
@jketema
jketema deleted the fix-maven-empty-home-rc-3.23 branch October 20, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants