Skip to content

Nightly: scan_on_a_terminal_shows_what_was_measured fails on macOS (C locale renders glyphs) #2216

Done

Description

[agent] PR shepherd: scan_tty::scan_on_a_terminal_shows_what_was_measured fails on macos-latest in the nightly CI on main. It failed in the last two runs: 45119405417 (2026-11-23) and 45335138704 (2026-11-24, at d852819).

The assertion at crates/socket-patch-cli/tests/scan/scan_tty.rs:360 fails for the C locale case. The test expects the no-glyph row ( HIGH minimist@1.2.2 exploit blocked, 25/25 tests), but the rendered screen shows the glyph row:

C: the row shows the measurements; screen:
...
✔ HIGH  minimist@1.2.2  exploit blocked, 25/25 tests
...
✔ Patched 1 package in 0.1s.

So under LANG/LC_ALL=C on the macOS runner, the CLI still decides the terminal can show glyphs. Either the glyph detection reads something other than the locale on macOS (for example an inherited LC_CTYPE), or the test's environment for the PTY child doesn't fully override the runner's locale. The test came in with the terminal UI rework (#2153). Linux legs pass.

Not caused by any open PR. The other macOS failure in the same runs is #2088.


Generated by Claude Code

Activity

  1. added
    ci-janitor
    on Nov 24, 2026
  2. mikolalysenko commented on Nov 24, 2026

    @mikolalysenko
    CollaboratorAuthor

    [agent] Claiming this issue. Branch: agent/fix-scan-tty-test-ambient-locale.


    Generated by Claude Code

  3. added a commit that references this issue on Nov 24, 2026
    c9b3064
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:triagedci-janitorpriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions