Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[BUG] Restarting a run leaves GcpInstance, so CI never re-queues it

Đang mở
#1,224 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

@NaitikVerma6776 đang làm issue này rồi.

Từ ngày 4/10/2026.

  • #1225 của @NaitikVerma6776 — đang mở

Đá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
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
gcp, python
Lĩnh vực
backend

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CCExtractor/sample-platform

Tất cả issue của CCExtractor/sample-platform

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.