jeanouii commented on PR #1541:
URL: https://github.com/apache/activemq/pull/1541#issuecomment-3566470786

   Aside from a few tests where I had to make the data directory dynamic (so 
parallel executions each get their own directory), the rest of the changes are 
simply adding @Category on test classes that can safely run in parallel. I went 
through the modules manually to identify which tests were compatible, which 
took some time. Many of the remaining ones could be migrated as well, but they 
need deeper refactoring, so they aren’t part of the “quick win” I was aiming 
for here.
   
   The rest is just Surefire configuration.
   
   Regarding migrating to JUnit 5/6: I agree that @Category → @Tag and Surefire 
<groups> → <includeTags> is straightforward. If your suggestion is to go that 
route instead, I’m perfectly fine with it. Vintage is deprecated but still 
available in JUnit 6, so it gives us some runway.
   
   I also fully agree that most tests ultimately need to be modernized. Many 
still inherit from TestCase, so we’ll need to add proper @Test annotations, use 
before/after hooks, and switch to assertions for timeouts and exceptions. With 
the current codebase, that’s a substantial amount of work. I know the community 
is interested in pushing towards that modernization—which is great—but in the 
meantime getting faster CI feedback (2–3 hours instead of ~7 hours) would 
already be a big improvement.
   
   What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to