apupier opened a new pull request, #31326: URL: https://github.com/apache/camel/pull/31326
# Description JIRA: https://issues.apache.org/jira/browse/CAMEL-28094 (related: CAMEL-28024, CAMEL-28025) Robot Framework runs in-process on Jython and writes its progress and summary to a console stream that is shared by the whole JVM. When a thread is interrupted while Robot Framework starts a run (for example when a route is stopped during a run), that console stream is closed and stays unusable: every later run in the same JVM fails with `IOError: java.nio.channels.ClosedChannelException` raised in `robot.output.console.highlighting`. This is the failure of `RobotFrameworkOptionsFixTest` in the Jenkins build of `main` after CAMEL-28025 (the lock of CAMEL-28025 serializes the runs but cannot prevent this): the five test classes ran one after the other, and the failure repeated in the 2 surefire reruns. The component does not use the console output at all, only the return code and the output files. The change: - New `console` endpoint option (the robot `--console` option: `verbose`, `dotted`, `quiet`, `none`), default `none`. `console=verbose` restores the previous output. - `RobotFrameworkEndpoint` passes it to Robot Framework. - Upgrade guide 4.25 entry: the console output of Robot Framework is now off by default. - Regenerated files (configurers, URI factory, catalog, endpoint and component DSL). Tests: - `RobotFrameworkInterruptedRunTest` interrupts runs while they start and checks that a later run succeeds. It fails with `console=verbose` (checked 3 times) and passes with the default. - `RobotFrameworkCamelConfigurationTest` checks the default and the option. Note for the reviewer: I could not confirm what interrupts the run in the Jenkins build; I reproduced the failure by interrupting runs. # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [ ] I have run `mvn clean install -DskipTests` locally from root folder and I have committed all auto-generated changes. (the `camel-robotframework` module, `catalog/camel-catalog`, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl` were built; not the whole root build) _Bob (IBM AI assistant) on behalf of @apupier_ -- 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]
