RFR: 8286873: Improve websocket test execution time [v3]

Pavel Rappo prappo at openjdk.java.net
Thu May 19 12:25:54 UTC 2022


On Thu, 19 May 2022 12:05:45 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

>> This PR improves the execution time of jdk_net tests (and, by extension, tier2) by about 3 minutes.
>> 
>> Tests located under `jdk/java/net/httpclient/websocket` are never run in parallel. Each of the 8 modified `Pending***` tests originally required 40 seconds to complete. After the proposed changes, they usually complete in 15 seconds.
>> 
>> This PR modifies the tests to initially run with 1 second timeout. If the test fails with 1 second timeout, it is retried with timeout increased to 10 seconds (the original value).
>> 
>> The modified tests were executed at least 10 times on each of: Windows, Linux (both x64 and aarch64), MacOS (both x64 and aarch64). No failures were observed.
>
> Daniel Jeliński has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Make it clear that both actions hang

Marked as reviewed by prappo (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/8746


More information about the net-dev mailing list