Skip to content

Flaky on Windows: TestCaptureQuarantinedToolDefinitions_DropsReplacementBeforePersist (stale definition persisted) #1453

Closed

Description

@Dumbris

TestCaptureQuarantinedToolDefinitions_DropsReplacementBeforePersist (internal/runtime/lifecycle_quarantine_capture_test.go:168) fails intermittently on the Windows unit-test leg. It has failed on PR #1427's run and on PR #1448's run (run 36829xxx, 2026-10-01). Neither PR touches internal/runtime quarantine capture.

Error: Expected error with "tool approval not found" in chain but got nil.
Messages: the definition captured before replacement must not be stored
...
Error: Received unexpected error: tool approval not found: quarantined:current_definition

The definition captured before the client replacement was persisted, and the current definition was not. Either the capture and replacement still race on slower runners (a production ordering bug: a stale definition can be stored for review), or the test's synchronisation is timing-based. Investigate under -race -count=50 and with GOMAXPROCS=1, then fix the root cause.

Activity

  1. added
    kind/bug
    priority/medium
    triage/accepted
    on Oct 1, 2026
  2. added a commit that references this issue on Oct 1, 2026
    542143f
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

    kind/bugpriority/mediumtriage/accepted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions