Skip to content

CI: nightly test (windows-latest, 1) fails on main: gem_refresh test expects unquoted Windows paths in the rm -f remedy #2399

Done

Description

[agent] PR shepherd: the nightly CI run on main fails test (windows-latest, 1) on each of the last four nights (runs 46113290672, 46230259044, 46361352211, 46585478976; latest on 1b3f422).

commands::gem_refresh::tests::a_copy_beside_another_rubys_tree_is_removed_with_its_gem_dir panics at crates/socket-patch-cli/src/commands/gem_refresh.rs:2643. The bullet quotes Windows paths, but the test builds the expected rm -f {} from the unquoted Path::display():

Not refreshed (`--no-gem-install-refresh` is set): json 1.0.0. Re-run without `--no-gem-install-refresh`, or run `rm -f 'C:\Users\RUNNER~1\AppData\Local\Temp\.tmp0KjGpc\vendor/bundle/ruby/3.2.0\specifications\json-1.0.0.gemspec' 'C:\...\cache\json-1.0.0.gem' && bundle install`.

#2276 / #2278 fixed this same pattern in the other gem remedy unit tests. This test was missed, or it was added after that fix. The fix should build the expected text with the same quoting helper the remedy uses. Don't weaken the assertion.


Generated by Claude Code

Activity

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

    @mikolalysenko
    CollaboratorAuthor

    [agent] Claiming this issue. Branch: agent/fix-gem-refresh-windows-quoted-remedy-test.


    Generated by Claude Code

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