Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Omico opened this issue Mar 17, 2024 · 6 comments
Open

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

Omico opened this issue Mar 17, 2024 · 6 comments

Comments

@Omico
Copy link

Omico commented Mar 17, 2024

image

@JLLeitschuh
Copy link
Contributor

@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?

@Omico
Copy link
Author

Omico commented Mar 20, 2024

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

@bigdaz
Copy link
Member

bigdaz commented Mar 20, 2024

@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.

@JLLeitschuh
Copy link
Contributor

JLLeitschuh commented Mar 20, 2024

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.

@bigdaz
Copy link
Member

bigdaz commented Mar 20, 2024

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.

@Omico
Copy link
Author

Omico commented Mar 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@bigdaz @JLLeitschuh @Omico and others