[
https://issues.apache.org/jira/browse/CAMEL-24022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aurélien Pupier updated CAMEL-24022:
------------------------------------
Description:
The test XsltFromFileExceptionTest is flaky in CI. According to Develocity, it
has 6 failures out of 254 runs in July 2026.
The test consumes files via a file consumer, processes through XSLT, and
asserts mock endpoints. The flakiness is caused by a race condition:
assertMockEndpointsSatisfied() is called before waiting for the file consumer
to process the file via oneExchangeDone.matchesWaitTime(). Under CI load, the
file consumer may not have picked up the file within the default 10-second mock
wait time.
The fix reorders the wait: first wait for the exchange to complete via
oneExchangeDone.matchesWaitTime(), then assert mock expectations.
https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.rootProjectNames=camel&search.tags=main&search.timeZoneId=Europe%2FParis&tests.container=*XsltFromFileExceptionTest
was:
The test XsltFromFileExceptionTest is flaky in CI. According to Develocity, it
has 6 failures out of 254 runs in July 2026.
The test consumes files via a file consumer, processes through XSLT, and
asserts mock endpoints. The flakiness is caused by a race condition:
assertMockEndpointsSatisfied() is called before waiting for the file consumer
to process the file via oneExchangeDone.matchesWaitTime(). Under CI load, the
file consumer may not have picked up the file within the default 10-second mock
wait time.
The fix reorders the wait: first wait for the exchange to complete via
oneExchangeDone.matchesWaitTime(), then assert mock expectations.
> Fix flaky XsltFromFileExceptionTest
> -----------------------------------
>
> Key: CAMEL-24022
> URL: https://issues.apache.org/jira/browse/CAMEL-24022
> Project: Camel
> Issue Type: Test
> Components: camel-core
> Reporter: Guillaume Nodet
> Priority: Minor
>
> The test XsltFromFileExceptionTest is flaky in CI. According to Develocity,
> it has 6 failures out of 254 runs in July 2026.
> The test consumes files via a file consumer, processes through XSLT, and
> asserts mock endpoints. The flakiness is caused by a race condition:
> assertMockEndpointsSatisfied() is called before waiting for the file consumer
> to process the file via oneExchangeDone.matchesWaitTime(). Under CI load, the
> file consumer may not have picked up the file within the default 10-second
> mock wait time.
> The fix reorders the wait: first wait for the exchange to complete via
> oneExchangeDone.matchesWaitTime(), then assert mock expectations.
> https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.rootProjectNames=camel&search.tags=main&search.timeZoneId=Europe%2FParis&tests.container=*XsltFromFileExceptionTest
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)