Skip to content

fix: Resolve environment variable substitution for mixed quotes #7433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dol
Copy link

@dol dol commented Jun 19, 2025

Fixes #7429 - Environment variable substitution no longer breaks parsing of YAML values containing both single and double quotes. Values that are not intended for substitution are now parsed correctly as literal strings.

The big difference to the initial environment variable substitution approach is, that it's performing the substitution during the compose stage, rathen then the object construction stage. This give better control of the scalar type and quoting handling.

bLTxRziu4lzVduBr0MsSYttNNelWYY1ecjZTxgOF9Da52km_Z3YMkQ58bQISTdVxtPSSol94fOB60MAPyvZVF3WpUkKyjxwjLV58m4fgO1UBqwkJzs_E5wnKtBcYyD8hO9UQty2datVdRA6ho3TZ7xbrO0_OgQaR4vxOOtR5g_1JEs_RqXlhs5APsw9mDr8ttFAQNVFofhAcrUBKA6FPlvOdyO(1)

@dol dol requested a review from a team as a code owner June 19, 2025 06:13
@dol dol marked this pull request as draft June 19, 2025 07:04
@dol dol force-pushed the fix/7429-env-var-substitution-mixed-quotes branch from 8891732 to 2cbd9a7 Compare June 19, 2025 11:04
Copy link

codecov bot commented Jun 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.79%. Comparing base (3f73f12) to head (e787cc3).
Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7433      +/-   ##
============================================
+ Coverage     89.75%   89.79%   +0.04%     
  Complexity     6980     6980              
============================================
  Files           797      797              
  Lines         21165    21160       -5     
  Branches       2057     2054       -3     
============================================
+ Hits          18996    19000       +4     
+ Misses         1505     1498       -7     
+ Partials        664      662       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dol dol force-pushed the fix/7429-env-var-substitution-mixed-quotes branch 3 times, most recently from cc0f6d5 to 6abb41d Compare June 19, 2025 14:35
@dol dol marked this pull request as ready for review June 19, 2025 14:52
Fixes open-telemetry#7429 - Environment variable substitution no longer breaks parsing
of YAML values containing both single and double quotes. Values that are
not intended for substitution are now parsed correctly as literal strings.
@dol dol force-pushed the fix/7429-env-var-substitution-mixed-quotes branch from 6abb41d to e787cc3 Compare June 19, 2025 20:13
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.

Declarative Config: Environment variable substitution breaks parsing of YAML values with mixed single and double quotes
1 participant