Skip to content

[Flakiness] CookieStore shared acquisition loses a recorded invocation #70697

Description

@mmitche

This content was produced by an automated Copilot CI-flakiness triage run.

Failure

Microsoft.AspNetCore.Components.Platform.Tests.CookieStoreTest.CookieStore_SharesPendingAcquisitionBetweenCallers completed both callers but recorded only one JavaScript invocation instead of two. Retrying the same final-head build record passed.

Possible cause

Both operations resume concurrently when their shared acquisition completes, while the test double records invocations with an unsynchronized List<Invocation>.Add. Concurrent writes can lose an entry even when both production operations complete, matching the exact Expected: 2, Actual: 1 result.

Affected builds and PRs

PR PR target branch Build(s) Notes
dotnet/aspnetcore#70664 main Failed record; successful retry record Expected: 2, Actual: 1; Linux Helix.

Related fork tracking: mmitche/AspNetCore#40.

Decision: prototype a test-only thread-safe invocation recorder. This preserves the assertion and production behavior while removing the recorder race.

Activity

  1. added theissue type on Nov 18, 2026
  2. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    Triage Summary

    Area: area-blazor (test lives in Microsoft.AspNetCore.Components.Platform.Tests)
    Type: Bug (preserved)

    Potential Duplicates

    • None found

    Generated by Issue Triage Agent for dotnet/aspnetcore for #70697 · copilot · auto · 13.9 AIC · ⌖ 1.06 AIC · ⊞ 7.8K · ◷

  3. added
    area-blazor
    on Nov 18, 2026
  4. self-assigned this
    on Nov 19, 2026
  5. added this to the .NET 12 Planning milestone on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-blazortest-failure

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions