You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "BiteTheDDDDt (via GitHub)" <gi...@apache.org> on 2026/04/24 09:28:38 UTC

[PR] [fix](ci) Use actions/setup-java to install JDK 17 for BE UT macOS workflow [doris]

BiteTheDDDDt opened a new pull request, #62820:
URL: https://github.com/apache/doris/pull/62820

   ## Problem
   
   The `BE UT (macOS)` workflow on `macos-15` started failing with:
   
   ```
   Check JAVA version
   ERROR: The JAVA version is 25, it must be JDK-17.
   ```
   
   ## Root cause
   
   The `macos-15` GitHub-hosted runner is **arm64 (Apple Silicon)**, confirmed by job logs: `Target system: Darwin; Target arch: arm64`. On arm64 macOS runners, the env var `JAVA_HOME_17_X64` is **not set** (only `JAVA_HOME_17_arm64` would be), so:
   
   ```bash
   export JAVA_HOME="${JAVA_HOME_17_X64%/}"  # JAVA_HOME=""
   ```
   
   ends up empty. Then `env.sh` (`check_jdk_version`) falls back to `command -v java`, which on `macos-15` is now JDK 25 by default, hence the failure.
   
   ## Fix
   
   Use `actions/setup-java@v4` (Temurin 17) to install JDK 17 in a runner-arch-agnostic way; the action sets `JAVA_HOME` automatically. Drop the obsolete `export JAVA_HOME="${JAVA_HOME_17_X64%/}"` line.
   
   This avoids depending on hosted-runner preinstalled JDK env vars (which differ across image versions and architectures) and matches the pattern already used by other workflows in the repo (e.g. `.github/workflows/checkstyle.yaml` and `build-extension.yml`).
   
   ## Release note
   
   None (CI fix only).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](ci) Use actions/setup-java to install JDK 17 for BE UT macOS workflow [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #62820:
URL: https://github.com/apache/doris/pull/62820#issuecomment-4373289377

   PR approved by anyone and no changes requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](ci) Use actions/setup-java to install JDK 17 for BE UT macOS workflow [doris]

Posted by "BiteTheDDDDt (via GitHub)" <gi...@apache.org>.
BiteTheDDDDt commented on PR #62820:
URL: https://github.com/apache/doris/pull/62820#issuecomment-4325022588

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](ci) Use actions/setup-java to install JDK 17 for BE UT macOS workflow [doris]

Posted by "BiteTheDDDDt (via GitHub)" <gi...@apache.org>.
BiteTheDDDDt closed pull request #62820: [fix](ci) Use actions/setup-java to install JDK 17 for BE UT macOS workflow
URL: https://github.com/apache/doris/pull/62820


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](ci) Use actions/setup-java to install JDK 17 for BE UT macOS workflow [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #62820:
URL: https://github.com/apache/doris/pull/62820#issuecomment-4373288988

   PR approved by at least one committer and no changes requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](ci) Use actions/setup-java to install JDK 17 for BE UT macOS workflow [doris]

Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #62820:
URL: https://github.com/apache/doris/pull/62820#issuecomment-4312088811

   
   Thank you for your contribution to Apache Doris.
   Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
   
   Please clearly describe your PR:
   1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
   2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
   3. What features were added. Why was this function added?
   4. Which code was refactored and why was this part of the code refactored?
   5. Which functions were optimized and what is the difference before and after the optimization?
       


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org