|
1 | 1 | ---
|
2 | 2 | working-groups:
|
| 3 | + - title: "Test classloading" |
| 4 | + board-url: "https://github.com/orgs/quarkusio/projects/30" |
| 5 | + short-description: | |
| 6 | + The goal of this working group is to rewrite Quarkus's test classloading, so that tests are run in the same classloader as the application under tests, and Quarkus extensions can do "Quarkus-y" manipulations of test classes. |
| 7 | + readme: | |
| 8 | + <p>At the moment, Quarkus tests are invoked using one classloader, and then executed in a different classloader. This mostly works well, but means some use cases don't work: extensions cannot manipulate test classes in the same way that they do normal application classes. For example, anything run via a JUnit @TestTemplate test case will see the un-transformed class.</p> |
| 9 | + <p>It also means we have extra user-facing complexity, such as the QuarkusTest*Callbacks](https://quarkus.io/guides/getting-started-testing#enrichment-via-quarkustestcallback):</p> |
| 10 | + <blockquote> |
| 11 | + <p>While it is possible to use JUnit Jupiter callback interfaces like BeforeEachCallback, you might run into classloading issues because Quarkus has to run tests in a custom classloader which JUnit is not aware of.</p> |
| 12 | + </blockquote> |
| 13 | + <p>A final benefit is a reduction in the internal complexity of our code. Hopping between classloaders during test execution takes a lot of work, and adds a lot of code! It also is brittle in places. For example, because the hop between classloaders relies on serialization in some cases, it's becoming harder to do as the JVM tightens up security restrictions. We used to rely on xstream, but that stopped working in Java 17. In https://github.com/quarkusio/quarkus/pull/40601, @dmlloyd moved us to use the JBoss Serializer, which works better, but might still be affected by future restrictions on class access.</p> |
| 14 | + <p>The goal of this working group is to allow test classes to fully participate in the 'quarkification' of classes. The mechanism for this is probably just to load the test classes with the classloader we intend to run them with, so that JUnit sees the 'correct' version of the class.</p> |
| 15 | + <ul> |
| 16 | + <li>Point of contact: @holly-cummins (@<strong>Holly Cummins</strong> on Zulip)</li> |
| 17 | + <li>Proposal: https://github.com/quarkusio/quarkus/discussions/41867</li> |
| 18 | + <li>Discussion: <a href="https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/WG.20.2330.20Test.20Classloading.20chatter/">Zulip topic</a></li> |
| 19 | + </ul> |
| 20 | + status: on track |
| 21 | + lts: false |
| 22 | + completed: false |
| 23 | + last-activity: 2025-06-30 |
| 24 | + last-update-date: 2025-06-24 |
| 25 | + last-update: | |
| 26 | + In the last month, the WG - Test classloading successfully resolved multiple issues, including improvements to test executions in Quarkus 3.22, addressing classloader errors, and ensuring compatibility with various IDEs. However, several new issues were opened, focusing on logging behavior during tests, test ordering in multi-profile scenarios, and heap consumption changes in the transition to Quarkus 3.23. These discussions indicate ongoing efforts to refine the testing framework and enhance overall functionality. |
| 27 | + |
| 28 | + (This status update was automatically generated using AI.) |
| 29 | + point-of-contact: "@holly-cummins (@<strong>Holly Cummins</strong> on Zulip)" |
| 30 | + proposal: https://github.com/quarkusio/quarkus/discussions/41867 |
| 31 | + discussion: https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/WG.20.2330.20Test.20Classloading.20chatter/ |
3 | 32 | - title: "Chappie"
|
4 | 33 | board-url: "https://github.com/orgs/quarkiverse/projects/8"
|
5 | 34 | short-description: |
|
@@ -267,35 +296,6 @@ working-groups:
|
267 | 296 | In the last month, the WG - Quarkus to the CommonHaus Foundation successfully closed an issue related to setting up the recommended files necessary for the transition to the foundation. Additionally, a new issue was opened to enable a Sponsor button in the Quarkiverse, indicating ongoing efforts to enhance community engagement and streamline governance as Quarkus moves to CommonHaus Foundation.
|
268 | 297 |
|
269 | 298 | (This status update was automatically generated using AI.)
|
270 |
| - - title: "Test classloading" |
271 |
| - board-url: "https://github.com/orgs/quarkusio/projects/30" |
272 |
| - short-description: | |
273 |
| - The goal of this working group is to rewrite Quarkus's test classloading, so that tests are run in the same classloader as the application under tests, and Quarkus extensions can do "Quarkus-y" manipulations of test classes. |
274 |
| - readme: | |
275 |
| - <p>At the moment, Quarkus tests are invoked using one classloader, and then executed in a different classloader. This mostly works well, but means some use cases don't work: extensions cannot manipulate test classes in the same way that they do normal application classes. For example, anything run via a JUnit @TestTemplate test case will see the un-transformed class.</p> |
276 |
| - <p>It also means we have extra user-facing complexity, such as the QuarkusTest*Callbacks](https://quarkus.io/guides/getting-started-testing#enrichment-via-quarkustestcallback):</p> |
277 |
| - <blockquote> |
278 |
| - <p>While it is possible to use JUnit Jupiter callback interfaces like BeforeEachCallback, you might run into classloading issues because Quarkus has to run tests in a custom classloader which JUnit is not aware of.</p> |
279 |
| - </blockquote> |
280 |
| - <p>A final benefit is a reduction in the internal complexity of our code. Hopping between classloaders during test execution takes a lot of work, and adds a lot of code! It also is brittle in places. For example, because the hop between classloaders relies on serialization in some cases, it's becoming harder to do as the JVM tightens up security restrictions. We used to rely on xstream, but that stopped working in Java 17. In https://github.com/quarkusio/quarkus/pull/40601, @dmlloyd moved us to use the JBoss Serializer, which works better, but might still be affected by future restrictions on class access.</p> |
281 |
| - <p>The goal of this working group is to allow test classes to fully participate in the 'quarkification' of classes. The mechanism for this is probably just to load the test classes with the classloader we intend to run them with, so that JUnit sees the 'correct' version of the class.</p> |
282 |
| - <ul> |
283 |
| - <li>Point of contact: @holly-cummins (@<strong>Holly Cummins</strong> on Zulip)</li> |
284 |
| - <li>Proposal: https://github.com/quarkusio/quarkus/discussions/41867</li> |
285 |
| - <li>Discussion: <a href="https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/WG.20.2330.20Test.20Classloading.20chatter/">Zulip topic</a></li> |
286 |
| - </ul> |
287 |
| - status: on track |
288 |
| - lts: false |
289 |
| - completed: false |
290 |
| - last-activity: 2025-06-21 |
291 |
| - last-update-date: 2025-06-24 |
292 |
| - last-update: | |
293 |
| - In the last month, the WG - Test classloading successfully resolved multiple issues, including improvements to test executions in Quarkus 3.22, addressing classloader errors, and ensuring compatibility with various IDEs. However, several new issues were opened, focusing on logging behavior during tests, test ordering in multi-profile scenarios, and heap consumption changes in the transition to Quarkus 3.23. These discussions indicate ongoing efforts to refine the testing framework and enhance overall functionality. |
294 |
| - |
295 |
| - (This status update was automatically generated using AI.) |
296 |
| - point-of-contact: "@holly-cummins (@<strong>Holly Cummins</strong> on Zulip)" |
297 |
| - proposal: https://github.com/quarkusio/quarkus/discussions/41867 |
298 |
| - discussion: https://quarkusio.zulipchat.com/#narrow/channel/187038-dev/topic/WG.20.2330.20Test.20Classloading.20chatter/ |
299 | 299 | - title: "Unified Saga implementation"
|
300 | 300 | board-url: "https://github.com/orgs/quarkusio/projects/48"
|
301 | 301 | short-description: |
|
|
0 commit comments