fix: avoid stderr/stdout mixing in single_e2e.sh chart_info parsing#881
Merged
MaciejKaras merged 1 commit intomasterfrom Mar 11, 2026
Merged
fix: avoid stderr/stdout mixing in single_e2e.sh chart_info parsing#881MaciejKaras merged 1 commit intomasterfrom
MaciejKaras merged 1 commit intomasterfrom
Conversation
MCK 1.7.1 Release NotesOther Changes
|
mircea-cosbuc
approved these changes
Mar 10, 2026
fealebenpae
approved these changes
Mar 10, 2026
3ba251f to
dba8b30
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dba8b30 to
c0c77f9
Compare
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
scripts/evergreen/e2e/single_e2e.shused2>&1when capturingchart_infofromoci_chart_info.py. This caused Python'surllib3 RequestsDependencyWarning(emitted on stderr) to be prepended to the JSON stdout, producing a mixed string like:When this string was then piped into
jq, it failed with:jq: parse error: Invalid numeric literal at line 1, column 102Before:
After:
Removing
2>&1means:chart_infoonly ever contains clean JSON stdout||triggersjqextraction has explicit error handling that was missing beforeProof of Work
Tested with
--build-scenario patch:chart_infocontains clean JSONregistry,repository,region,version_prefix) parse correctlyError path verified: passing an invalid scenario prints the error from stderr, then the context echo fires — no mixed content in variables.
Checklist
skip-changeloglabel if not needed