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

Disable failing Gradle plugin tests on JDK 17 #27328

Conversation

dreis2211
Copy link
Contributor

Hi,

this is the last open item before we can create a JDK 17 pipeline - see #26767.
I wanted to make an effort to not just exclude the whole module (or all of its tests) via CI, but test as much as we can. The added helper classes that we need to workaround the shortcomings of Gradle, will be likely removed again as soon as Gradle is ready for JDK 17. Since they're not published and only test relevant, I figured this to be acceptable. The fact that it's more fine-grained and explicit was appealing to me, but I could also exclude all tests with some hackery in CI (we did this in the past). Neither solution is beautiful if you ask me, but I went for the one that keeps more test coverage.

Let me know what you think.
Cheers,
Christoph

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 14, 2021
@@ -57,6 +57,9 @@

@Override
public Stream<TestTemplateInvocationContext> provideTestTemplateInvocationContexts(ExtensionContext context) {
if (JavaVersion.current() == JavaVersion.VERSION_17) {
return Stream.of(new DisabledTemplateInvocationContext());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, we can't just return an empty stream here. JUnit is expecting at least one invocation context

@wilkinsona wilkinsona added this to the 2.5.x milestone Jul 16, 2021
@wilkinsona wilkinsona added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 16, 2021
@wilkinsona wilkinsona self-assigned this Jul 16, 2021
wilkinsona pushed a commit that referenced this pull request Jul 16, 2021
@wilkinsona wilkinsona modified the milestones: 2.5.x, 2.5.3 Jul 16, 2021
@wilkinsona
Copy link
Member

LGTM! Thanks very much once again, @dreis2211.

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

Successfully merging this pull request may close these issues.

None yet

3 participants