Fix CI parse_errors.sh and replace deprecated AvailablePortFinder#1745
Merged
cunningt merged 2 commits intoapache:mainfrom Apr 13, 2026
Merged
Fix CI parse_errors.sh and replace deprecated AvailablePortFinder#1745cunningt merged 2 commits intoapache:mainfrom
cunningt merged 2 commits intoapache:mainfrom
Conversation
oscerd
approved these changes
Apr 11, 2026
ca1093c to
3daae91
Compare
1. **Fix parse_errors.sh script**: Added error handling to prevent CI failures when processing surefire test reports. The script now: - Uses set +e to handle errors gracefully - Checks file existence and readability before processing - Only outputs when actual failures are found (reduced log noise) - Properly escapes grep patterns and suppresses errors 2. **Replace deprecated AvailablePortFinder.getNextAvailable()**: Updated 18 test files to use AvailablePortFinder.find().getPort() instead. Note: SftpSimpleProduceThroughProxyTest kept using getNextAvailable() as the test is already failing on main. 3. **Add CamelVirtualThreadsIT for local verification**: Created an integration test to verify virtual threads work correctly. The test runs in a forked JVM via maven-failsafe-plugin during `mvn verify`, but only when not in CI (using a profile that checks ci.env.name). This avoids ThreadType static initialization timing issues in CI. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
3daae91 to
eaef7fd
Compare
Croway
approved these changes
Apr 12, 2026
Croway
reviewed
Apr 12, 2026
Croway
reviewed
Apr 12, 2026
Croway
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit was started to replace some deprecated API used in tests but kind of morphed because there were a lot of unrelated issues with running the incremental tests in CI. Here are the changes