Skip to content

Fix LoggerPatch CI failure; bump aws_lambda_ric to 3.2.0#1133

Merged
myronmarston merged 1 commit intomainfrom
myron/fix-logger-patch-ci-failure
Apr 16, 2026
Merged

Fix LoggerPatch CI failure; bump aws_lambda_ric to 3.2.0#1133
myronmarston merged 1 commit intomainfrom
myron/fix-logger-patch-ci-failure

Conversation

@myronmarston
Copy link
Copy Markdown
Collaborator

@myronmarston myronmarston commented Apr 16, 2026

Summary

  • GHA runner image ubuntu24/20260413.86 (kernel 6.17.0-1010-azure) causes IO.new(fd, 'wb') to raise Errno::EBADF in forked subprocesses, breaking TelemetryLogger.new("1") which silently skips applying LoggerPatch
  • Rework install_aws_lambda_runtime_monkey_patches to use the 3.2.0 API: TelemetryLogger.from_env applies LoggerPatch without any IO; telemetry sink and mutate_kernel_puts set up manually
  • Bump aws_lambda_ric from ~> 3.1 to ~> 3.2

Test plan

  • All 5 lambda gem specs pass locally (112 examples)
  • 100% line+branch coverage via script/run_gem_specs
  • Lint clean
  • CI passes (the whole point of this PR)

🤖 Generated with Claude Code

GHA runner image ubuntu24/20260413.86 (kernel 6.17.0-1010-azure)
causes IO.new(fd, 'wb') to raise Errno::EBADF in forked subprocesses.
TelemetryLogger#initialize silently rescues this and skips applying
LoggerPatch, failing our compatibility assertion.

Rework install_aws_lambda_runtime_monkey_patches to use the 3.2.0 API:
- TelemetryLogger.from_env applies LoggerPatch without any IO
- Set up telemetry sink on $stdout manually
- Apply mutate_kernel_puts via allocate.send (bypasses constructor)
- Assert both mutations applied; verify Logger+LoggerPatch compatibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@myronmarston myronmarston merged commit ad16d62 into main Apr 16, 2026
26 checks passed
@myronmarston myronmarston deleted the myron/fix-logger-patch-ci-failure branch April 16, 2026 16:08
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.

2 participants