RFR: 8343379: [BACKOUT] 8343190 GHA: Try building JTReg several times
Aleksey Shipilev
shade at openjdk.org
Thu Oct 31 12:15:16 UTC 2024
[JDK-8343190](https://bugs.openjdk.org/browse/JDK-8343190) was in mainline for a few days. I have now caught the case where JTReg fails to build due to network failure (wget exit code 4):
Run # Try building JTReg several times, backing off exponentially on failure.
[build.sh][INFO] CYGWIN_OR_MSYS=0
[build.sh][INFO] JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64
[build.sh][INFO] Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.zip to /home/runner/work/jdk/jdk/jtreg/src/make/../build/deps/apache-ant-1.10.8-bin.zip
Error: sh][ERROR] wget exited with exit code 4
Failure. Waiting 1 seconds before retrying
[build.sh][INFO] CYGWIN_OR_MSYS=0
[build.sh][INFO] JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64
[build.sh][INFO] Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.zip to /home/runner/work/jdk/jdk/jtreg/src/make/../build/deps/apache-ant-1.10.8-bin.zip
Error: sh][ERROR] wget exited with exit code 4
Failure. Waiting 2 seconds before retrying
[build.sh][INFO] CYGWIN_OR_MSYS=0
[build.sh][INFO] JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64
[build.sh][INFO] Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.zip to /home/runner/work/jdk/jdk/jtreg/src/make/../build/deps/apache-ant-1.10.8-bin.zip
Error: sh][ERROR] wget exited with exit code 4
Failure. Waiting 4 seconds before retrying
[build.sh][INFO] CYGWIN_OR_MSYS=0
[build.sh][INFO] JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64
[build.sh][INFO] Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.zip to /home/runner/work/jdk/jdk/jtreg/src/make/../build/deps/apache-ant-1.10.8-bin.zip
Error: sh][ERROR] wget exited with exit code 4
Failure. Waiting 8 seconds before retrying
[build.sh][INFO] CYGWIN_OR_MSYS=0
[build.sh][INFO] JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64
[build.sh][INFO] Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.zip to /home/runner/work/jdk/jdk/jtreg/src/make/../build/deps/apache-ant-1.10.8-bin.zip
Error: sh][ERROR] wget exited with exit code 4
Failure. Waiting 16 seconds before retrying
[build.sh][INFO] CYGWIN_OR_MSYS=0
[build.sh][INFO] JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64
[build.sh][INFO] Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.zip to /home/runner/work/jdk/jdk/jtreg/src/make/../build/deps/apache-ant-1.10.8-bin.zip
Error: sh][ERROR] wget exited with exit code 4
Failure. Waiting 32 seconds before retrying
[build.sh][INFO] CYGWIN_OR_MSYS=0
[build.sh][INFO] JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64
[build.sh][INFO] Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.zip to /home/runner/work/jdk/jdk/jtreg/src/make/../build/deps/apache-ant-1.10.8-bin.zip
Error: sh][ERROR] wget exited with exit code 4
Failure. Waiting 64 seconds before retrying
[build.sh][INFO] CYGWIN_OR_MSYS=0
[build.sh][INFO] JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64
[build.sh][INFO] Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.zip to /home/runner/work/jdk/jdk/jtreg/src/make/../build/deps/apache-ant-1.10.8-bin.zip
Error: sh][ERROR] wget exited with exit code 4
Failure. Waiting 128 seconds before retrying
[build.sh][INFO] CYGWIN_OR_MSYS=0
[build.sh][INFO] JAVA_HOME: /usr/lib/jvm/temurin-17-jdk-amd64
[build.sh][INFO] Downloading https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.zip to /home/runner/work/jdk/jdk/jtreg/src/make/../build/deps/apache-ant-1.10.8-bin.zip
Error: sh][ERROR] wget exited with exit code 4
Failure. Waiting 256 seconds before retrying
Build failed
Error: Process completed with exit code 1.
It does not look that retries added by [JDK-8343190](https://bugs.openjdk.org/browse/JDK-8343190) work: we retried for 25 minutes and then failed anyway.
So I would suspect that is a worker configuration issue rather than transient network issue. It does not make sense to wait for 25 minutes without a high chance of success. This means we are better off without [JDK-8343190](https://bugs.openjdk.org/browse/JDK-8343190), and can back it out. Users should then see their GHA jobs fail almost immediately and can restart right away.
-------------
Commit messages:
- Revert "8343190: GHA: Try building JTReg several times"
Changes: https://git.openjdk.org/jdk/pull/21803/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21803&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8343379
Stats: 18 lines in 1 file changed: 0 ins; 16 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/21803.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21803/head:pull/21803
PR: https://git.openjdk.org/jdk/pull/21803
More information about the build-dev
mailing list