RFR: 8361288: Fix build of JTReg: wget exited with exit code 4
Magnus Ihse Bursie
ihse at openjdk.org
Thu Jul 3 10:21:40 UTC 2025
On Wed, 2 Jul 2025 16:52:39 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:
> https://github.com/jankratochvil/jdk21u-dev/actions/runs/16026488095/job/45215623689
> [build.sh][INFO] Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.zip to /home/runner/work/jdk21u-dev/jdk21u-dev/jtreg/src/make/../build/deps/apache-ant-1.10.8-bin.zip
> Error: sh][ERROR] wget exited with exit code 4
> Error: Process completed with exit code 1.
>
> It is enough to make an empty commit "retry CI" and push it to re-run the Github CI.
> It happened for me twice:
> https://github.com/openjdk/jdk21u-dev/pull/1663#event-18416642257
> -> (I did not save the log, unaware how to access it now)
> https://github.com/openjdk/jdk21u-dev/pull/1664#commits-pushed-c00e2ab
> -> https://github.com/jankratochvil/jdk21u-dev/actions/runs/16026488095/job/45215623689
It's really a bummer that we need to build jtreg each time we run a GHA test. :-(
.github/actions/build-jtreg/action.yml line 59:
> 57: while ! bash make/build.sh --jdk "$JAVA_HOME_17_X64"; do
> 58: retry=$[$retry+1]
> 59: if [ $retry -gt 20 ];then
20 retries seems excessive. There is likely a persistent problem if it retries that many times.
Suggestion:
if [ $retry -gt 3 ];then
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26100#issuecomment-3031719129
PR Review Comment: https://git.openjdk.org/jdk/pull/26100#discussion_r2182416593
More information about the build-dev
mailing list