Skip to content

CAMEL-26534: camel-itest-spring-boot - drop -nsu from the nested Maven runs - #2070

Merged
Croway merged 1 commit into
apache:mainfrom
Croway:CAMEL-26534-itest-drop-nsu
Nov 3, 2026
Merged

Croway merged 1 commit into
apache:mainfrom
Croway:CAMEL-26534-itest-drop-nsu

Conversation

@Croway

@Croway Croway commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Fixes CAMEL-26534.

CamelOpenfeatureIT fails in Camel-Spring-Boot Daily #439 (builds35):

No versions available for dev.openfeature.contrib.tools:flagd-core:jar:[3.0.0,4.0.0) within specified range

Cause

  • Camel bumped flagd from 0.14.2 to 0.15.0 on 2026-11-02. 0.15.0 declares flagd-core as [3.0.0,4.0.0) (0.14.2 declared [2.0.0,3.0.0)). The reactor build isn't affected because camel-parent pins flagd-core, but the generated archetype project only imports camel-spring-boot-bom, so it has to resolve the range.
  • ArchetypeGenerationExtension.runMaven passes -nsu (added in CAMEL-25465: Speed up and harden the starter integration test harness #2024). In Maven 3.9.11 that sets the session update policy to never, and Maven Resolver 1.9.24 applies it to release repositories as well as snapshot ones. The range is therefore matched against the flagd-core metadata the agent's shared ~/.m2 already holds. On builds35 that metadata dates from before 3.0.0 was released (2026-10-15), and it is never refreshed.

Change

Cost and trade-off

  • Cost: the reactor build runs with -U, so the Camel core snapshots have already been checked for the day. What's left is about one metadata request per IT, for its own starter, once per day. A request to repository.apache.org takes 150–300 ms.
  • Trade-off: an IT can now pick up a starter published by the Snapshot Deploy job if that copy is newer than the one the reactor installed. Both jobs build main, so in practice it's the same code.

Testing

  • Reproduction with Maven 3.9.11: a project depending on flagd:0.15.0, with a local repository seeded with flagd-core metadata from before 3.0.0 and a last check on 2026-10-01.
  • Module: tests/camel-itest-spring-boot compiles.
  • Not run locally: the full IT suite. The check that matters is CamelOpenfeatureIT on the next Daily run on builds35.
  • No new test: the harness has no unit tests, and reproducing this needs a nested Maven run against a seeded local repository plus network access. CamelOpenfeatureIT covers it on CI.

Claude Code (Claude Opus 5.5) on behalf of Federico Mariani

…n runs

-nsu sets the Maven session update policy to never, which Maven Resolver
applies to release repositories too. Version ranges in a starter's
dependency tree were therefore resolved against whatever metadata the
shared local repository cached, and CamelOpenfeatureIT failed on builds35
once flagd 0.15.0 required flagd-core [3.0.0,4.0.0).
@Croway
Croway requested review from davsclaus and gzurowski November 3, 2026 10:56
@Croway
Croway merged commit 77c7fb4 into apache:main Nov 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant