Skip to content

Java: Normalize java_version in integration test - #22308

Open
navntoft wants to merge 2 commits into
mainfrom
navntoft/fix-gradle-buildless-test
Open

Java: Normalize java_version in integration test#22308
navntoft wants to merge 2 commits into
mainfrom
navntoft/fix-gradle-buildless-test

Conversation

@navntoft

@navntoft navntoft commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

The gradle-sample-without-wrapper-or-gradle-buildless integration test hardcodes java_version: "11.0.31" in diagnostics.expected. This breaks when the CI runner updates JDK (now 11.0.32).

The field was introduced in fefe01e (June 2026) which batch-added the new java/extractor/summary diagnostic to ~22 tests.

Fix: redact java_version the same way java_vendor already is.

Update: normalizing java_version instead, see review.

@github-actions github-actions Bot added the Java label Aug 10, 2026
@navntoft
navntoft marked this pull request as ready for review August 10, 2026 13:22
@navntoft
navntoft requested a review from a team as a code owner August 10, 2026 13:22
Copilot AI balanced review requested due to automatic review settings August 10, 2026 13:22
@navntoft
navntoft requested a review from jketema August 10, 2026 13:23

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.

Pull request overview

Redacts the environment-dependent JDK patch version to stabilize the Java Gradle buildless integration test.

Changes:

  • Redacts attributes.java_version.
  • Updates the expected diagnostics output.
Show a summary per file
File Description
test.py Adds Java version redaction.
diagnostics.expected Records the redacted value.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@jketema jketema 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.

It was a deliberate choice here to keep the version number, as it provides useful information. If the problem is just the minor version number and/or the patch number, then the approach taken here would be much preferred.

jketema
jketema previously approved these changes Aug 10, 2026

@jketema jketema 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.

Thanks. LGTM (assuming CI passed).

@navntoft
navntoft force-pushed the navntoft/fix-gradle-buildless-test branch from 5ecc3ab to 82dfa2d Compare August 10, 2026 14:56
@navntoft navntoft changed the title Java: Redact java_version in gradle-buildless integration test Java: Normalize java_version in integration test Aug 10, 2026
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