Flaky test: a_run_whose_retained_definition_does_not_restore_is_held_alone reopens the deployment while the audit sink is still locked
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
Bắt đầu với bài kiểm thử thất bại a_run_whose_retained_definition_does_not_restore_is_held_alone trong crates/registry-coordinator/tests/deployment_postgres.rs, đặc biệt là phần teardown và lời gọi deployment::open_ctl gần dòng 5665. Chạy bài kiểm thử runtime PostgreSQL của Coordinator và kiểm tra cách bài kiểm thử có thể chờ khóa audit sink trước đó được giải phóng hoặc thử lại open_ctl khi gặp sink-locked trong một khoảng thời gian giới hạn. Hoàn thành khi bài kiểm thử xử lý được race trong teardown mà không nới lỏng việc sản phẩm từ chối.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 2
- Fork
- 0
- Merge trung bình
- 9 giờ 48 phút
- Pull request đã merge (30 ngày)
- 151
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của registrystack/registry-stack
-
area:breg enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
registrystack/registry-stack#2765 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
registrystack/registry-stack#2761 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
registrystack/registry-stack#2743 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
macOS contributor gates: Messaging config tests fail under the symlinked macOS temporary directoryĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
registrystack/registry-stack#2704 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
registrystack/registry-stack#2698 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của registrystack/registry-stack
Issue tương tự
-
[Bug] 建议把黑白主题设置同步到启动页面Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
AstrBotDevs/AstrBot-desktop#197 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
stackabletech/airflow-operator#898 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
2 advisory ignore entries no longer match anything (`bytes`, `time` already patched in `Cargo.lock`)Có thể đã có người làm @zyl71 đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100