-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
Avoid using JRE.OTHER when disabling Artemis tests to work around ARTEMIS-4975 #41909
Comments
I don't really understand what's going on. When I tried this, I ran the build with Java 23 is not enabled yet on |
It might be related to logging configuration. The failures that we've seen have stack traces similar to this:
Looking at @Override
public MBeanNotificationInfo[] getNotificationInfo() {
if (AuditLogger.isBaseLoggingEnabled()) {
AuditLogger.getNotificationInfo(this.server);
}
CoreNotificationType[] values = CoreNotificationType.values();
String[] names = new String[values.length];
for (int i = 0; i < values.length; i++) {
names[i] = values[i].toString();
}
return new MBeanNotificationInfo[]{new MBeanNotificationInfo(names, this.getClass().getName(), "Notifications emitted by a Core Server")};
} Perhaps the logging configuration isn't consistent across branches/builds. The latter could perhaps be related to test ordering where a previous test has changed the log levels? Regardless, it looks like some more investigation is needed and that a third option may be to tune the logging configuration used by the tests. |
Can you remember when you did that, @snicoll? Do you have a build scan link for it perhaps? I searched on https://ge.spring.io but didn't manage to find anything. |
https://ge.spring.io/s/kfcuenyuu4z6y ? Sorry, I can't see in the scan if I used |
Thank you. The tests are skipped in the build scan and seeing that has given me the nudge that I needed to realise what's going on. I've only just noticed (sorry) that the tests are already disabled depending on the JRE: Lines 69 to 70 in 71ca952
Looking at the Develocity test dashboard, the tests were being skipped until 16 August when they started running and failing. That coincides with the upgrade to JUnit 5.11 which introduced a value for Java 23 (and Java 24) to its We could switch to using |
FTR They were a number of other tests that were using |
To avoid potential issues with @wilkinsona and @snicoll, the JUnit Team would appreciate any feedback you have on that proposal. |
Apache Artemis is incompatible with Java 23: https://issues.apache.org/jira/browse/ARTEMIS-4975. We're seeing failures on
main
due to this. I'm not sure why we're not also seeing them on our maintenance branches. We'll need to work around this where necessary. I think we have two options:-Djava.security.manager=allow
I think I prefer 1, as 2 would mask problems with other dependencies.
The text was updated successfully, but these errors were encountered: