From 2a4d9d9b0d34c84adeae78fad18a96c286c569e8 Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Fri, 1 Nov 2024 07:19:51 +0000 Subject: [PATCH] 8343379: [BACKOUT] 8343190 GHA: Try building JTReg several times Reviewed-by: erikj, ihse --- .github/actions/build-jtreg/action.yml | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/actions/build-jtreg/action.yml b/.github/actions/build-jtreg/action.yml index 3e5ced8a7f8..3abfa260c17 100644 --- a/.github/actions/build-jtreg/action.yml +++ b/.github/actions/build-jtreg/action.yml @@ -52,24 +52,8 @@ runs: - name: 'Build JTReg' run: | - # Try building JTReg several times, backing off exponentially on failure. - # ~500 seconds in total should be enough to capture most of the transient - # failures. - for I in `seq 0 8`; do - rm -rf build/images/jtreg - bash make/build.sh --jdk "$JAVA_HOME_17_X64" && break - S=$(( 2 ** $I )) - echo "Failure. Waiting $S seconds before retrying" - sleep $S - done - - # Check if build was successful - if [ ! -d build/images/jtreg ]; then - echo "Build failed" - exit 1; - fi - - # Move files to the proper locations + # Build JTReg and move files to the proper locations + bash make/build.sh --jdk "$JAVA_HOME_17_X64" mkdir ../installed mv build/images/jtreg/* ../installed working-directory: jtreg/src