Macos CI fix for jdk dependency issue#14885
Conversation
Codex Code Review - OBSOLETESuperseded by a newer AI review. Expand to see the original review.🟡 Codex Code ReviewAuto-triggered after CI passed — reviewing commit e3eea2b ❌ Codex review failed before producing findings. ℹ️ About this responseGenerated by Codex CLI. Limitations:
Commands:
|
✅ clang-tidy: No findings on changed linesCompleted in 0.0s. |
Claude Code Review - OBSOLETESuperseded by a newer AI review. Expand to see the original review.✅ Claude Code ReviewAuto-triggered after CI passed — reviewing commit e3eea2b SummaryCI-only change to harden macOS JDK 8 setup. Contains two high-severity issues: High-severity findings (2):
Full review (click to expand)Findings🔴 HIGHH1.
|
| Context | Impact | Assessment |
|---|---|---|
build-macos-java |
Uses action + hardcoded JAVA_HOME | JAVA_HOME conflict (M1) |
build-macos-java-static |
Uses action + hardcoded JAVA_HOME | JAVA_HOME conflict (M1) |
build-macos-java-static-universal |
Uses action + hardcoded JAVA_HOME | JAVA_HOME conflict (M1) |
| Other macOS jobs | Do not use JDK action | No impact |
| Linux/Windows jobs | Do not use this action | No impact |
Positive Observations
- Detecting existing JDK 8 before installing is a good optimization.
- Using
/usr/libexec/java_home -v 1.8for dynamic discovery is more robust than hardcoding paths. - Adding
set -euo pipefailis good shell hardening. - Exporting
JAVA_HOMEandPATHfrom the action centralizes the setup logic.
ℹ️ About this response
Generated by Claude Code.
Review methodology: claude_md/code_review.md
Limitations:
- Claude may miss context from files not in the diff
- Large PRs may be truncated
- Always apply human judgment to AI suggestions
Commands:
/claude-review [context]— Request a code review/claude-query <question>— Ask about the PR or codebase
Codex Code Review - OBSOLETESuperseded by a newer AI review. Expand to see the original review.🟡 Codex Code ReviewAuto-triggered after CI passed — reviewing commit 1a0febf ❌ Codex review failed before producing findings. ℹ️ About this responseGenerated by Codex CLI. Limitations:
Commands:
|
Claude Code Review - OBSOLETESuperseded by a newer AI review. Expand to see the original review.✅ Claude Code ReviewAuto-triggered after CI passed — reviewing commit 1a0febf SummaryCI-only change that replaces the Liberica JDK 8 Homebrew cask install with the macOS-bundled JDK 21, using High-severity findings (1):
Full review (click to expand)Findings🔴 HIGHH1.
|
This reverts commit 1a0febf.
|
@xingbowang has imported this pull request. If you are a Meta employee, you can view this in D109696828. |
🟡 Codex Code ReviewAuto-triggered after CI passed — reviewing commit e373ddd ❌ Codex review failed before producing findings. ℹ️ About this responseGenerated by Codex CLI. Limitations:
Commands:
|
✅ Claude Code ReviewAuto-triggered after CI passed — reviewing commit e373ddd SummaryClean CI fix that replaces a broken Liberica JDK 8 Homebrew cask with the runner-provided JDK 21 plus High-severity findings (0): Full review (click to expand)Findings🔴 HIGHNone. 🟡 MEDIUMM1.
|
| Context | Affected? | Notes |
|---|---|---|
build-macos-java |
YES | Updated in diff |
build-macos-java-static |
YES | Updated in diff |
build-macos-java-static-universal |
YES | Updated in diff |
nightly.yml |
NO | No macOS Java jobs |
pr-jobs-candidate.yml |
NO | Uses ARM Linux with openjdk-8, unaffected |
| Linux Java jobs | NO | Use container with pre-installed JDK |
All three macOS Java jobs are consistently updated. No stale references to install-jdk8-on-macos remain after the diff is applied (the old action file is deleted).
Positive Observations
- The approach of using
--release 8with a modern JDK is a well-established pattern for cross-compilation targeting older bytecode versions. - Removing the Homebrew tap dependency eliminates a third-party trust/availability failure point.
- The
set -euo pipefailaddition is a best practice improvement. - All three macOS Java jobs are updated consistently.
ℹ️ About this response
Generated by Claude Code.
Review methodology: claude_md/code_review.md
Limitations:
- Claude may miss context from files not in the diff
- Large PRs may be truncated
- Always apply human judgment to AI suggestions
Commands:
/claude-review [context]— Request a code review/claude-query <question>— Ask about the PR or codebase
|
@xingbowang merged this pull request in fe053a2. |
Summary:
Test Plan: