Skip to content

[CI Postmortem] Flaky: NSPasteboardTests.DetectMetadataTests_SomewhatStronglyTyped on macOS #25446

Description

@rolfbjarne

Flaky Test Report (automated)

Test: Xamarin.Mac.Tests.NSPasteboardTests.DetectMetadataTests_SomewhatStronglyTyped
Platform: macOS (Tahoe)
Period: May 11–18, 2026
Category: Flaky — appears across unrelated PRs

Occurrence Details

PR Build Bot Direct Link
#25300 14063211 VSCXSDKs-MINI-032.Tahoe.arm64 monotouch_macos → Run tests
#25320 14101091 VSCXSDKs-MINI-031.Tahoe.arm64 monotouch_macos → Run tests

Total: Failed in 2 builds across 2 unrelated PRs on different bots.

Error Message

SomewhatStronglyTyped DetectMetadata #2 count
Expected: 1
But was:  0

Analysis

This test interacts with the macOS pasteboard (clipboard) subsystem. The failure indicates that a metadata detection operation returned 0 items when 1 was expected. This type of failure is commonly caused by:

  1. Pasteboard state pollution — another process or test may have modified the pasteboard between setup and assertion
  2. Timing sensitivity — the pasteboard may not have fully propagated the metadata by assertion time
  3. Sandbox/permission issues — pasteboard access may be restricted on certain bot configurations

The test fails on different bots (MINI-032 and MINI-031) and different dates, confirming this is not machine-specific but rather an inherent flakiness in the test or the pasteboard subsystem interaction.


This issue was automatically generated by CI post-mortem analysis.

Activity

  1. added
    bug
    ci-postmortem
    on May 18, 2026
  2. added this to the Future milestone on May 18, 2026
  3. dalexsoto commented on Jul 21, 2026

    @dalexsoto
    Member

    Exact recurrence on PR #26144 @ 1fd611914a973a3efd935e92aae627a9579664da, build 14717583, simulator_tests attempt 2 job monotouch_macos.

    Xamarin.Mac.Tests.NSPasteboardTests.DetectMetadataTests_SomewhatStronglyTyped again returned 0 instead of the expected count 1. The retry build is still in progress; no further retry has been submitted yet.

  4. dalexsoto commented on Jul 21, 2026

    @dalexsoto
    Member

    Retry update: PR #26144 build 14717583 simulator_tests attempt 2 finished failed solely on this pasteboard assertion. A separately counted simulator_tests attempt 3 was accepted at 19:35 UTC and is queued for monotouch_macos.

  5. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    Member

    Retry outcome: merged PR #26144 build 14717583 simulator_tests attempt 3 completed successfully at 01:04 UTC. The retried monotouch_macos job passed, and the overall build result is succeeded.

  6. added a commit that references this issue on Jul 22, 2026
    6d1ccd3
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

    bugci-postmortemcopilot

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions