davsclaus opened a new pull request, #30116:
URL: https://github.com/apache/camel/pull/30116

   `DependencyUpdateTest` failed once in about every run of the 
camel-jbang-core suite, and passed on the rerun:
   
   ```
   ERROR: Cannot export .../src/main/resources/application.properties and 
.../camel-jbang-core/application.properties
   as both would be src/main/resources/application.properties in the exported 
project: rename one of them
   ```
   
   ## Cause
   
   `ExportMainApplicationPropertiesTest` writes `./application.properties` in 
the module directory, and deletes it after each test. It ran in the parallel 
forks, so an export of another test that ran meanwhile, such as the one of 
`DependencyUpdateTest`, read the file too and refused the two 
`application.properties`.
   
   ## Change
   
   The test is `@UsesWorkingDirectory`, like `ExportTest`, `ExportMainJibTest` 
and `ExportMainJkubeTest`, which write the same file: it runs in the 
`serial-test` execution, after the parallel forks, one class at a time.
   
   ## Tests
   
   The core suite twice: 3126 + 272 tests, no failures and no flakes 
(`DependencyUpdateTest` 14/14 both times, `ExportMainApplicationPropertiesTest` 
in the serial fork). Before, every run had 2 flakes of `DependencyUpdateTest`.
   
   _Claude Code on behalf of Claus Ibsen (davsclaus)_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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]

Reply via email to