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

test: Ensure to use a compatible Java version for Gradle projects #9262

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

sschuberth
Copy link
Member

This is a fixup for e34734a to also handle "legacy" Gradle tests. It is unclear why this was not required earlier by CI: Probably due to some caching, which got invalidated with CI's upgrade to Ubuntu 24.04.

This is a fixup for e34734a to also handle "legacy" Gradle tests. It is
unclear why this was not required earlier by CI: Probably due to some
caching, which got invalidated with CI's upgrade to Ubuntu 24.04.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.67%. Comparing base (546550e) to head (b68c2b4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #9262   +/-   ##
=========================================
  Coverage     67.67%   67.67%           
  Complexity     1187     1187           
=========================================
  Files           239      239           
  Lines          7796     7796           
  Branches        900      900           
=========================================
  Hits           5276     5276           
  Misses         2153     2153           
  Partials        367      367           
Flag Coverage Δ
funTest-docker 60.32% <ø> (ø)
funTest-non-docker 34.71% <ø> (ø)
test 37.05% <ø> (ø)

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.

@@ -33,7 +33,8 @@ class GradleAndroidFunTest : StringSpec({
val definitionFile = getAssetFile("projects/synthetic/gradle-android/build.gradle")
val expectedResultFile = getAssetFile("projects/synthetic/gradle-android-expected-output-root.yml")

val result = create("Gradle").resolveSingleProject(definitionFile, resolveScopes = true)
val result = create("Gradle", "javaVersion" to "17")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we factor out createGradle() so these can be kept one-liners ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a slight preference for seeing the configuration explicitly in each test, as Java requirements might change on a per-test basis. Also, I'd like to keep this aligned with the respective GI tests as much as possible for now.

@sschuberth sschuberth requested review from fviernau and a team October 9, 2024 09:04
@sschuberth sschuberth merged commit 118fab7 into main Oct 9, 2024
23 checks passed
@sschuberth sschuberth deleted the legacy-gradle-java-version branch October 9, 2024 09:31
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.

2 participants