Skip to content

Feat/4.18.3 and 4.21 recipes#110

Closed
JinyuChen97 wants to merge 5 commits into
apache:mainfrom
JinyuChen97:feat/4.18.3-and-4.21-recipes
Closed

Feat/4.18.3 and 4.21 recipes#110
JinyuChen97 wants to merge 5 commits into
apache:mainfrom
JinyuChen97:feat/4.18.3-and-4.21-recipes

Conversation

JiriOndrusek and others added 4 commits June 10, 2026 09:49
This commit adds comprehensive upgrade recipes for Apache Camel 4.18.3 LTS and 4.21.0:

**4.18.3 LTS Support:**
- Add 4.18.3.yaml and 4.18.3LTS.yaml with 20 header rename recipes
- Add CamelUpdate418_3Test with full test coverage (20 tests)
- Add CamelUpdate418LtsTestSuite for test organization
- Add v4_18_3 to CamelTestUtil.CamelVersion enum
- Include 4.18.3 in latest.yaml recipe list

**4.21.0 Enhancements:**
- Complete 4.21.yaml with all recipe definitions
- Add 5 RemoveDependency recipes for removed components:
  - camel-stomp, camel-aws-xray, camel-guava-eventbus, camel-grape, camel-elytron
- Add 2 import removal recipes:
  - RemoveReifierStrategyImport
  - RemoveZooWordEmbeddingPredictorImport
- Update CamelUpdate421Test with 30 tests total
- Refactor test structure to reuse 4.18.3 tests where applicable

**Documentation:**
- Add comprehensive 4.18.3 migration coverage table to release_notes.adoc
- Update 4.21.0 table with implementation status
- Mark implemented recipes as "✅ Full"

**Shared Recipes:**
Most recipes in 4.18.3 are header renames that were introduced in 4.18.x
maintenance releases and later adopted in 4.21.0. These recipes include
ModuleHasDependency preconditions to prevent false positives.

Co-Authored-By: Jiri Ondrusek <ondrusek.jiri@gmail.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Changed from "⚠️ TODO-full" to "❌ None | Deprecation notice"
- Confirmed with maintainers that deprecation notice is the correct approach

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
All recipes include comprehensive tests. Test results:
CamelUpdate421Test: 37 tests passing
CamelUpdate418_3Test: 23 tests passing
CamelUpdate418LtsTestSuite: 29 tests run, 1 skipped

Implementation status:
4.21.0: 36/36 recipes (100%) — 10 Full + 26 Partial
4.18.3: 25/25 recipes (100%) — 2 Full + 23 Partial
Grand Total: 61/61 recipes (100%)

Updated release_notes.adoc to reflect all completed recipes.
Added IMPLEMENTATION_VERIFICATION.md for tracking.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@JiriOndrusek

Copy link
Copy Markdown
Contributor

Thanks @JinyuChen97 !

Remove generic header names from 4.18.0 and 4.18.3 recipes to prevent
false positives in production migrations. Only automate headers with
clear component-specific prefixes.

4.18.0 Changes:
- Delete upgradeCxfHeaders recipe (operationName, operationNamespace too generic)
- Reduce upgradeSalesforceHeaders from 37 to 16 headers (keep only sObject*, apex*, pkChunking*)

4.18.3 Changes:
- Delete 6 recipes: PDF, ArangoDB, JT400, Mail, Milo, OpenSearch (all headers too generic)
- Reduce upgradeLuceneHeaders to RETURN_LUCENE_DOCS only (exclude generic QUERY)
- Reduce upgradeElasticsearchHeaders to enableDocumentOnlyMode only
- Reduce upgradeElasticsearchRestClientHeaders (remove INDEX_NAME)
- Reduce upgradeOpenstackHeaders (remove generic *Id/*Name, keep cloud-specific)
- Reduce upgradeWeb3jHeaders (remove 14 generic headers, keep 18 blockchain-specific)

Test Updates:
- CamelUpdate418Test: 5 tests (deleted CXF test, updated Salesforce test)
- CamelUpdate418_3Test: 16 tests (deleted 11 tests for removed/reduced recipes)
- CamelUpdate421Test: 30 tests (deleted 7 test references)

All tests passing. Documentation updated.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@JiriOndrusek

Copy link
Copy Markdown
Contributor

superseded by #111

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.

2 participants