Flaky validate-gradle-wrapper
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 85
- Forks
- 26
- Avg merge
- 11h 49m
- Merged PRs (30d)
- 22
Description
What happened?
The validate-gradle-wrapper step in CI is flaky.
Consider:
https://github.com/pulumi/pulumi-java/runs/7235621044?check_suite_focus=true
✗ Found unknown Gradle Wrapper JAR files:
e996d452d2645e70c01c11143ca2d3742734a28da2bf61f25c82bdc288c9e637 sdk/java/gradle/wrapper/gradle-wrapper.jar
575098db54a998ff1c6770b352c3b16766c09848bee7555dab09afc34e8cf590 tests/examples/aws-java-pulumiup-platform/gradle/wrapper/gradle-wrapper.jar
575098db54a998ff1c6770b352c3b16766c09848bee7555dab09afc34e8cf590 tests/integration/stack-reference/gradle/wrapper/gradle-wrapper.jar
Then rerun 2:
https://github.com/pulumi/pulumi-java/runs/7236878903?check_suite_focus=true
✓ Found known Gradle Wrapper JAR files:
e996d452d2645e70c01c11143ca2d3742734a28da2bf61f25c82bdc288c9e637 sdk/java/gradle/wrapper/gradle-wrapper.jar
575098db54a998ff1c6770b352c3b16766c09848bee7555dab09afc34e8cf590 tests/examples/aws-java-pulumiup-platform/gradle/wrapper/gradle-wrapper.jar
575098db54a998ff1c6770b352c3b16766c09848bee7555dab09afc34e8cf590 tests/integration/stack-reference/gradle/wrapper/gradle-wrapper.jar
I think we should possibly get rid of it, together with getting rid of gradle-wrapper.jar in the source, and instead trust the Gradle version installed in the GitHub Actions environment.
Steps to reproduce
See above
Expected Behavior
Consistent execution
Actual Behavior
Flaky execution
Versions used
No response
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the validate-gradle-wrapper step in GitHub Actions and the Gradle wrapper files at sdk/java/gradle/wrapper/gradle-wrapper.jar, tests/examples/aws-java-pulumiup-platform/gradle/wrapper/gradle-wrapper.jar, and tests/integration/stack-reference/gradle/wrapper/gradle-wrapper.jar. Reproduce the check using the referenced CI runs, then verify that the wrapper validation executes consistently and that the intended source JAR cleanup is complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, java
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100