breg: two test targets fail to build with postgres-test but without tooling
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- postgresql, rust
- Área
- backend, build-system, testing
Línea de trabajo
Comience con crates/registry-breg/tests/postgres_startup.rs:858, crates/registry-breg/src/startup.rs:588 y crates/registry-breg/tests/package_change_plan.rs:46-47 para comparar sus feature gates y usos. Ejecute cargo clippy -p registry-breg --features postgres-test --all-targets -- -D warnings y, a continuación, verifique que la combinación documentada postgres-test,tooling también pase.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
cargo clippy --locked --keep-going -p registry-breg --features postgres-test --all-targets -- -D warnings fails on current main. Two test targets assume the tooling feature without gating on it:
crates/registry-breg/tests/postgres_startup.rs:858callsPreparedServer::runtime_pool_for_test, whichcrates/registry-breg/src/startup.rs:588defines only under#[cfg(all(feature = "postgres-test", feature = "tooling"))]. That target is gated only onpostgres-test, so it fails withE0599(a compile error, not only a lint).crates/registry-breg/tests/package_change_plan.rs:46-47declaresINSTANCEandDATABASEunconditionally, but onlytooling-gated code uses them, so-D warningsreports them as dead code.
Impact
Low. The documented and CI commands always add tooling (products/breg/scripts/validate_product.py, products/breg/scripts/test-postgres.sh), so CI is green. A contributor who runs the PostgreSQL suite or clippy with --features postgres-test alone gets a build failure in files they did not touch.
Suggested fix
Gate the runtime_pool_for_test call (or the test that uses it) on feature = "tooling", and gate the two constants the same way as their users. Then check that cargo clippy -p registry-breg --features postgres-test --all-targets -- -D warnings and the documented postgres-test,tooling combination both pass.
- Lenguaje dominante
- Rust
- Estrellas
- 2
- Forks
- 0
- Merge medio
- 9 h 5 min
- PR fusionados (30 d)
- 248
Preparar el entorno
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 registrystack/registry-stack
-
agent-ready area:breg bug criticality:p3 triage:needs-implementation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
registrystack/registry-stack#1941 ·
Los mantenedores suelen responder en 1 día
-
area:casework bug criticality:p2 rust
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
registrystack/registry-stack#1936 ·
Los mantenedores suelen responder en 1 día
-
area:casework bug criticality:p3 rust
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
registrystack/registry-stack#1934 ·
Los mantenedores suelen responder en 1 día
-
area:release area:scheduling bug criticality:p3 triage:needs-implementation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
registrystack/registry-stack#1909 ·
Los mantenedores suelen responder en 1 día
-
area:release bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
registrystack/registry-stack#1874 ·
Los mantenedores suelen responder en 1 día
Todos los issues de registrystack/registry-stack
Issues similares
-
test(executor_l0): assert execute() TaskOutcome, not only bus events / 断言 execute() 返回的 TaskOutcomeAbiertotype:debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
skaiy/wild_agentos#425 ·
Los mantenedores suelen responder en 1 día
-
Default-import note suggests `import * as process` for velt:process, which does not name the builtinAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug ticket
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cratestack/cratestack#1154 ·
Los mantenedores suelen responder en 1 día
-
status:needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
agentic-os-org/ANOLISA#6742 · 1 comentario ·
Los mantenedores suelen responder en 1 día