GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Implement fail-fast behavior for JUnit Platform provider by marcphilipp · Pull Request #3155 · apache/maven-surefire

Conversation

@marcphilipp

@marcphilipp marcphilipp commented Jul 9, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Resolves #2038.


Following this checklist to help us incorporate your
contribution quickly and easily:

  • Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its clean install).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

  • I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004
  • In any other case, please file an Apache Individual Contributor License Agreement.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Bukama, sormuras, and Vampire reacted with heart emoji
All reactions
  • ❤️ 3 reactions
This was referenced Jul 9, 2025
Implement fail-fast behavior for JUnit Platform provider marcphilipp/maven-surefire#1
Closed
Fail-fast mode of Test task should allow testing frameworks to clean up resources gradle/gradle#34184
Open
Introduce support for cancelling a running execution in Platform and engines junit-team/junit-framework#4725
Closed
@cstamas

cstamas commented Jul 9, 2025

Copy link
Copy Markdown
Member

Wow, cool! Thanks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

marcphilipp
marcphilipp commented Jul 9, 2025
View reviewed changes
Comment thread surefire-its/src/test/resources/fail-fast-junit-platform/pom.xml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@marcphilipp
marcphilipp marked this pull request as draft July 9, 2025 08:47
@marcphilipp

marcphilipp commented Jul 9, 2025

Copy link
Copy Markdown
Contributor Author

I've changed this PR to "draft" because it requires at least a milestone release of JUnit 6.0.0 to be merged. I've opened it early so I can address any feedback you might have.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marcphilipp

marcphilipp commented Jul 9, 2025

Copy link
Copy Markdown
Contributor Author

Moreover, this PR supersedes #503

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

marcphilipp
marcphilipp commented Jul 9, 2025
View reviewed changes
Comment thread ...re-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/LauncherAdapter.java
Comment on lines +35 to +36
static final Class<?> LAUNCHER_EXECUTION_REQUEST_CLASS = loadLauncherExecutionRequestClass();
static final Class<?> CANCELLATION_TOKEN_CLASS = loadCancellationTokenClass();
static final Supplier<CancellationTokenAdapter> CANCELLATION_TOKEN_FACTORY = createCancellationTokenFactory();
static final Method EXECUTE_METHOD_WITH_LAUNCHER_EXECUTION_REQUEST_PARAMETER =
findExecuteMethodWithLauncherExecutionRequestParameter();

@marcphilipp marcphilipp Jul 9, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This class heavily relies on reflection to keep compatible with pre-6.x versions of JUnit

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@marcphilipp marcphilipp added this to Sovereign Tech Fund Jul 9, 2025
@github-project-automation github-project-automation Bot moved this to Todo in Sovereign Tech Fund Jul 9, 2025
@sormuras

sormuras commented Jul 14, 2025

Copy link
Copy Markdown
Contributor

With JUnit 6 in play, testing with JDK 8 and 11 are out - as JDK 17 is the new minimum.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marcphilipp

marcphilipp commented Jul 18, 2025

Copy link
Copy Markdown
Contributor Author

With JUnit 6 in play, testing with JDK 8 and 11 are out - as JDK 17 is the new minimum.

Done in 4221aca

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marcphilipp

marcphilipp commented Jul 18, 2025

Copy link
Copy Markdown
Contributor Author

@cstamas Could you please approve workflow execution? I think all tests should be green now. 🤞

cstamas reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marcphilipp marcphilipp moved this from Todo to In Review in Sovereign Tech Fund Jul 18, 2025
@marcphilipp

marcphilipp commented Jul 18, 2025

Copy link
Copy Markdown
Contributor Author

One more time, please! 😬

sormuras reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marcphilipp

marcphilipp commented Jul 18, 2025

Copy link
Copy Markdown
Contributor Author

The one remaining failure looks unrelated. Is that test known to be flaky? 🤔

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olamy

olamy commented Jul 19, 2025

Copy link
Copy Markdown
Member

Great! Thanks for this.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marcphilipp

marcphilipp commented Jul 19, 2025

Copy link
Copy Markdown
Contributor Author

I'll update this PR early next week after which it should be ready to be merged.

Bukama reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@marcphilipp
marcphilipp force-pushed the marc/junit-platform-fail-fast branch 5 times, most recently from 5cb20ea to dd77018 Compare July 22, 2025 09:53
@marcphilipp
Implement fail-fast behavior for JUnit Platform provider
d834468
@marcphilipp
marcphilipp force-pushed the marc/junit-platform-fail-fast branch from dd77018 to d834468 Compare July 22, 2025 09:56
@marcphilipp
marcphilipp marked this pull request as ready for review July 22, 2025 09:57
@marcphilipp

marcphilipp commented Jul 22, 2025

Copy link
Copy Markdown
Contributor Author

I've rebased this PR to include the latest changes from the default branch and updated the integration test to use JUnit 6.0.0-M2. From my perspective, it's ready to be reviewed and then merged now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Bukama
Bukama requested review from olamy and slawekjaranowski July 22, 2025 10:02
@Bukama Bukama assigned marcphilipp Jul 22, 2025
@Bukama Bukama added the enhancement New feature or request label Jul 22, 2025
@marcphilipp marcphilipp mentioned this pull request Jul 22, 2025
[SUREFIRE-1710] skipAfterFailureCount in JUnit5 provider #503
Closed
6 of 8 tasks
@marcphilipp
Fix IllegalAccessException on JDK 17 and later
21fbe0d
@marcphilipp

marcphilipp commented Jul 22, 2025

Copy link
Copy Markdown
Contributor Author

I pushed another commit that should fix the problem on JDK 17 and later

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

olamy
olamy approved these changes Jul 23, 2025
View reviewed changes

@olamy olamy left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM Thanks

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@marcphilipp

marcphilipp commented Aug 11, 2025

Copy link
Copy Markdown
Contributor Author

@olamy Can this PR be merged?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olamy
olamy merged commit 0fbfb27 into apache:master Aug 12, 2025
@github-project-automation github-project-automation Bot moved this from In Review to Done in Sovereign Tech Fund Aug 12, 2025
@github-actions github-actions Bot added this to the 3.5.4 milestone Aug 12, 2025
@olamy

olamy commented Aug 12, 2025

Copy link
Copy Markdown
Member

@olamy Can this PR be merged?

Sorry for delay and thanks a lot for the contribution

marcphilipp reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@olamy olamy olamy approved these changes
@slawekjaranowski slawekjaranowski Awaiting requested review from slawekjaranowski

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@marcphilipp marcphilipp

Labels

enhancement New feature or request

Projects

None yet

Milestone

3.5.4

Development

Successfully merging this pull request may close these issues.

[SUREFIRE-1710] skipAfterFailureCount in JUnit5 provider

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@marcphilipp @cstamas @sormuras @olamy @Bukama
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.