[BUG] Restarting a run leaves GcpInstance, so CI never re-queues it
Maintainer thường phản hồi trong vòng 6 ngà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
- 30/100
Hướng nghiên cứu
Read the restart_run API endpoint and the restart_test UI path — both clear TestProgress/results but leave the GcpInstance row behind. Then look at the gcp_instance / start_test logic that skips any test already holding a GcpInstance, and confirm that is why cron never re-queues after a restart. The fix is deleting GcpInstance rows for the test_id in both restart paths, with regression tests covering restart on API and UI when an instance row exists. Note an open linked pull request (#1225) already addresses this, so coordinate before starting.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
restart_run (API) and restart_test (UI) clear TestProgress / results so the run looks pending again. They do not delete the GcpInstance row.
gcp_instance / start_test treat any test with a GcpInstance as already running and skip it. After restarting a running or stuck run, cron therefore never starts a new VM.
Expected
Restart clears the instance reservation so the same test id can be picked up again. The old VM, if still present, becomes orphaned and can be cleaned up by the existing orphan scanner.
Actual
The GcpInstance row stays. start_test logs that the test already has a GCP instance and skips starting it.
Fix
Delete GcpInstance rows for that test_id in both restart paths.
Tests
Regression coverage on API and UI restart when an instance row exists.
- Ngôn ngữ chính
- Python
- Star
- 30
- Fork
- 87
- Merge trung bình
- 4 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 CCExtractor/sample-platform
-
[BUG] Completed and canceled progress states are not treated as terminalCó thể đã có người làm @NaitikVerma6776 đã nhận 32 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
CCExtractor/sample-platform#1194 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
[BUG] Missing timeouts on 5 outbound HTTP calls outside mod_ci (follow-up to #943)Có thể đã có người làm @devnishantt đã nhận 13 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 84/100
CCExtractor/sample-platform#1192 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
CCExtractor/sample-platform#1082 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
-
[Feature Request] Improve comparison algorithm to handle frame offsets intelligently (GSoC Qualification)Có thể đã có người làm @DYHARDx đã nhận 199 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
CCExtractor/sample-platform#1079 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
CCExtractor/sample-platform#1062 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày
Tất cả issue của CCExtractor/sample-platform
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
gradio-app/gradio#13964 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 93/100
BSData/horus-heresy-3rd-edition#3232 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jbacalso24/mimry#123 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
p:3-mid pydanty:bug pydanty:is-working
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
pydantic/pydantic-ai#10153 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue priority: medium size: S testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
cubrid-lab/cubrid-cookbook-python#316 ·
Maintainer thường phản hồi trong vòng 1 ngày