You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/07/03 08:43:25 UTC

[PR] Fix flaky ExportTest and DependencyUpdateTest for Spring Boot runtime [camel]

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

   ## Summary
   
   _Claude Code on behalf of Guillaume Nodet_
   
   Fix flaky `ExportTest` and `DependencyUpdateTest` in `camel-jbang-core` that intermittently fail for the Spring Boot runtime parameterization.
   
   - **Root cause**: `CatalogLoader.loadSpringBootCatalog()` always downloads `camel-catalog-provider-springboot` from remote repos. Unlike `loadCatalog()` for the main runtime (which short-circuits when the requested version matches the bundled catalog), the Spring Boot path has no such optimization. The `camel-catalog-provider-springboot` artifact comes from the **separate** `camel-spring-boot` project, whose SNAPSHOT may not be deployed to Apache Snapshots at any given time.
   - **Fix**: Pin Spring Boot test parameterizations to a released Camel version (`4.13.0`) via `--camel-version`. Released versions are always available on Maven Central, making these tests deterministic. Tests that already specify `--camel-version` (like `shouldExportDifferentVersion`) are left unchanged via a `containsCamelVersion()` guard.
   - **Scope**: Only test code is modified — no production behavior changes. The tests verify POM generation and dependency mapping logic, not version resolution itself.
   
   ### Observed failure
   
   This was observed in [PR #24399](https://github.com/apache/camel/pull/24399) CI where all 23 Spring Boot (`[2]`) parameterized test cases failed with:
   ```
   Cannot download org.apache.camel.springboot:camel-catalog-provider-springboot:4.22.0-SNAPSHOT
   ```
   
   ## Test plan
   
   - [ ] CI passes for `camel-jbang-core` module tests
   - [ ] Spring Boot `[2]` parameterized tests no longer fail due to SNAPSHOT download issues
   - [ ] Main `[3]` and Quarkus `[1]` test parameterizations remain unaffected
   
   🤖 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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix flaky ExportTest and DependencyUpdateTest for Spring Boot runtime [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24402:
URL: https://github.com/apache/camel/pull/24402#issuecomment-4874418431

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23894: Fix flaky ExportTest and DependencyUpdateTest for Spring Boot runtime [camel]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet merged PR #24402:
URL: https://github.com/apache/camel/pull/24402


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix flaky ExportTest and DependencyUpdateTest for Spring Boot runtime [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24402:
URL: https://github.com/apache/camel/pull/24402#issuecomment-4874655514

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `dsl/camel-jbang/camel-jbang-core`
   
   ---
   
   <details><summary>:microscope: Scalpel shadow comparison — Scalpel: 1 tested, 0 compile-only — current: 6 all tested</summary>
   
   [Maveniverse Scalpel](https://github.com/maveniverse/scalpel) detected **1 affected modules** (current approach: 6).
   
   <details><summary>:warning: Modules only in Scalpel (1)</summary>
   
   - `camel-jbang-core`
   
   </details>
   
   <details><summary>Modules only in current approach (6)</summary>
   
   - `camel-jbang-mcp`
   - `camel-jbang-plugin-mcp`
   - `camel-jbang-plugin-route-parser`
   - `camel-jbang-plugin-tui`
   - `camel-jbang-plugin-validate`
   - `camel-launcher-container`
   
   </details>
   
   **Skip-tests mode would test 1 modules** (1 direct + 0 downstream), **skip tests for 0** (generated code, meta-modules)
   
   <details><summary>Modules Scalpel would test (1)</summary>
   
   - `camel-jbang-core`
   
   </details>
   
   > :information_source: Shadow mode — Scalpel observes but does not affect test execution. [Learn more](https://github.com/maveniverse/scalpel)
   
   </details>
   
   :warning: **Some tests are disabled on GitHub Actions** (`@DisabledIfSystemProperty(named = "ci.env.name")`) and require manual verification:
   
   - `dsl/camel-jbang/camel-jbang-core`: 1 test(s) disabled on GitHub Actions
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/28649192485)


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org