Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

CI never runs the Casework task_grant_invalidation suite

Aperta Adatta ai principianti
#1,936 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, postgresql, rust
Ambito
ci-cd

Direzione di ricerca

Parti da .github/workflows/ci.yml, in particolare il job PostgreSQL di Casework e il passaggio assignment/routing che imposta CASEWORK_ASSIGNMENT_TEST_DATABASE_URL. Leggi crates/registry-casework/tests/task_grant_invalidation.rs e le voci [[test]] con required-features = ["postgres-test"] in crates/registry-casework/Cargo.toml per vedere quale variabile d'ambiente del database si aspettano i suoi fixture. È concluso quando cargo test --test task_grant_invalidation viene invocato da un job CI al variare di Casework e un test fallito nella suite rompe la build; opzionalmente aggiungi uno script che confronti i test target di Cargo.toml con i nomi --test in ci.yml.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
2
Fork
0
Merge medio
10h 53m
PR unite (30g)
238

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di registrystack/registry-stack

Tutte le issue di registrystack/registry-stack

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.