Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

CI never runs the Casework task_grant_invalidation suite

Abierto Apto para principiantes
#1,936 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
78/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, postgresql, rust
Área
ci-cd

Línea de trabajo

Comienza con .github/workflows/ci.yml, específicamente el job de PostgreSQL de Casework y el paso de assignment/routing que establece CASEWORK_ASSIGNMENT_TEST_DATABASE_URL. Lee crates/registry-casework/tests/task_grant_invalidation.rs y las entradas [[test]] con required-features = ["postgres-test"] en crates/registry-casework/Cargo.toml para ver qué variable de entorno de base de datos esperan sus fixtures. Listo cuando un job de CI invoque cargo test --test task_grant_invalidation ante cambios en Casework y un test fallido de la suite rompa el build; opcionalmente, añade un script que compare los test targets de Cargo.toml con los nombres --test en ci.yml.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area:casework bug criticality:p2 rust

Problem

crates/registry-casework/tests/task_grant_invalidation.rs is a PostgreSQL suite (required-features = ["postgres-test"]) that proves task grants are revoked when authority is lost:

  • directory_loss_is_permanent_but_atomic_replacement_preserves_grants
  • holder_and_proposal_loss_are_permanent_but_revision_churn_is_allowed
  • item_erasure_removes_selector_bearing_grant_records

No job in .github/workflows/ci.yml names --test task_grant_invalidation, so CI never builds or runs it. A regression in grant revocation would merge unnoticed. The suite passes locally (3 tests, run against a disposable database while verifying #1933).

Proposal

Run it in the Casework PostgreSQL job. It reads CASEWORK_ASSIGNMENT_TEST_DATABASE_URL, like the "assignment and routing" step, so it can join that step if its fixture isolates itself from the other two suites; otherwise give it its own database the way the review and task-approval steps do.

Also worth a one-off check: whether any other [[test]] target in a product crate with required-features = ["postgres-test"] is missing from CI. A small script comparing the targets declared in Cargo.toml with the --test names in ci.yml would catch the next one.

Done when

CI runs task_grant_invalidation on every change that touches Casework, and fails when a test in it fails.

Lenguaje dominante
Rust
Estrellas
2
Forks
0
Merge medio
9 h 5 min
PR fusionados (30 d)
248

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de registrystack/registry-stack

Todos los issues de registrystack/registry-stack

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.