Skip to content

[CI Postmortem] Flaky: MonoTouchFixtures.Security.RecordTest.DeskCase_83099_InmutableDictionary #25222

Closed

Description

@rolfbjarne

Summary

MonoTouchFixtures.Security.RecordTest.DeskCase_83099_InmutableDictionary is failing intermittently across 4 unrelated PRs in the last week.

Failure Details

Test: MonoTouchFixtures.Security.RecordTest.DeskCase_83099_InmutableDictionary
Suite: monotouch-test (macOS)
Error message:

Password could not be saved to keychain. queryCode: InvalidRecord addCode: -1 updateCode: -1
Expected: True
But was:  False

Source: tests/monotouch-test/Security/RecordTest.cs:line 336

Classification

  • Type: Flaky test
  • Impact: 4 PRs, 4 builds
  • Confidence: High — the failing PRs are unrelated, indicating an environment-dependent issue (macOS keychain state)

Affected Builds

PR Build Pipeline
#25105 13882756 sim-pr-tests
#25151 13883447 sim-pr-tests
#25195 13896502 sim-pr-tests
#25202 13893722 sim-pr-tests

Root Cause Hypothesis

The test interacts with the macOS keychain, and the failure depends on the agent machine's keychain state. The error InvalidRecord suggests the keychain entry doesn't exist or was left in an inconsistent state by a previous test run on the same agent.


Filed automatically by CI postmortem analysis. Individual test failures extracted from HtmlReport artifacts and NUnit XML results.

Activity

  1. added
    ci-postmortem
    on Apr 22, 2026
  2. added this to the Future milestone on Apr 27, 2026
  3. rolfbjarne commented on Apr 27, 2026

    @rolfbjarne
    MemberAuthor

    CI Post-Mortem Update (Apr 21–27, 2026)

    This failure was seen again this week:

    PR Build
    #25079 13917176 or related
    #25229 13925548 or related

    Error message this time:

    Password could not be cleared from keychain. queryCode: Success removeCode: InvalidRecord
    Expected: True
    But was:  False
    

    (Slightly different from last week's variant — clearCode: InvalidRecord vs addCode: -1)


    Updated automatically by CI postmortem analysis.

  4. added a commit that references this issue on Apr 30, 2026
    84fd494
  5. rolfbjarne commented on May 4, 2026

    @rolfbjarne
    MemberAuthor

    CI Post-Mortem Update (Apr 27 – May 4, 2026)

    This test is still flaky — it recurred this week in 5 builds across 4 unrelated PRs.

    Occurrences

    PR Build Date Platform
    #25079 13957493 2026-04-28 macOS
    #25105 13954504 2026-04-28 macOS
    #25197 13977898 2026-04-30 macOS
    #25197 13977916 2026-04-30 macOS
    #25261 13952585 2026-04-28 macOS

    Error: Expected: True But was: False — keychain race condition in test setup.


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

  6. rolfbjarne commented on May 4, 2026

    @rolfbjarne
    MemberAuthor

    Closing again — the fix (#25251) was merged after the failing builds occurred, so these failures don't indicate a regression. Will not reopen for at least two weeks to allow time to confirm the fix is effective.

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

    ci-postmortemcopilot

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions