Skip to content

chore: camel-cxf-soap - run FailOverFeatureTest.testPojo again - #28129

Merged
davsclaus merged 1 commit into
apache:mainfrom
sharanggupta:run-cxf-failover-pojo-test
Oct 20, 2026
Merged

davsclaus merged 1 commit into
apache:mainfrom
sharanggupta:run-cxf-failover-pojo-test

Conversation

@sharanggupta

Copy link
Copy Markdown
Contributor

Description

FailOverFeatureTest.testPojo in camel-cxf-soap was disabled when Undertow was bumped to 2.4.0.RC1 (#21869), because CXF's failover then threw a NullPointerException in ClientImpl.onMessage (CXF-9204). CXF-9204 is fixed in CXF 4.2.1, and Camel now uses CXF 4.2.4, so this removes the @Disabled.

The test only gets "hello" back through the alternate address of the FailoverFeature, since the first address has no server. FailOverFeatureTest passes locally (-pl components/camel-cxf/camel-cxf-soap -Dtest=FailOverFeatureTest), 7 runs out of 7.

Claude Code on behalf of sharanggupta

Target

  • I checked that the commit is targeting the correct branch (Camel 4 uses the main branch)

Tracking

  • If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it). (Test-only change.)

Apache Camel coding standards and style

  • 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. (Only the test module was built; the change removes an annotation and its import.)

AI-assisted contributions

  • If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., Co-authored-by trailers) and the PR description identifies the AI tool used.

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Clean removal of @Disabled — CXF-9204 (NPE in ClientImpl.onMessage) is fixed since CXF 4.2.1, and Camel currently uses CXF 4.2.4. The RandomStrategy with a single alternate address is deterministic, so no flakiness concern. Unused import correctly removed.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@github-actions

Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 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 have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • components/camel-cxf/camel-cxf-soap

🔬 Scalpel shadow comparison — Scalpel: 1 of 707 tested, 0 compile-only — current: 10 all tested

Maveniverse Scalpel detected 1 affected modules (current approach: 10).

Skip-tests mode would test 1 modules (1 direct + 0 downstream), skip tests for 0 (generated code, meta-modules)

Modules only in current approach (9)
  • camel-cxf-spring-soap
  • camel-jbang-mcp
  • camel-jbang-plugin-mcp
  • camel-jbang-plugin-tui
  • camel-jbang-plugin-validate
  • camel-launcher-container
  • camel-soap
  • camel-yaml-dsl-validator
  • camel-yaml-dsl-validator-maven-plugin
Modules Scalpel would test (1)
  • camel-cxf-soap ← components/camel-cxf/camel-cxf-soap/src/test/java/org/apache/camel/component/cxf/jaxws/FailOverFeatureTest.java

ℹ️ Shadow mode — Scalpel observes but does not affect test execution. Learn more

All tested modules (10 modules, 2m 42s total)

Total reactor time: 2m 42s

Module Duration Status
Camel :: CXF :: SOAP 49.1s SUCCESS
Camel :: JBang :: MCP 35.5s SUCCESS
Camel :: JBang :: Plugin :: Validate 34.5s SUCCESS
Camel :: YAML DSL :: Validator 20.5s SUCCESS
Camel :: SOAP 14.2s SUCCESS
Camel :: YAML DSL :: Validator Maven Plugin 3.1s SUCCESS
Camel :: JBang :: Plugin :: MCP 2.8s SUCCESS
Camel :: Launcher :: Container 1.7s SUCCESS
Camel :: CXF :: SOAP :: Spring n/a
Camel :: JBang :: Plugin :: TUI n/a

Top 20 slowest modules:

  • Camel :: CXF :: SOAP (49.1s)
  • Camel :: JBang :: MCP (35.5s)
  • Camel :: JBang :: Plugin :: Validate (34.5s)
  • Camel :: YAML DSL :: Validator (20.5s)
  • Camel :: SOAP (14.2s)
  • Camel :: YAML DSL :: Validator Maven Plugin (3.1s)
  • Camel :: JBang :: Plugin :: MCP (2.8s)
  • Camel :: Launcher :: Container (1.7s)

⚙️ View full build and test results

The test was disabled when Undertow 2.4.0.RC1 made CXF's failover throw a NullPointerException in ClientImpl.onMessage (CXF-9204). CXF-9204 is fixed in CXF 4.2.1, and Camel uses CXF 4.2.4, so the test passes again.
@davsclaus
davsclaus force-pushed the run-cxf-failover-pojo-test branch from c244aea to 532e6a3 Compare October 20, 2026 07:12

@davsclaus davsclaus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks. The test was disabled in 2b1781b for CXF-9204 (an NPE in ClientImpl.onMessage with POJO failover), which is fixed in CXF 4.2.1, and main is on CXF 4.2.4. It was the only test that referenced CXF-9204, and the port and cleanup setup look robust.

Minor: the description says Claude Code was used, but the commit has no Co-authored-by trailer. We'll add it on squash-merge.

Claude Code on behalf of davsclaus. This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

@davsclaus davsclaus added this to the 4.24.0 milestone Oct 20, 2026
@davsclaus davsclaus added the test label Oct 20, 2026
@davsclaus
davsclaus merged commit 1d38fa8 into apache:main Oct 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants