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

ngr: Fix Gradle test runner by wiping existing gradlew Gradle wrapper #38

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

amotl
Copy link
Member

@amotl amotl commented Dec 2, 2023

About

Fixing ngr's Gradle outlet once more aims to accommodate for contemporary versions of Java, where older versions of shipped Gradle wrappers would fail on: Unsupported class file major version 65 and friends.

Coming from GH-37, this patch attempts to resolve the problem by trying another heuristic, which will prefer wiping an existing gradlew wrapper script, if there is a chance that a new one can be generated, i.e. when the gradle program is installed on the system.

Otherwise, ngr will emit a corresponding error message:

ERROR   : No Gradle wrapper found, and no one could be generated. Consider installing `gradle`.

Testdrive

This aims to accommodate for contemporary versions of Java, where older
versions of shipped Gradle wrappers would fail on.
Copy link

codecov bot commented Dec 2, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (6025c32) 88.65% compared to head (c867e7c) 88.66%.

Files Patch % Lines
pueblo/ngr/runner.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #38   +/-   ##
=======================================
  Coverage   88.65%   88.66%           
=======================================
  Files          19       19           
  Lines         626      635    +9     
=======================================
+ Hits          555      563    +8     
- Misses         71       72    +1     
Flag Coverage Δ
main 73.07% <40.00%> (-0.42%) ⬇️
ngr 68.97% <90.00%> (+0.28%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@amotl amotl marked this pull request as ready for review December 2, 2023 22:37
@amotl amotl merged commit eddc9b1 into main Dec 2, 2023
6 checks passed
@amotl amotl deleted the fix-gradle-wrapper branch December 2, 2023 22:37
@amotl amotl changed the title ngr: Fix Gradle test runner by wiping existing Gradle wrappers ngr: Fix Gradle test runner by wiping existing gradlew Gradle wrapper Dec 3, 2023
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

Successfully merging this pull request may close these issues.

1 participant