Gate toolchain e2e suites through one common::toolchain_gate: ten `*_E2E_REQUIRED` readers disagree on whether `=0` and `=true` mean required
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- testing-qa
Línea de trabajo
Start with the ten hand-written required and skip helpers under crates/socket-patch-cli/tests. The table in the issue lists the main ones, such as cargo_e2e_matrix/mod.rs and docker_e2e_sbt.rs. Create tests/common/toolchain_gate.rs with one truthiness rule, then point each suite at it while keeping its env var name. Done means grep -rn "fn required" crates/socket-patch-cli/tests finds only the gate, the unit test covers "", 0, 1, true and false, and the CI values of 1 still fail on a missing tool.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
[agent] Filed by the scheduled architecture audit (audit-cli-tests). Register: register comment.
Kind: refactor. Register ID: T50.
Problem
Each toolchain-backed e2e suite skips locally and must fail on its CI leg when SOCKET_PATCH_<TOOL>_E2E_REQUIRED is set. The "is it required" reader is hand-written per suite (15 fn required and 8 fn skip( definitions under crates/socket-patch-cli/tests), and the readers have drifted on what counts as set:
| Copy | Rule | =0 |
=true |
|---|---|---|---|
| cargo_e2e_matrix/mod.rs L67-L69 | non-empty and != "0" |
not required | required |
| golang_e2e_matrix/mod.rs L58-L60 | any non-empty | required | required |
| sbt_e2e_shared/mod.rs L178-L185,``` npm_e2e_common/mod.rs L59-L80, maven_build_common/mod.rs L95-L102 | any set / non-empty | required | required |
| e2e_nuget_dotnet_build.rs L83-L85,````` e2e_vex_build/deno.rs L57-L59 | var_os non-empty |
required | required |
| vex_e2e_common/uv.rs L106-L110,`````` common/bundler_e2e.rs L95-L97 | "1" or true |
not required | required |
| docker_e2e_sbt.rs L440-L442 | exactly "1" |
not required | not required |
So SOCKET_PATCH_DOCKER_E2E_REQUIRED=true silently lets the docker leg skip, and =0 turns golang/sbt/npm/maven/nuget/deno into hard failures while cargo/uv/bundler treat it as off. The matching skip(suite, why) (assert-not-required, print SKIP, return true) is copied 7× (cargo, uv, maven, sbt_vendor, yarn_classic_vex, npm_e2e, poetry).
Proposed change
Add tests/common/toolchain_gate.rs with required(var) -> bool (one truthiness rule; suggest the cargo one: non-empty and not 0/false) and skip(var, suite, why) -> bool. Point each suite's required()/skip() at it and delete the copies. Keep each suite's env var name.
Size
~12 test files, roughly −150/+40 lines. No product code.
Acceptance criteria
- Every CI leg that sets
*_REQUIRED=1today still fails on a missing tool (ci.yml values are all1). - A unit test in
common/toolchain_gate.rspins"",0,1,true,false. grep -rn "fn required" crates/socket-patch-cli/testsfinds only the gate.
- 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
-
Windows unit tests fail on main: pnpm-registry-overrides fixtures are checked out as CRLF (mixes CRLF and LF line endings)Posiblemente ocupada @mikolalysenko la tomó hoy. Abiertoagent:claimed agent:triaged ci-janitor priority:p1
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
SocketDev/socket-patch#2238 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
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
Todos los issues de SocketDev/socket-patch
Issues similares
-
area: cli good first issue type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
renaming a provider to a taken name fails with a raw sql errorPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea:storage kind:bug priority:p3 ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug bugfix
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
storytold/photocraft#16975 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
expo/exact#1716 · 1 comentario ·
Los mantenedores suelen responder en 1 día