fix: Change YAML literal scalars to folded scalars to fix integration test timeouts#2833
Merged
Conversation
Contributor
Author
|
Comparing the test logs in CI from this PR to the state of the branch prior, it looks like this fixes 3 tests - the number of failures went from 17 to 14, and the three failures below disappeared.
|
oscerd
approved these changes
May 15, 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.
Summary
Fixes integration test timeouts by changing YAML literal block scalars (
|) to folded scalars (>-) in test configuration files.Problem
The
rest-openapi-sink-add-pet-testwas timing out after 123 seconds because the Camel JBang process failed to start when multi-line JSON strings were passed as command-line arguments using YAML's literal block scalar (|).When YAML literal scalars are used for system properties, the newlines are preserved in the resulting command-line arguments, causing shell parsing errors that prevent the Camel integration from starting.
Solution
Changed all instances of
value: |tovalue: >-(folded scalar with trailing newline stripped) in test files. This folds multi-line content into single-line strings, which:Changes
Updated 13 test configuration files across:
All changes are purely YAML formatting - the actual JSON content remains identical.
Test Results
Before
rest-openapi-sink-add-pet-testtiming out after 123s)After
No Regressions
Background
YAML Scalar Comparison:
|): Preserves all newlines → multi-line command arguments → shell parsing fails>-): Joins lines with spaces → single-line arguments → shell parsing succeedsThis is a preventive fix that also protects other tests from similar timeout issues in the future.
🤖 Generated with Claude Code