From djelinski1 at gmail.com Thu Oct 2 18:40:39 2025 From: djelinski1 at gmail.com (=?UTF-8?Q?Daniel_Jeli=C5=84ski?=) Date: Thu, 2 Oct 2025 20:40:39 +0200 Subject: How to pass javatest.maxOutputSize to make test? In-Reply-To: References: Message-ID: Hi Pavel, JTREG=MAX_OUTPUT=999999999 is what you're looking for. Cheers, Daniel czw., 2 pa? 2025 o 20:37 Pavel Rappo napisa?(a): > > Hello, > > This has been probably asked multiple times, but I cannot quickly find > anything. I'm running a set of tests as follows: > > make test TEST="test/jdk/java/time/" > > If a test fails, sometimes I get this output: > > ... > Output overflow: > JT Harness has limited the test output to the text > at the beginning and the end, so that you can see how the > test began, and how it completed. > > If you need to see more of the output from the test, > set the system property javatest.maxOutputSize to a higher > value. The current value is 100000 > ... > > I know there's even an FAQ item [^1] addressing this property. But I > cannot easily see how to translate jtreg syntax to that of `make > test`. Whatever I tried hasn't worked. As a workaround, I added this > to the nearest TEST.properties: > > maxOutputSize=99999999 > > [^1]: https://openjdk.org/jtreg/faq.html#how-to-set-javatest.maxOutputSize From pavel.rappo at gmail.com Thu Oct 2 17:09:29 2025 From: pavel.rappo at gmail.com (Pavel Rappo) Date: Thu, 2 Oct 2025 18:09:29 +0100 Subject: How to pass javatest.maxOutputSize to make test? Message-ID: Hello, This has been probably asked multiple times, but I cannot quickly find anything. I'm running a set of tests as follows: make test TEST="test/jdk/java/time/" If a test fails, sometimes I get this output: ... Output overflow: JT Harness has limited the test output to the text at the beginning and the end, so that you can see how the test began, and how it completed. If you need to see more of the output from the test, set the system property javatest.maxOutputSize to a higher value. The current value is 100000 ... I know there's even an FAQ item [^1] addressing this property. But I cannot easily see how to translate jtreg syntax to that of `make test`. Whatever I tried hasn't worked. As a workaround, I added this to the nearest TEST.properties: maxOutputSize=99999999 [^1]: https://openjdk.org/jtreg/faq.html#how-to-set-javatest.maxOutputSize From pavel.rappo at gmail.com Thu Oct 2 19:00:21 2025 From: pavel.rappo at gmail.com (Pavel Rappo) Date: Thu, 2 Oct 2025 20:00:21 +0100 Subject: How to pass javatest.maxOutputSize to make test? In-Reply-To: References: Message-ID: It works, thanks! I found a JBS issue that mentions this: https://bugs.openjdk.org/browse/JDK-8220639. I wonder if this parameter can be mentioned in these documents, so it could be easily found by the next person: - https://openjdk.org/groups/build/doc/testing.html - https://github.com/openjdk/jdk/blob/master/doc/testing.md - https://openjdk.org/guide/#testing-the-jdk On Thu, Oct 2, 2025 at 7:40?PM Daniel Jeli?ski wrote: > > Hi Pavel, > JTREG=MAX_OUTPUT=999999999 is what you're looking for. > Cheers, > Daniel > > czw., 2 pa? 2025 o 20:37 Pavel Rappo napisa?(a): > > > > Hello, > > > > This has been probably asked multiple times, but I cannot quickly find > > anything. I'm running a set of tests as follows: > > > > make test TEST="test/jdk/java/time/" > > > > If a test fails, sometimes I get this output: > > > > ... > > Output overflow: > > JT Harness has limited the test output to the text > > at the beginning and the end, so that you can see how the > > test began, and how it completed. > > > > If you need to see more of the output from the test, > > set the system property javatest.maxOutputSize to a higher > > value. The current value is 100000 > > ... > > > > I know there's even an FAQ item [^1] addressing this property. But I > > cannot easily see how to translate jtreg syntax to that of `make > > test`. Whatever I tried hasn't worked. As a workaround, I added this > > to the nearest TEST.properties: > > > > maxOutputSize=99999999 > > > > [^1]: https://openjdk.org/jtreg/faq.html#how-to-set-javatest.maxOutputSize From alan.bateman at oracle.com Fri Oct 3 05:55:55 2025 From: alan.bateman at oracle.com (Alan Bateman) Date: Fri, 3 Oct 2025 06:55:55 +0100 Subject: How to pass javatest.maxOutputSize to make test? In-Reply-To: References: Message-ID: <87dd3b16-df02-413d-b3ca-d7190a6d67cb@oracle.com> On 02/10/2025 18:09, Pavel Rappo wrote: > Hello, > > This has been probably asked multiple times, but I cannot quickly find > anything. I'm running a set of tests as follows: > > make test TEST="test/jdk/java/time/" > > If a test fails, sometimes I get this output: > > ... > Output overflow: > JT Harness has limited the test output to the text > at the beginning and the end, so that you can see how the > test began, and how it completed. > > If you need to see more of the output from the test, > set the system property javatest.maxOutputSize to a higher > value. The current value is 100000 > ... > At some point I think we need to think again about having maxOutputSize set to a very large value in the TEST.ROOT for least the test/jdk test. There are many parameterized tests that result in lot of output but it very important output for diagnosing failures, even the "STARTED" and "SUCCESSFUL" messages for JUnit tests as they give you the execution time for specific tests when trying to diagnose timeouts and slow downs. Right now, we have TEST.properties in some areas overriding the value of maxOutputSize because of this issue. So while it might mean a test run retains large .jtr that is truncated today, it seems a reasonable trade off when comparing to the frustrating of finding which test has failed. -Alan -------------- next part -------------- An HTML attachment was scrubbed... URL: From cstein at openjdk.org Wed Oct 8 14:11:12 2025 From: cstein at openjdk.org (Christian Stein) Date: Wed, 8 Oct 2025 14:11:12 GMT Subject: RFR: 7904094: Release jtreg 8.1 Message-ID: Please review this change to update the `CHANGELOG.md` file to include a section about jtreg 8.1 This change also increases the working number to 8.2 ------------- Commit messages: - Start with development of jtreg 8.2 - 7904094: Release jtreg 8.1 Changes: https://git.openjdk.org/jtreg/pull/294/files Webrev: https://webrevs.openjdk.org/?repo=jtreg&pr=294&range=00 Issue: https://bugs.openjdk.org/browse/CODETOOLS-7904094 Stats: 15 lines in 2 files changed: 13 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jtreg/pull/294.diff Fetch: git fetch https://git.openjdk.org/jtreg.git pull/294/head:pull/294 PR: https://git.openjdk.org/jtreg/pull/294 From jpai at openjdk.org Wed Oct 8 14:11:13 2025 From: jpai at openjdk.org (Jaikiran Pai) Date: Wed, 8 Oct 2025 14:11:13 GMT Subject: RFR: 7904094: Release jtreg 8.1 In-Reply-To: References: Message-ID: On Wed, 8 Oct 2025 13:59:31 GMT, Christian Stein wrote: > Please review this change to update the `CHANGELOG.md` file to include a section about jtreg 8.1 > > This change also increases the working number to 8.2 Looks good to me ------------- Marked as reviewed by jpai (Reviewer). PR Review: https://git.openjdk.org/jtreg/pull/294#pullrequestreview-3314994211 From cstein at openjdk.org Wed Oct 8 14:51:31 2025 From: cstein at openjdk.org (Christian Stein) Date: Wed, 8 Oct 2025 14:51:31 GMT Subject: Integrated: 7904094: Release jtreg 8.1 In-Reply-To: References: Message-ID: On Wed, 8 Oct 2025 13:59:31 GMT, Christian Stein wrote: > Please review this change to update the `CHANGELOG.md` file to include a section about jtreg 8.1 > > This change also increases the working number to 8.2 This pull request has now been integrated. Changeset: 34ccc66e Author: Christian Stein URL: https://git.openjdk.org/jtreg/commit/34ccc66ec89651637811678a17d3f810b4ac0780 Stats: 15 lines in 2 files changed: 13 ins; 0 del; 2 mod 7904094: Release jtreg 8.1 Reviewed-by: jpai ------------- PR: https://git.openjdk.org/jtreg/pull/294 From vpetko at openjdk.org Wed Oct 22 02:43:16 2025 From: vpetko at openjdk.org (Vladimir Petko) Date: Wed, 22 Oct 2025 02:43:16 GMT Subject: RFR: 7904101: intermittent failure in StreamsTest.agentvm.ok Message-ID: FileDescriptor test intermittently fails because the agent's process output capture lacks synchronisation. This PR fixes the issue: - Agent VM prints the "process output separator" to stderr and stdout before and after action - The main vm uses the marker to stop reading the stream for the current test result section (or a general agent log) - The main vm restarts reading the log after updating the test section (or clearing it) until the next marker or the process is shut down. Alternative: -Disable the test and make no assumptions about contents of the agent vm process output. Testing: tier1 and tier2 tests on mainline jdk (Ubuntu Linux) in agentvm mode. make test TEST=":tier1 :tier2" JTREG="TEST_MODE=agentvm" .... ============================== Test summary ============================== TEST TOTAL PASS FAIL ERROR SKIP jtreg:test/hotspot/jtreg:tier1 3124 2837 0 0 287 jtreg:test/jdk:tier1 2519 2480 0 0 39 jtreg:test/langtools:tier1 4670 4660 0 0 10 jtreg:test/jaxp:tier1 0 0 0 0 0 jtreg:test/lib-test:tier1 38 38 0 0 0 jtreg:test/hotspot/jtreg:tier2 960 913 0 0 47 >> jtreg:test/jdk:tier2 4455 4220 1 0 234 << jtreg:test/langtools:tier2 14 12 0 0 2 jtreg:test/jaxp:tier2 517 516 0 0 1 jtreg:test/docs:tier2 4 0 0 0 4 ============================== TEST FAILURE Unrelated failure: test/jdk/java/nio/channels/DatagramChannel/SendReceiveMaxSize.java ---------System.out:(98/7409)---------- Seed from RandomFactory = 7590698091695474155L [15:02:42.244] config SendReceiveMaxSize.setUp(): success [0ms] [15:02:42.272] test SendReceiveMaxSize.testGetOption(SendReceiveMaxSize$$Lambda/0x00000000450736f8 at 8d234b9, 65507, /10.201.67.1): success [7ms] [15:02:42.273] test SendReceiveMaxSize.testGetOption(SendReceiveMaxSize$$Lambda/0x0000000045073920 at 449629ff, 65507, /10.201.67.1): success [0ms] [15:02:42.273] test SendReceiveMaxSize.testGetOption(SendReceiveMaxSize$$Lambda/0x0000000045078000 at 2b071f3f, 65527, java.net.Inet6Address at 22212892): success [0ms] [15:02:42.273] test SendReceiveMaxSize.testGetOption(SendReceiveMaxSize$$Lambda/0x0000000045078228 at 298b6c94, 65527, java.net.Inet6Address at 22212892): success [0ms] testSendReceiveMaxSize: sender: /10.201.67.1:50670 -> receiver: /10.201.67.1:49236 sendBuf: java.nio.HeapByteBuffer[pos=0 lim=65507 cap=65507] receiveBuf: java.nio.HeapByteBuffer[pos=0 lim=65507 cap=65507] sendBuf: java.nio.HeapByteBuffer[pos=0 lim=65506 cap=65506] receiveBuf: java.nio.HeapByteBuffer[pos=0 lim=65506 cap=65506] [15:02:42.286] test SendReceiveMaxSize.testSendReceiveMaxSize(SendReceiveMaxSize$$Lambda/0x00000000450736f8 at 8d234b9, 65507, /10.201.67.1): success [11ms] testSendReceiveMaxSize: sender: /10.201.67.1:48168 -> receiver: /10.201.67.1:52274 sendBuf: java.nio.HeapByteBuffer[pos=0 lim=65507 cap=65507] receiveBuf: java.nio.HeapByteBuffer[pos=0 lim=65507 cap=65507] sendBuf: java.nio.HeapByteBuffer[pos=0 lim=65506 cap=65506] receiveBuf: java.nio.HeapByteBuffer[pos=0 lim=65506 cap=65506] [15:02:42.288] test SendReceiveMaxSize.testSendReceiveMaxSize(SendReceiveMaxSize$$Lambda/0x0000000045073920 at 449629ff, 65507, /10.201.67.1): success [2ms] testSendReceiveMaxSize: sender: /[fe80:0:0:0:fc54:ff:fe24:9197%17]:46562 -> receiver: /[fe80:0:0:0:fc54:ff:fe24:9197%17]:58635 [15:02:42.289] test SendReceiveMaxSize.testSendReceiveMaxSize(SendReceiveMaxSize$$Lambda/0x0000000045078000 at 2b071f3f, 65527, java.net.Inet6Address at 8959069): failure [1ms] java.net.SocketException: Message too long at java.base/sun.nio.ch.DatagramChannelImpl.send0(Native Method) at java.base/sun.nio.ch.DatagramChannelImpl.sendFromNativeBuffer(DatagramChannelImpl.java:914) at java.base/sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:886) at java.base/sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:798) at SendReceiveMaxSize.testSendReceiveMaxSize(SendReceiveMaxSize.java:155) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132) at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599) at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174) at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46) at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822) at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128) at java.base/java.util.ArrayList.forEach(ArrayList.java:1604) at org.testng.TestRunner.privateRun(TestRunner.java:764) at org.testng.TestRunner.run(TestRunner.java:585) at org.testng.SuiteRunner.runTest(SuiteRunner.java:384) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337) at org.testng.SuiteRunner.run(SuiteRunner.java:286) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218) at org.testng.TestNG.runSuitesLocally(TestNG.java:1140) at org.testng.TestNG.runSuites(TestNG.java:1069) at org.testng.TestNG.run(TestNG.java:1037) at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:109) at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:65) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1474) testSendReceiveMaxSize: sender: /[fe80:0:0:0:fc54:ff:fe24:9197%17]:39368 -> receiver: /[fe80:0:0:0:fc54:ff:fe24:9197%17]:38228 [15:02:42.291] test SendReceiveMaxSize.testSendReceiveMaxSize(SendReceiveMaxSize$$Lambda/0x0000000045078228 at 298b6c94, 65527, java.net.Inet6Address at 8959069): failure [0ms] java.net.SocketException: Message too long at java.base/sun.nio.ch.DatagramChannelImpl.send0(Native Method) at java.base/sun.nio.ch.DatagramChannelImpl.sendFromNativeBuffer(DatagramChannelImpl.java:914) at java.base/sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:886) at java.base/sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:798) at SendReceiveMaxSize.testSendReceiveMaxSize(SendReceiveMaxSize.java:155) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132) at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599) at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174) at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46) at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822) at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128) at java.base/java.util.ArrayList.forEach(ArrayList.java:1604) at org.testng.TestRunner.privateRun(TestRunner.java:764) at org.testng.TestRunner.run(TestRunner.java:585) at org.testng.SuiteRunner.runTest(SuiteRunner.java:384) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337) at org.testng.SuiteRunner.run(SuiteRunner.java:286) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218) at org.testng.TestNG.runSuitesLocally(TestNG.java:1140) at org.testng.TestNG.runSuites(TestNG.java:1069) at org.testng.TestNG.run(TestNG.java:1037) at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:109) at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:65) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138) at java.base/java.lang.Thread.run(Thread.java:1474) =============================================== java/nio/channels/DatagramChannel/SendReceiveMaxSize.java Total tests run: 8, Passes: 6, Failures: 2, Skips: 0 =============================================== ------------- Commit messages: - feat: synchronize agent's stdout/stderr logging Changes: https://git.openjdk.org/jtreg/pull/295/files Webrev: https://webrevs.openjdk.org/?repo=jtreg&pr=295&range=00 Issue: https://bugs.openjdk.org/browse/CODETOOLS-7904101 Stats: 219 lines in 3 files changed: 180 ins; 29 del; 10 mod Patch: https://git.openjdk.org/jtreg/pull/295.diff Fetch: git fetch https://git.openjdk.org/jtreg.git pull/295/head:pull/295 PR: https://git.openjdk.org/jtreg/pull/295 From vpetko at openjdk.org Wed Oct 22 05:16:57 2025 From: vpetko at openjdk.org (Vladimir Petko) Date: Wed, 22 Oct 2025 05:16:57 GMT Subject: RFR: 7904101: intermittent failure in StreamsTest.agentvm.ok [v2] In-Reply-To: References: Message-ID: > FileDescriptor test intermittently fails because the agent's process output capture lacks synchronisation. > > This PR fixes the issue: > - Agent VM prints the "process output separator" to stderr and stdout before and after action > - The main vm uses the marker to stop reading the stream for the current test result section (or a general agent log) > - The main vm restarts reading the log after updating the test section (or clearing it) until the next marker or the process is shut down. > > Alternative: > -Disable the test and make no assumptions about contents of the agent vm process output. > > Testing: tier1 and tier2 tests on mainline jdk (Ubuntu Linux) in agentvm mode. > > > make test TEST=":tier1 :tier2" JTREG="TEST_MODE=agentvm" > > .... > > ============================== > Test summary > ============================== > TEST TOTAL PASS FAIL ERROR SKIP > jtreg:test/hotspot/jtreg:tier1 3124 2837 0 0 287 > jtreg:test/jdk:tier1 2519 2480 0 0 39 > jtreg:test/langtools:tier1 4670 4660 0 0 10 > jtreg:test/jaxp:tier1 0 0 0 0 0 > jtreg:test/lib-test:tier1 38 38 0 0 0 > jtreg:test/hotspot/jtreg:tier2 960 913 0 0 47 >>> jtreg:test/jdk:tier2 4455 4220 1 0 234 << > jtreg:test/langtools:tier2 14 12 0 0 2 > jtreg:test/jaxp:tier2 517 516 0 0 1 > jtreg:test/docs:tier2 4 0 0 0 4 > ============================== > TEST FAILURE > > > Unrelated failure: test/jdk/java/nio/channels/DatagramChannel/SendReceiveMaxSize.java > > > > > ---------System.out:(98/7409)---------- > Seed from RandomFactory = 7590698091695474155L > [15:02:42.244] config SendReceiveMaxSize.setUp(): success [0ms] > [15:02:42.272] test SendReceiveMaxSize.testGetOption(SendReceiveMaxSize$$Lambda/0x00000000450736f8 at 8d234b9, 65507, /10.201.67.1): success [7ms] > [15:02:42.273] test SendReceiveMaxSize.testGetOption(SendReceiveMaxSize$$Lambda/0x0000000045073920 at 449629ff, 65507, /10.201.67.1): success [0ms] > [15:02:42.273] test SendReceiveMaxSize.testGetOption(SendReceiveMaxSize$$Lambda/0x0000000045078000 at 2b071f3f, 65527, java.net.Inet6Address at 22212892): success [0ms] > [15:0... Vladimir Petko has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains two new commits since the last revision: - fix: always call stopLogging() - feat: synchronize agent's stdout/stderr logging How it works: - The agent vm emits separator text before and after the text. - The main vm send the action and waits for the separator text line from the agent vm. - After the result have been read by the main vm it expects another separator text line. After consuming the line it redirects output to the agent log. Edge cases: - Timeouts and Agent VM crashes: - The main vm's stdout and stderr tasks will exit due to the closed stream. The main vm is supposed to dispose the failed agent. ------------- Changes: - all: https://git.openjdk.org/jtreg/pull/295/files - new: https://git.openjdk.org/jtreg/pull/295/files/49d53afa..1b37e559 Webrevs: - full: https://webrevs.openjdk.org/?repo=jtreg&pr=295&range=01 - incr: https://webrevs.openjdk.org/?repo=jtreg&pr=295&range=00-01 Stats: 6 lines in 1 file changed: 0 ins; 2 del; 4 mod Patch: https://git.openjdk.org/jtreg/pull/295.diff Fetch: git fetch https://git.openjdk.org/jtreg.git pull/295/head:pull/295 PR: https://git.openjdk.org/jtreg/pull/295 From vpetko at openjdk.org Fri Oct 24 01:36:35 2025 From: vpetko at openjdk.org (Vladimir Petko) Date: Fri, 24 Oct 2025 01:36:35 GMT Subject: RFR: 7904101: intermittent failure in StreamsTest.agentvm.ok [v2] In-Reply-To: References: Message-ID: On Wed, 22 Oct 2025 05:16:57 GMT, Vladimir Petko wrote: >> FileDescriptor test intermittently fails because the agent's process output capture lacks synchronisation. >> >> This PR fixes the issue: >> - Agent VM prints the "process output separator" to stderr and stdout before and after action >> - The main vm uses the marker to stop reading the stream for the current test result section (or a general agent log) >> - The main vm restarts reading the log after updating the test section (or clearing it) until the next marker or the process is shut down. >> >> Alternative: >> -Disable the test and make no assumptions about contents of the agent vm process output. >> >> Testing: tier1 and tier2 tests on mainline jdk (Ubuntu Linux) in agentvm mode. >> >> >> make test TEST=":tier1 :tier2" JTREG="TEST_MODE=agentvm" >> >> .... >> >> ============================== >> Test summary >> ============================== >> TEST TOTAL PASS FAIL ERROR SKIP >> jtreg:test/hotspot/jtreg:tier1 3124 2837 0 0 287 >> jtreg:test/jdk:tier1 2519 2480 0 0 39 >> jtreg:test/langtools:tier1 4670 4660 0 0 10 >> jtreg:test/jaxp:tier1 0 0 0 0 0 >> jtreg:test/lib-test:tier1 38 38 0 0 0 >> jtreg:test/hotspot/jtreg:tier2 960 913 0 0 47 >>>> jtreg:test/jdk:tier2 4455 4220 1 0 234 << >> jtreg:test/langtools:tier2 14 12 0 0 2 >> jtreg:test/jaxp:tier2 517 516 0 0 1 >> jtreg:test/docs:tier2 4 0 0 0 4 >> ============================== >> TEST FAILURE >> >> >> Unrelated failure: test/jdk/java/nio/channels/DatagramChannel/SendReceiveMaxSize.java >> >> >> >> >> ---------System.out:(98/7409)---------- >> Seed from RandomFactory = 7590698091695474155L >> [15:02:42.244] config SendReceiveMaxSize.setUp(): success [0ms] >> [15:02:42.272] test SendReceiveMaxSize.testGetOption(SendReceiveMaxSize$$Lambda/0x00000000450736f8 at 8d234b9, 65507, /10.201.67.1): success [7ms] >> [15:02:42.273] test SendReceiveMaxSize.testGetOption(SendReceiveMaxSize$$Lambda/0x0000000045073920 at 449629ff, 65507, /10.201.67.1): success [0ms] >> [15:02:42.273] test SendReceiveMaxSize.testGetOption(SendReceiveMaxSize$$Lamb... > > Vladimir Petko has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains two new commits since the last revision: > > - fix: always call stopLogging() > - feat: synchronize agent's stdout/stderr logging > > How it works: > - The agent vm emits separator text before and after the text. > - The main vm send the action and waits for the separator text line from > the agent vm. > - After the result have been read by the main vm it expects another separator > text line. After consuming the line it redirects output to the agent log. > > Edge cases: > - Timeouts and Agent VM crashes: > - The main vm's stdout and stderr tasks will exit due to the > closed stream. The main vm is supposed to dispose the failed agent. Still getting intermittent failure in StreamsTest. moving to draft. ------------- PR Comment: https://git.openjdk.org/jtreg/pull/295#issuecomment-3440292558