CAMEL-23643: Add service version to test-infra metadata#23633
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… and show in TUI Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🧪 CI tested the following changed modules:
✅ POM dependency changes: targeted tests included Modules affected by dependency changes (11)
💡 Manual integration tests recommended:
Build reactor — dependencies compiled but only changed modules were tested (11 modules)
|
apupier
left a comment
There was a problem hiding this comment.
I think we need to update the job which is creating the PR to upgrade the container
I do not undertand |
When this job is running https://github.com/apache/camel/blob/main/.github/workflows/check-container-versions.yml , it is updating the value in the container.properties file (see fro instance #23619 ). With this PR, it should also update the value in the catalog/[...]/test-infra/metadata.json file, isn't it? |
|
Good point @apupier — tracked in CAMEL-23648 to update the Claude Code on behalf of Claus Ibsen |
Summary
serviceVersionfield to@InfraServiceannotation and generatedmetadata.jsoncontainer.properties(65 container-based services)META-INF/infra-service.propertiesGA hints (6 embedded/special services: FTP, FTPS, SFTP, Hazelcast, Ignite, SMB)How it works
Three-tier version detection in
CamelTestInfraGenerateMetadataMojo:@InfraService(serviceVersion = "...")for manual specificationcontainer.propertiesfrom dependency JARs, matches alias to image key, extracts version from Docker image tag (handles cross-module properties, multi-image modules like Kafka, RocketMQ's separate.versionpattern)META-INF/infra-service.propertiesfiles that map service alias to MavengroupId:artifactId, then resolves the artifact version from the dependency tree. Zero maintenance on version bumps.Test plan
camel-package-maven-pluginandcamel-test-infra-allserviceVersionin generatedmetadata.jsonClaude Code on behalf of Claus Ibsen
🤖 Generated with Claude Code