Flaky test: a_run_whose_retained_definition_does_not_restore_is_held_alone reopens the deployment while the audit sink is still locked
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
- 76/100
Direzione di ricerca
Inizia dal test non riuscito a_run_whose_retained_definition_does_not_restore_is_held_alone in crates/registry-coordinator/tests/deployment_postgres.rs, in particolare dal teardown e dalla chiamata a deployment::open_ctl vicino alla riga 5665. Esegui il test runtime PostgreSQL di Coordinator e verifica come il test possa attendere il rilascio del lock dell’audit sink precedente oppure ritentare open_ctl in caso di sink-locked per un tempo limitato. Il lavoro è completato quando il test gestisce questa race durante il teardown senza allentare il rifiuto del prodotto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened
The Coordinator PostgreSQL runtime job failed in a merge group for an unrelated change (#2705, run 44574520469, 19 Nov 2026). The same job passed on that PR's own run.
test a_run_whose_retained_definition_does_not_restore_is_held_alone ... FAILED
panicked at crates/registry-coordinator/tests/deployment_postgres.rs:5665:67:
called `Result::unwrap()` on an `Err` value: CoordinatorError { code: "deployment.refused",
message: "the deployment contract was refused", ...,
suggested_action: Some("restore writable durable audit custody (sink-locked)"), ... }
test result: FAILED. 16 passed; 1 failed; 3 ignored
Likely cause
Just before line 5665 the test aborts the server task (server.abort(); let _ = server.await;), drops the first migration store and calls deployment::open_ctl(&runtime_v2, true). The refusal says the durable audit sink was still locked. That suggests the lock held by the previous store or the aborted server is sometimes released after the reopen begins. This is a teardown ordering race in the test, not a product defect that we have observed outside it.
Suggested fix
Make the reopen wait until the previous holder has released the audit sink lock, for example by waiting for the lock release explicitly or retrying open_ctl on sink-locked for a bounded time in the test only. Do not relax the product's refusal.
Impact
Merge-queue entries that select the Coordinator PostgreSQL suite can be dropped. Rerunning the entry has passed so far.
- Lingua principale
- Rust
- Stelle
- 2
- Fork
- 0
- Merge medio
- 9h 48m
- PR unite (30g)
- 151
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di registrystack/registry-stack
-
area:breg enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
registrystack/registry-stack#2765 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
registrystack/registry-stack#2761 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
registrystack/registry-stack#2743 ·
I maintainer di solito rispondono entro 1 giorno
-
macOS contributor gates: Messaging config tests fail under the symlinked macOS temporary directoryAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
registrystack/registry-stack#2704 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
registrystack/registry-stack#2698 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di registrystack/registry-stack
Issue simili
-
[Bug] 建议把黑白主题设置同步到启动页面Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
AstrBotDevs/AstrBot-desktop#197 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
stackabletech/airflow-operator#898 ·
I maintainer di solito rispondono entro 1 giorno
-
2 advisory ignore entries no longer match anything (`bytes`, `time` already patched in `Cargo.lock`)Forse già presa @zyl71 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100