Skip to content

fix(ruby): decode Bundler output without hiding build errors - #985

Open
narayana006 wants to merge 1 commit into
aws:developfrom
narayana006:fix/ruby-bundler-output-decoding
Open

narayana006 wants to merge 1 commit into
aws:developfrom
narayana006:fix/ruby-bundler-output-decoding

Conversation

@narayana006

Copy link
Copy Markdown

Issue #, if available: Independently reproduced.

Description of changes

SubprocessBundler.run() decodes stdout/stderr as strict UTF-8. Locale-encoded or undecodable output can raise UnicodeDecodeError, masking BundlerExecutionError or aborting the missing-Gemfile path after cleanup. Reuse the existing safe locale-aware decoder for both streams and successful output, preserving whitespace handling and stdout/stderr ordering.

Description of how you validated changes

  • Six regressions use real process pipes with a Python stand-in emitting controlled bytes: five fail before the fix; all six pass afterward. They cover CP1252, malformed UTF-8, error output, missing-Gemfile cleanup and unchanged ASCII handling.
  • make pr on Python 3.10.20: 1,221 tests and 64 subtests passed; coverage 95.54%; Ruff and Black passed. RUST_LOG was unset because an inherited value also fails the existing Rust logging test on unchanged upstream.
  • Affected unit/functional tests on Python 3.15.2: 35 passed.
  • Ruby/gem-index integration and full OS/runtime CI matrix not run locally; no AWS resources used.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@narayana006
narayana006 requested a review from a team as a code owner November 30, 2026 21:17
@github-actions github-actions Bot added pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. area/workflow/ruby_bundler and removed pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant