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

[devscout] fix execution of unstable group #2417

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

jeantil
Copy link
Contributor

@jeantil jeantil commented Sep 19, 2024

classes annotated unstable at classlevel are properly execucted with -Punstable

this may not be true for 2 modules that override the surefire plugin definition but i'm not sure what they actually attempt to do :

  • distributed-jmap-rfc-8621-integration-tests
  • rabbitmq-webadmin-integration-test

at the very least the situation will be better than it was before this change

classes annotated unstable at classlevel are properly execucted with  -Punstable
@@ -3326,7 +3326,7 @@
<reuseForks>true</reuseForks>
<!-- Fail tests longer than 30 minutes, prevent form random locking tests -->
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
<excludedGroups>unstable</excludedGroups>
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't that declared in a bunch of other pom across the project? should we remove them too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well I'm not entirely sure.

without this change the command

mvn clean test -Dtest=org.apache.james.linshare.LinshareBlobExportMechanismTest -Dsurefire.failIfNoSpecifiedTests=false -am -pl :apache-james-linshare -Dcheckstyle.skip -Punstable-tests

doesn´t execute anything, with the change it does run the corresponding tests.

but there are tests that are tagged BasicFeature, unless their module has a custom surefire config to include these tests, they would be excluded by the change i applied

so we probably need something more involved such as none() | BasicFeature

group settings for junit5 are documented at
https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit-platform.html#filtering-by-tags
and if I understand correctly it is to be combined with https://junit.org/junit5/docs/current/user-guide/#running-tests-tag-expressions to produce the proper selection.

@Arsnael Arsnael merged commit bca9239 into apache:master Sep 25, 2024
1 check passed
@jeantil
Copy link
Contributor Author

jeantil commented Sep 25, 2024

as @Arsnael remarked this in only a partial fix and will probably require more refinements for all the other occurences of

                        <excludedGroups>unstable</excludedGroups>

its still better than before :D

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.

3 participants