ham1 opened a new pull request, #6866: URL: https://github.com/apache/jmeter/pull/6866
These tests failed now and then on CI, mostly on macOS, while the code under test was fine. Each commit fixes one of them, and the commit message says what was seen on CI. ## Test changes - **JMS_TESTS batch test:** start the reply connection before adding its consumer. A message queued before then made ActiveMQ log a warning, and the batch test fails on any warning. - **SyncTimerTest:** the two limits are now 200ms and 20s instead of being close together, and the test passes up to 5s, which still shows which limit ended the delay. The class Javadoc explains the tests. - **SamplerMetricTimedModeTest:** fixed timestamps, so all asserts compare exactly, with no tolerance. - **TestSampleResult:** allow 50 ms of scheduling delay instead of 10 or 16 ms (CI saw up to 26 ms). That is still well below the 100 ms sleeps, so a miscounted sample or pause is still caught. - **HttpRequestInterruptTest:** interrupt after 3 s instead of 1 s, so a slow start no longer shortens the requests below the expected 500 ms. ## Recent CI failures The newest failures found in the last 100 failed CI runs: - **JMS_TESTS:** [2026-11-05](https://github.com/apache/jmeter/actions/runs/41977583882/job/127081314205), [2026-11-04 (master)](https://github.com/apache/jmeter/actions/runs/41797884332/job/126466581754) - **SyncTimerTest:** [2026-10-01 (master)](https://github.com/apache/jmeter/actions/runs/36857610959/job/110353806933) - **SamplerMetricTimedModeTest:** [2026-10-25](https://github.com/apache/jmeter/actions/runs/39191681575/job/121161617650) - **TestSampleResult:** [2026-11-15](https://github.com/apache/jmeter/actions/runs/43695646082/job/132755554857), [2026-10-13 (Windows)](https://github.com/apache/jmeter/actions/runs/38453910490/job/115544668794) - **HttpRequestInterruptTest:** [2026-11-25 (master)](https://github.com/apache/jmeter/actions/runs/45706393068/job/139529446642), [2026-10-29](https://github.com/apache/jmeter/actions/runs/40921202814/job/123653100085) ## Code change: HTTPJavaImpl HttpRequestInterruptTest also showed a real bug. `HttpURLConnection` can throw a `RuntimeException` (a `NullPointerException` on macOS CI). It skipped the `IOException` handler, and the sample came back empty, without URL, method or elapsed time. - Catch `RuntimeException` next to `IOException`, as `HTTPHC4Impl` already does (`HTTPHC5Impl` catches `Exception`). - Such errors already became a failed sample in `HTTPSamplerBase.sample()`, so this only keeps the result details. - If `disconnect()` also fails in the error handler, that error is added as suppressed. - New test in `TestHTTPJavaImpl`; release note in `xdocs/changes.xml`. Generated-by: Claude Code (Claude Sonnet 5.5, Claude Opus 5.5) -- 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]
