Claus Ibsen created CAMEL-27578:
-----------------------------------

             Summary: camel-exe - CamelExeBootstrapTest fails every Windows 
build that does not build the native exe
                 Key: CAMEL-27578
                 URL: https://issues.apache.org/jira/browse/CAMEL-27578
             Project: Camel
          Issue Type: Bug
          Components: build system
            Reporter: Claus Ibsen
             Fix For: 4.24.0


The nightly build on Windows (.github/workflows/alternative-os-build-main.yml) 
fails on windows-latest and windows-2025 every night (macOS passes); the last 
runs up to 2026-11-26 all failed.

The cause is CamelExeBootstrapTest in tooling/camel-exe. It is 
@EnabledOnOs(OS.WINDOWS), and each test asserts that target/camel-x64.exe 
exists ("must be built by the build-native-exe profile before this test"). That 
exe is only built by the build-native-exe profile, activated with 
-Dcamel.exe.build=true, which camel-launcher-native-exe.yml passes but the 
regular build (including the nightly Windows build) does not. So all 7 tests 
fail on any Windows build without that property. tooling/camel-exe builds 
early, so the rest of the build is not checked on Windows.

The test fails on purpose when the exe is missing, so that a broken native 
build does not pass silently. Run these tests only when the exe is built: for 
example skip them unless camel.exe.build=true (surefire configuration in the 
default build, or a system property condition), and keep them failing loudly in 
the build-native-exe profile.

_Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to