镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Closed

Description

@NaitikVerma6776

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.

Activity

  1. added a commit that references this issue on Oct 19, 2026
    dd68424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions