Remove vestigial `download_jdk` gclient var by dbebawy · Pull Request #188571 · flutter/flutter · GitHub
Skip to content

Remove vestigial download_jdk gclient var#188571

Open
dbebawy wants to merge 1 commit into
flutter:masterfrom
dbebawy:cleanup-download-jdk-vestigial
Open

Remove vestigial download_jdk gclient var#188571
dbebawy wants to merge 1 commit into
flutter:masterfrom
dbebawy:cleanup-download-jdk-vestigial

Conversation

@dbebawy

@dbebawy dbebawy commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes the vestigial download_jdk gclient var. Closes #187627.

download_jdk was declared in DEPS:97 with default True but no DEPS entry ever referenced it as a condition. The only OpenJDK CIPD entry (engine/src/flutter/third_party/java/openjdk) gates only on host_os/host_cpu:

'condition': 'not (host_os == "linux" and host_cpu == "arm64")',

So setting "download_jdk": false in builder configs was a no-op — OpenJDK was downloaded anyway on every host except linux-arm64 (which is correctly excluded by the host_cpu condition, not by download_jdk).

Changes

  • Remove the unused download_jdk declaration from DEPS (lines 91-92, including the now-misleading comment "Checkout Java dependencies only on platforms that do not have java installed on path.")
  • Remove "download_jdk": false from 22 builder JSONs in engine/src/flutter/ci/builders/. 108 occurrences total. None of them did anything; their removal has no behavioral effect.

The OpenJDK download condition itself is unchanged. Builds that don't actually need the JDK (e.g. linux_arm64_android_aot_engine, mac_clang_tidy) still get it on linux-x64/mac hosts — if that becomes worth optimizing, the OpenJDK condition itself is the right place to add a gate, not a separate variable that doesn't propagate.

Context

Found while running validation builds for #187591. Filed #187627 noting download_jdk: false was being ignored. @reidbaker on the issue:

"I don't actually recall working on this. If it is not used feel free to delete it."

Doing that here.

Pre-launch Checklist

Test plan

  • No behavior change. The OpenJDK package is gated only on host_os/host_cpu (unchanged); removing the unreferenced download_jdk var and the no-op "download_jdk": false lines from builder configs cannot change what gets synced.
  • python3 -c "import json; ..." confirms all 22 modified JSONs still parse.
  • grep -rn download_jdk DEPS engine/src/flutter/ci/ after the diff returns empty.

`download_jdk` was declared in DEPS:97 with default True but no DEPS
entry ever referenced it as a condition. The only OpenJDK CIPD entry
(`engine/src/flutter/third_party/java/openjdk`) gates only on
host_os/host_cpu:

  'condition': 'not (host_os == "linux" and host_cpu == "arm64")',

So setting `download_jdk: false` in builder configs was a no-op --
OpenJDK was downloaded anyway on every host except linux-arm64 (which
is correctly excluded by the host_cpu condition, not by download_jdk).

This change:
- Removes the unused `download_jdk` declaration from DEPS.
- Removes `"download_jdk": false` from 22 builder JSONs across
  engine/src/flutter/ci/builders/. 108 occurrences in total. None of
  them did anything; their removal has no behavioral effect.

The OpenJDK download condition is unchanged. Builds that don't actually
need the JDK (e.g. linux_arm64_android_aot_engine) still get it on
linux-x64 hosts -- if that becomes worth optimizing, the OpenJDK
condition itself is the right place to add a gate, not a separate
variable that doesn't propagate.

Closes flutter#187627

@reidbaker noted on the issue: "If it is not used feel free to delete
it" -- doing that.
@github-actions github-actions Bot added the engine flutter/engine related. See also e: labels. label Jun 25, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes the "download_jdk": false variable from the gclient_variables configuration across multiple CI builder JSON files for Linux, macOS, and Windows. There are no review comments, and I have no feedback to provide.

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

Labels

engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

download_jdk gclient var is declared but never consumed in DEPS (no-op)

1 participant