Retire parser-gem frozen-string warning filter when upstream fixes it #489

Open
opened 2026-08-23 13:48:44 +00:00 by jared · 1 comment
Owner

Context

parser-3.3.12.0 Buffer#reencode_string (buffer.rb:97) mutates literal strings, spamming Ruby 4.0 deprecation warnings under RUBYOPT=-w. A scoped Warning filter was added in plugins/os-sdlc/tests/test_helper.rb on 2026-08-23. When whitequark/parser ships a Ruby-4.0-compatible release, upgrade and delete the filter.

Tasks

  • Check for a parser release > 3.3.12.0 fixing the literal mutation.
  • Upgrade, remove ParserFrozenStringWarningFilter from test_helper.rb, verify RUBYOPT=-w run stays clean.

Acceptance criteria

no filter needed; warning wall absent on verbose runs.

Origin

  • Trigger: manual full-suite run of plugins/os-sdlc tests on 2026-08-23 (77.9s, 1 failure) prompting a root-cause probe session
  • Improvised this session: scoped Warning.warn filter in test_helper.rb
  • Chain: warning wall ← parser gem mutating literal strings ← no Ruby-4.0-aware parser release — UPSTREAM-TOOL (parser 3.3.12.0)
  • Root candidate: this ticket
## Context parser-3.3.12.0 Buffer#reencode_string (buffer.rb:97) mutates literal strings, spamming Ruby 4.0 deprecation warnings under RUBYOPT=-w. A scoped Warning filter was added in plugins/os-sdlc/tests/test_helper.rb on 2026-08-23. When whitequark/parser ships a Ruby-4.0-compatible release, upgrade and delete the filter. ## Tasks - [ ] Check for a parser release > 3.3.12.0 fixing the literal mutation. - [ ] Upgrade, remove ParserFrozenStringWarningFilter from test_helper.rb, verify RUBYOPT=-w run stays clean. ## Acceptance criteria no filter needed; warning wall absent on verbose runs. ## Origin - Trigger: manual full-suite run of plugins/os-sdlc tests on 2026-08-23 (77.9s, 1 failure) prompting a root-cause probe session - Improvised this session: scoped Warning.warn filter in test_helper.rb - Chain: warning wall ← parser gem mutating literal strings ← no Ruby-4.0-aware parser release — UPSTREAM-TOOL (parser 3.3.12.0) - Root candidate: this ticket
Author
Owner

Frozen 2026-08-23: upstream parser gem is still 3.3.12.0 (2026-07-16); no release, issue, or PR fixes the Buffer#reencode_string literal mutation. Nothing actionable until a newer parser ships. Filter in tests/test_helper.rb stays in place.

Frozen 2026-08-23: upstream parser gem is still 3.3.12.0 (2026-07-16); no release, issue, or PR fixes the Buffer#reencode_string literal mutation. Nothing actionable until a newer parser ships. Filter in tests/test_helper.rb stays in place.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#489
No description provided.