wrapper-validation-action icon indicating copy to clipboard operation
wrapper-validation-action copied to clipboard

Request timeout: /distributions/gradle-8.7-rc-3-wrapper.jar.sha256

Open Omico opened this issue 1 year ago • 6 comments

image

Omico avatar Mar 17 '24 21:03 Omico

@bigdaz is there a potential that this occurred during an RC release? Perhaps there's some race condition between the JSON and the sha256 checksum existing in the AWS bucket?

JLLeitschuh avatar Mar 19 '24 19:03 JLLeitschuh

I guess if we merge #186, the problem can be solved.

Omico avatar Mar 20 '24 03:03 Omico

@Omico Do you see this error consistently, or did it resolve itself? You're right that a new release with the latest checksums would have prevented this failure, but the fetch-on-demand functionality should continue to work for newly released Gradle versions.

bigdaz avatar Mar 20 '24 13:03 bigdaz

You're right that a new release with the latest checksums would have prevented this failure, but the fetch-on-demand functionality should continue to work for newly released Gradle versions.

Sorry, to clarify, do you know if the Gradle release process uploads the https://services.gradle.org/distributions/gradle-[VERSION]-wrapper.jar.sha256 first, or updates the https://services.gradle.org/versions/all first.

Depending upon ordering in the https://github.com/gradle/gradle release process, there could be a race condition where the wrapper-validation-action has pulled the https://services.gradle.org/versions/all, but the https://services.gradle.org/distributions/gradle-[VERSION]-wrapper.jar.sha256 doesn't exist yet.

JLLeitschuh avatar Mar 20 '24 14:03 JLLeitschuh

Sorry, to clarify, do you know if the Gradle release process uploads the https://services.gradle.org/distributions/gradle-[VERSION]-wrapper.jar.sha256 first, or updates the https://services.gradle.org/versions/all first.

I don't have any knowledge of this process.

bigdaz avatar Mar 20 '24 15:03 bigdaz

but the https://services.gradle.org/distributions/gradle-[VERSION]-wrapper.jar.sha256 doesn't exist yet.

It exists. I can download it manually when I face this issue, but I tried multiple times, and the CI always failed. https://services.gradle.org/distributions/gradle-8.7-rc-3-wrapper.jar.sha256

I circumvented this problem by hardcoding the hash.

      - uses: gradle/wrapper-validation-action@v2
        with:
          allow-checksums: 'cb0da6751c2b753a16ac168bb354870ebb1e162e9083f116729cec9c781156b8'

Now, the issue cannot be reproduced and is becoming a mystery. 🫠

I removed the allow-checksums and tried 8.7-rc-4, which works. Then I tried 8.7-rc-3 again, which also works.

Omico avatar Mar 20 '24 20:03 Omico