Skip to content

Conversation

@reidbaker
Copy link
Contributor

@reidbaker reidbaker commented Aug 18, 2025

I did not find documentation for which java version was required but we use Java 21 for many tests and it passed locally for me with java 17 and 24
https://github.com/pinterest/ktlint/releases

#173869 (comment)
A rerun fixed this issue which indicates some of our bots happen to have java and some do not.

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly identifies the need to add Java as a dependency for the linux_analyze CI target, which is required by ktlint. However, the implementation introduces a syntax error in .ci.yaml by omitting a comma between elements in a JSON array, which will cause CI failures. I've also noted a minor inconsistency in the dependency version formatting that could be improved for clarity.

dependencies: >-
[
{"dependency": "ktlint", "version": "version_1_5_0"}
{"dependency": "open_jdk", "version": "version:21"}
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The version format version:21 is inconsistent with the format used for the ktlint dependency (version_1_5_0). To improve maintainability, please ensure the version string conforms to the expected format for CIPD packages in this configuration.

@reidbaker
Copy link
Contributor Author

Potentially an tooling issue not a configuration issue #173986

@reidbaker reidbaker closed this Aug 18, 2025
@reidbaker reidbaker deleted the reidbaker-patch-1 branch August 19, 2025 14:18
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