Windows unit tests fail on main: pnpm-registry-overrides fixtures are checked out as CRLF (mixes CRLF and LF line endings)
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- git, rust
- Área
- testing-qa
Línea de trabajo
Empieza leyendo .gitattributes junto a las entradas existentes pnpm-hosted/** y redirect/** -text, luego inspecciona el árbol de fixtures bajo crates/socket-patch-core/tests/fixtures/pnpm-registry-overrides/. Las pruebas que fallan están en crates/socket-patch-core/src/formats/pnpm/registry_alias.rs y crates/socket-patch-core/src/hosted/engine.rs; reprodúcelas mediante el job test (windows-latest, 1) o un checkout de Windows. Terminado cuando esas siete pruebas pasen con fixtures exactos byte a byte.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
[agent] PR shepherd: the test (windows-latest, 1) job fails on main at e685fb145 (run 45555390805), and the same 7 tests fail on every PR that runs the Windows tests (for example #2234, job 139041204826). It turns ci-ok (windows only) red. It is separate from #2235, which is the e2e pnpm 11 test.
test formats::pnpm::named_registries::tests::the_planned_file_is_the_one_the_fixtures_were_locked_with ... FAILED
test formats::pnpm::registry_alias::tests::shapes_outside_the_fixtures_are_refused ... FAILED
test formats::pnpm::registry_alias::tests::the_overrides_section_holds_exactly_the_wanted_pins ... FAILED
test formats::pnpm::registry_alias::tests::the_routed_shape_is_what_pnpm_writes ... FAILED
test formats::pnpm::registry_alias::tests::unpinning_one_release_leaves_the_rest ... FAILED
test formats::pnpm::registry_alias::tests::unpinning_restores_the_plain_shape ... FAILED
test hosted::engine::tests::the_registry_route_writes_what_pnpm_writes ... FAILED
test result: FAILED. 8059 passed; 7 failed
panicked at crates\socket-patch-core\src\formats\pnpm\registry_alias.rs:1216:74:
a v9 lock: "mixes CRLF and LF line endings"
panicked at crates\socket-patch-core\src\hosted\engine.rs:8633:13:
assertion `left == right` failed: both-versions
left: Some("packages:\n - '.'\nnamedRegistries:\n ...")
right: Some("packages:\r\n - '.'\r\nnamedRegistries:\r\n ...")
Cause. These tests read the tests/fixtures/pnpm-registry-overrides golden fixtures that #2167 (5d8378e) added. .gitattributes marks pnpm-hosted/** and redirect/** as -text, but not pnpm-registry-overrides/**. On a Windows checkout git converts those fixtures to CRLF. The parser then sees mixed line endings, and the byte-exact comparisons fail.
Likely fix. Add crates/socket-patch-core/tests/fixtures/pnpm-registry-overrides/** -text to .gitattributes (with a comment like the existing ones), then confirm with a Windows run of test (windows-latest, 1). The CLI itself is probably fine: a real pnpm lock on Windows has one consistent line ending.
Generated by Claude Code
- Lenguaje dominante
- Rust
- Estrellas
- 9
- Forks
- 2
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 309
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SocketDev/socket-patch
-
agent:triaged arch-audit priority:p3 refactor
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
SocketDev/socket-patch#1860 ·
Los mantenedores suelen responder en 1 día
-
agent:triaged arch-audit priority:p3 refactor
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
SocketDev/socket-patch#1838 ·
Los mantenedores suelen responder en 1 día
-
Nightly: pnpm11_registry_route_is_cleaned_up_when_a_patch_is_not_needed fails on Windows (pnpm records the RUNNER~1 short path as a second importer)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoagent:triaged ci-janitor priority:p1
Dificultad 3/5 Medio día Aptitud para principiantes 42/100
SocketDev/socket-patch#2235 ·
Los mantenedores suelen responder en 1 día
-
Agent mode reports a gem whose installed file was edited as "not installed on this host" / "not found on disk", `apply --check` says to run `apply`, and `rollback` exits 1 with "modified after patching" on every runPosiblemente ocupada @mikolalysenko la tomó hoy. Abiertoagent:claimed agent:triaged bug bughunt pm:bundler priority:p1 ux
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
SocketDev/socket-patch#2231 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Behind a private gem mirror a hosted gem pin cannot be undone: `rollback` and `remove` refuse on a `CHECKSUMS` lock, and without `CHECKSUMS` `rollback` leaves the patched builds installed with no warning that names themPosiblemente ocupada @mikolalysenko la tomó hoy. Abiertoagent:claimed agent:triaged bug bughunt pm:bundler priority:p1
Dificultad 4/5 3-5 días Aptitud para principiantes 12/100
SocketDev/socket-patch#2230 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de SocketDev/socket-patch
Issues similares
-
[Bug] StreamLifecycleConfig clamps post-TTFT stream timeouts to remaining admission budgetPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
lbjlaq/Antigravity-Manager#4063 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
farion1231/cc-switch#9981 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bot:ai-assisted component:indexer status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
midnightntwrk/midnight-indexer#1834 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día