Skip to content

[CI] Flaky: monotouch-test macOS NativeAOT configurations TimedOut #25687

Open

Description

@rolfbjarne

Flaky Test Report (automated)

Test: monotouch-test (macOS, NativeAOT configurations)
Platform: macOS
Category: Flaky
Period: June 8–15, 2026

Occurrence Summary

PR Build Configuration Bot Direct Link
#25657 14376282 NativeAOT VSCXSDKs-MINI-043.Tahoe.arm64 monotouch_macos → Run tests
#25586 14376290 trimmable static registrar, NativeAOT VSM-XAM-08.Tahoe.arm64 monotouch_macos → Run tests

Total: Failed in 2 builds across 2 unrelated PRs this week.

Error Details

The monotouch-test suite on macOS completes all NativeAOT configurations successfully except one which times out (TimedOut status in xharness). The specific configuration that times out varies between runs:

Build 14376282 (PR #25657):

NativeAOT → TimedOut

Build 14376290 (PR #25586):

trimmable static registrar, NativeAOT → TimedOut

All other NativeAOT configurations in both builds pass (including NativeAOT ARM64, NativeAOT x64, .NET 11 defaults, trimmable static registrar NativeAOT ARM64/x64). This suggests a timing/resource issue rather than a consistent test failure.

Classification

This failure was identified as flaky because:

  • It appeared across 2 unrelated PRs
  • Different NativeAOT configurations time out each time (not always the same config)
  • All other NativeAOT configs pass in the same run
  • The behavior is consistent with resource exhaustion or slow NativeAOT compilation on macOS hitting a timeout threshold

Possible Root Cause

NativeAOT compilation on macOS for the full monotouch-test suite is resource-intensive. Some configurations may occasionally exceed the test timeout when running on heavily loaded bots or when NativeAOT compilation is slightly slower.


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

Activity

  1. added
    bug
    ci-failure
    ci-postmortem
    on Jun 15, 2026
  2. added this to the Future milestone on Jun 16, 2026
  3. rolfbjarne commented on Jun 22, 2026

    @rolfbjarne
    MemberAuthor

    CI Post-Mortem Update (June 15–21, 2026)

    This timeout was seen again this week:

    PR Build Configuration Bot Direct Link
    #25717 14427640 Debug (trimmable static registrar) VSCXSDKs-MINI-006.Tahoe.arm64 monotouch_macos → Run tests
    #25717 14427640 Release (trimmable static registrar) VSCXSDKs-MINI-006.Tahoe.arm64 monotouch_macos → Run tests

    Total: 2 config failures (same build) in 1 PR this week.

    Error

    TimedOut (Execution timed out after 1200 seconds. Test run crashed)
    

    Both Debug and Release "trimmable static registrar" configurations timed out on the same bot in the same run.

    Trend

    • Last week (Jun 8–15): 2 builds, 2 PRs
    • This week (Jun 15–21): 1 build, 1 PR

    Low volume but still occurring — the pattern is consistent with the NativeAOT/trimmable-static-registrar configs taking too long on macOS.


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

  4. rolfbjarne commented on Jun 29, 2026

    @rolfbjarne
    MemberAuthor

    CI Post-Mortem Update (June 22–29, 2026)

    This failure pattern was seen again this week, along with related macOS/MacCatalyst test crashes:

    NativeAOT Crash (matches this issue directly)

    PR Build Configuration Bot Direct Link
    #25815 14514853 monotouch-test/macOS/Release (trimmable static registrar, NativeAOT) AcesShared 32 Run tests

    Error: Test run crashed (exit code: 133)

    Possibly related: macOS monotouch-test killed (exit code 137)

    PR Build Configuration Bot Direct Link
    #25848 14515016 macOS/osx-x64 monotouch-test VSM-XAM-31.Monterey.arm64 Run tests

    Error: Process killed with exit code 137 (SIGKILL — likely OOM). Last output was running MonoTouchFixtures.ObjCRuntime.RegistrarTest.

    Possibly related: MacCatalyst "Failed to launch after maximum attempts"

    PR Build Configuration Bot Direct Link
    #25815 14514853 MacCatalyst/maccatalyst-x64 monotouch-test VSM-XAM-20.Tahoe.arm64 Run tests
    #25815 14514853 MacCatalyst/maccatalyst-x64 monotouch-test VSM-XAM-55.Sequoia.arm64 Run tests

    Error: Failed to launch after maximum attempts — the MacCatalyst app could not start on either Tahoe or Sequoia.


    Summary: 1 direct NativeAOT crash occurrence + 2 related macOS/MacCatalyst test execution failures this week across 2 PRs.

  5. rolfbjarne commented on Jul 15, 2026

    @rolfbjarne
    MemberAuthor

    CI Post-Mortem Update (July 8–15, 2026)

    The MacCatalyst NativeAOT timeout recurred this week in PR #25919 ([DO NOT MERGE] Instrument __MonoMac_NSAsyncActionDispatcher for issue #25861):

    PR Build Configuration Date
    #25919 14662367 Mac Catalyst/Release (NativeAOT), (NativeAOT, .NET 11 defaults) 2026-07-15
    #25919 14663555 Mac Catalyst/Release (NativeAOT), (NativeAOT, .NET 11 defaults), (trimmable static registrar, NativeAOT) 2026-07-15

    All timed out with Execution timed out after 1200 seconds.

    Note: These builds are from an instrumentation PR that adds debugging overhead, which may exacerbate the timeout. The timeout is still consistent with this issue's pattern.

  6. rolfbjarne commented on Jul 20, 2026

    @rolfbjarne
    MemberAuthor

    CI Post-Mortem Update (July 13–20, 2026)

    This failure was seen again this week:

    PR Build Date Bot Details
    #25919 14702838 Jul 20 XAMBOT-1006.Sonoma macOS osx-x64 tests exited with code 137

    Total: 1 occurrence this week (macOS x64 exit 137 on Sonoma bot).

  7. dalexsoto commented on Jul 22, 2026

    @dalexsoto
    Member

    New occurrence on #26247 @ 034423cafa4c5b3bf5e09b6c8fcc645b7de31cf7, build 14734681 attempt 2 — M1 Mac Ventura macOS tests: macOS/osx-arm64 monotouch-test timed out after 600 seconds and was killed with exit code 137 on VSM-XAM-70.Ventura.arm64. The output ended after passing the NSUrlSessionHandler cookie tests; no deterministic assertion failed.

    This update adds 1 occurrence across 1 newly affected monitored PR. mac_13_m1 attempt 3 was accepted and is in progress. Reconciled PR budget: 3 lifetime / 3 current-head requests.

  8. dalexsoto commented on Jul 23, 2026

    @dalexsoto
    Member

    Final retry outcome for #26247 @ 034423cafa4c5b3bf5e09b6c8fcc645b7de31cf7: build 14734681 mac_13_m1 attempt 3 completed successfully. The Ventura macOS monotouch tests passed, the overall build succeeded, and the PR merged at 23:56 UTC.

  9. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    Member

    New recurrence on #26278 @ 303f04f2113e74a8a7328fbcc1dc85bbd02fc467: build 14753655 attempt 1 - arm64 Mac Tahoe macOS tests had macOS/osx-arm64 monotouch-test time out after 600 seconds and exit 137 on VSM-XAM-15.Tahoe.arm64. The output ended with repeated CFSocketSetAddress listen failure: 102; no deterministic assertion failed.

    This exact arm64 timeout/exit-137 signature now covers 2 occurrences across 2 monitored PRs. It is classified as genuinely flaky because the prior #26247 occurrence recovered when its targeted macOS stage retry passed.

    Build 14753655 remains active, so no retry has been submitted yet.

  10. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    Member

    Retry update for #26278 @ 303f04f2113e74a8a7328fbcc1dc85bbd02fc467: build 14753655 simulator_tests attempt 2 was accepted using failed-jobs semantics. It is rerunning the macOS timeout-affected monotouch_macos work together with linker_ios and the jobs canceled by attempt 1 (generator and monotouch_maccatalyst). Retry budget usage: 1 lifetime / 1 current head.

  11. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    Member

    New monitored occurrence on #26278 @ 303f04f2113e74a8a7328fbcc1dc85bbd02fc467: build 14755483 attempt 1 — monotouch_macos / Release (trimmable static registrar, all optimizations) on AcesShared 82.

    The process ran for 1200 seconds, was killed with exit 133, and produced no crash report. Its output stopped in MonoTouchFixtures.Contacts.ContactFetchRequestTest after repeated CFSocketSetAddress listen failure: 102; no deterministic assertion failed.

    This brings the current monitored signature to 3 occurrences across 2 PRs. Build 14755483 is an automatically triggered PR build and remains active, so no retry has been submitted for this occurrence.

  12. dalexsoto commented on Jul 24, 2026

    @dalexsoto
    Member

    Retry update for #26278 @ 303f04f2113e74a8a7328fbcc1dc85bbd02fc467: automatic build 14755483 simulator_tests attempt 2 was accepted using failed-jobs semantics. It is rerunning the 1200-second monotouch_macos timeout configuration together with cecil and the three jobs canceled by attempt 1. This is the PR's 2nd lifetime / 2nd current-head retry request. The current monitored timeout count remains 3 occurrences across 2 PRs.

  13. 5 remaining items

  14. dalexsoto commented on Jul 28, 2026

    @dalexsoto
    Member

    Seen again on #26280 @ 0a02e7f9, this time on a plain (non-trimmable, non-NativeAOT) static registrar configuration:

    PR Build Configuration Bot Direct Link
    #26280 14779562 monotouch-test/macOS/Debug (static registrar) AcesShared 76 monotouch_macos → Run tests

    Identical normalized error to the June 15–21 update:

    TimedOut (Execution timed out after 1200 seconds. Test run crashed)
    

    1 test failed, 18 passed in the job — every other macOS configuration on the same bot and same run passed, which continues to match this issue's "one varying configuration times out while its siblings pass" pattern rather than a deterministic regression.

    This extends the affected set slightly: previously recorded static-registrar occurrences were Debug (trimmable static registrar) / Release (trimmable static registrar) (#25717) and Release (trimmable static registrar, NativeAOT) (#25815). This one is plain Debug (static registrar) with no trimming and no NativeAOT, so the timeout is not exclusive to trimmed or NativeAOT-compiled configurations.

    Classification: genuinely flaky, consistent with this issue. #26280 only changes ScreenCaptureKit bindings, which are unrelated to the macOS static registrar test path.

    Retry: none submitted — build 14779562 is still in progress and therefore not terminal, so no retry is permitted yet. Retry accounting for #26280 remains 2 lifetime / 0 current-head requests. The build is being monitored to a terminal state.

    Issue-specific diagnostic checklist: none — this issue has no Additional info to collect section.

  15. dalexsoto commented on Aug 24, 2026

    @dalexsoto
    Member

    New exact-signature occurrence on PR #26438 @ 3ef1392b269b4344fb19ff47fcc986f6483f8e9e:

    • Build 15067815 attempt 1 — arm64 Mac Tahoe macOS tests / Run tests, worker VSM-XAM-14.Tahoe.arm64.
    • macOS/osx-arm64 monotouch-test repeatedly logged CFSocketSetAddress listen failure: 102, timed out after 600 seconds, and was killed with exit 137. No deterministic assertion failed.
    • Classification: genuinely flaky test. The exact 600-second arm64 timeout/exit-137 signature now covers 4 occurrences across 4 distinct monitored PRs; prior targeted retries on [monotouch-test] Assert instead of plain exception. #26247 and [PassKit] Update bindings up to Xcode 27.0 Beta 4 #26277 cleared it.
    • Retry decision: no retry submitted. Failed-job semantics would also rerun unmatched failures in the same build: the introspection iOS 27 SimLaunchHost.arm64 crash and DisposeAndRecreateBackgroundSessionHandler HTTP timeout. Retrying unresolved failures merely to see whether they pass is prohibited.
    • Issue-specific checklist: none; the issue body has no Additional info to collect section.

    The separate current-PR API-diff result is not part of this signature.

  16. dalexsoto commented on Aug 24, 2026

    @dalexsoto
    Member

    Retry outcome for PR #26438 @ 3ef1392b269b4344fb19ff47fcc986f6483f8e9e:

    • An externally triggered failed-jobs request reopened build 15067815 at 2026-08-24T06:02:37Z. Azure DevOps does not expose the retry initiator, so the actor is unavailable.
    • Tahoe stage attempt 2 / Run tests completed successfully on VSM-XAM-15.Tahoe.arm64 at 06:15:34Z. The 600-second arm64 timeout/exit-137 signature did not recur; the co-occurring DisposeAndRecreateBackgroundSessionHandler timeout also passed.
    • Simulator introspection attempt 2 remains active for its separately classified SimLaunchHost.arm64 crash.
    • Retry accounting for [Bindings] Update multiple frameworks up to Xcode 27.0 Beta 5 #26438 is 1 PR-lifetime / 1 current-head request. The canonical signature count remains 4 occurrences across 4 distinct monitored PRs.
    • Issue-specific checklist: none; the issue body has no Additional info to collect section.
  17. dalexsoto commented on Aug 24, 2026

    @dalexsoto
    Member

    Final retry outcome for PR #26438 @ 3ef1392b269b4344fb19ff47fcc986f6483f8e9e:

    • Build 15067815 completed successfully at 2026-08-24T06:46:39Z.
    • Tahoe stage attempt 2 and Simulator/introspection attempt 2 both passed; publish-results post-processing also succeeded.
    • The 600-second arm64 timeout/exit-137 signature did not recur. Retry accounting remains 1 PR-lifetime / 1 current-head request; the canonical count remains 4 occurrences across 4 distinct monitored PRs.
    • Issue-specific checklist: none; the issue body has no Additional info to collect section.

    The remaining red API-diff check is the separately evaluated current-PR beta-Xcode comparison; its stable comparison is clean.

  18. dalexsoto commented on Aug 25, 2026

    @dalexsoto
    Member

    New monitored recurrence on PR #26444 @ 208d8d5caa0800da19d399c0b11b789c1986f020:

    Classification: genuinely flaky test; there is no deterministic assertion. No retry submitted: build 15085070 remains active, and its failed-jobs set also contains the separately classified deterministic app-size assertion in dotnettests_macos.

    Issue-specific checklist: none; the issue body has no Additional info to collect section.

  19. dalexsoto commented on Aug 25, 2026

    @dalexsoto
    Member

    New monitored 1200-second timeout occurrence on PR #26356 @ ac84fef62c4a0babd9079876486d13e12f888133:

    The 1200-second static-registrar sub-signature now has 4 confirmed occurrences across 4 distinct monitored PRs.

    Classification: genuinely flaky test. No retry submitted: build 15090832 remains active and its failed-job set also contains deterministic Bad IL failures tracked by #26470.

    Issue-specific checklist: none; the issue body has no Additional info to collect section.

  20. dalexsoto commented on Aug 26, 2026

    @dalexsoto
    Member

    External retry outcome for PR #26356 @ ac84fef62c4a0babd9079876486d13e12f888133:

    The 1200-second static-registrar sub-signature remains 4 confirmed occurrences across 4 distinct monitored PRs. Retry accounting for #26356 is 1 PR-lifetime / 1 current-head request.

    Classification: genuinely flaky test, reinforced by the successful unchanged retry.

    Issue-specific checklist: none; the issue body has no Additional info to collect section.

  21. dalexsoto commented on Aug 28, 2026

    @dalexsoto
    Member

    New occurrence for the macOS static-registrar timeout signature:

    The canonical total is now 5 confirmed occurrences across 5 distinct monitored PRs. Classification remains genuinely flaky test.

    No retry submitted: #26424 has deterministic source-related failures in the same simulator run, so rerunning failed jobs would not produce a clean result and is not authorized.

    Issue-specific checklist: none; the issue body has no Additional info to collect section.

  22. dalexsoto commented on Aug 28, 2026

    @dalexsoto
    Member

    New occurrence of macos-arm64-monotouch-600s-exit137 on PR #26476 @ 5d1628a83c57feb0d77b59b0eda84903099b6ab5:

    This stable signature is now 5 confirmed occurrences across 5 distinct monitored PRs.

    External Ventura stage attempt 2 ran on VSM-XAM-72.Ventura.arm64 and succeeded at 2026-08-28T09:14:29Z; the timeout did not recur. Build 15118903 completed successfully at 09:28:15Z.

    PR retry accounting remains 2 lifetime / 2 current-head requests.

    Issue-specific checklist: none; the issue body has no Additional info to collect section.

  23. dalexsoto commented on Sep 1, 2026

    @dalexsoto
    Member

    New exact macos-arm64-monotouch-600s-exit137 occurrence on PR #26500 @ f21c4957124500591af17e944b0c1775c2d51982:

    • Build 15162528, Ventura stage attempt 2 / Run tests ran on VSM-XAM-72.Ventura.arm64.
    • macOS/osx-arm64 monotouch-test exceeded the 600-second execution timeout, was terminated, and exited 137. Its last reported results were the same passing NSUrlSessionHandler cookie tests recorded by prior occurrences; there was no deterministic assertion failure.
    • The other four Ventura suites (introspection, dontlink, linksdk, and linkall) passed, as did the x64 monotouch suite.

    Classification: genuinely flaky test. The unchanged retry was able to execute tests after bypassing the separate Show Bot Info worker hang, then reproduced this established timeout signature.

    This exact stable signature is now 6 confirmed occurrences across 6 distinct monitored PRs.

    Retry decision: no additional retry while build 15162528 remains active and its existing attempt-2 linker_tvos job is still running. Retry accounting for #26500 is 4 PR-lifetime / 1 current-head request.

    Issue-specific checklist: none; the issue body has no Additional info to collect section.

  24. dalexsoto commented on Sep 1, 2026

    @dalexsoto
    Member

    Targeted retry status for PR #26500 @ f21c4957124500591af17e944b0c1775c2d51982:

    • Build 15162528 became terminal with the previously recorded macos-arm64-monotouch-600s-exit137 occurrence as its only remaining failure; the separately tracked linker_tvos crash cleared on attempt 2.
    • After refreshing the unchanged head, conflict-free mergeability, terminal run, active checks, and retry counters, the monitor submitted an Azure DevOps failed-jobs retry for the mac_13_m1 stage.
    • Azure accepted Ventura stage attempt 3, stage ID 341b066d-16d4-5a33-2b8f-4a7f4e961ebf. It started at 2026-09-01T09:09:57Z on VSM-XAM-72.Ventura.arm64 and remains active.

    Retry usage is now 5 PR-lifetime / 2 current-head requests. The exact signature count remains 6 confirmed occurrences across 6 distinct monitored PRs pending the retry outcome.

    Issue-specific checklist: none; the issue body has no Additional info to collect section.

  25. dalexsoto commented on Sep 1, 2026

    @dalexsoto
    Member

    Successful retry outcome for PR #26500 @ f21c4957124500591af17e944b0c1775c2d51982:

    • Build 15162528, Ventura stage attempt 3 completed successfully on VSM-XAM-72.Ventura.arm64 at 2026-09-01T09:22:56Z.
    • Run tests completed successfully from 09:11:57Z to 09:22:13Z; the macos-arm64-monotouch-600s-exit137 timeout did not recur.
    • Publish Test Results succeeded, and the full build completed succeeded at 09:27:19Z.

    This successful unchanged retry reinforces the genuinely flaky test classification. The exact signature count remains 6 confirmed occurrences across 6 distinct monitored PRs.

    Retry usage remains 5 PR-lifetime / 2 current-head requests.

    Issue-specific checklist: none; the issue body has no Additional info to collect section.

  26. dalexsoto commented on Sep 8, 2026

    @dalexsoto
    Member

    CI recurrence and successful retry: PR #24710

    • PR/head: #24710 / 1b2afec17a6d00607843a89f66efa21add10eef3
    • Original occurrence: run 15244181, attempt 1 — macOS tests → Run tests. macOS/osx-x64 monotouch-test emitted repeated CFSocketSetAddress listen failure: 102, exceeded the 600-second execution timeout, and exited 137; its other four suites passed and no deterministic assertion failed.
    • Signature/classification: macOS monotouch-test CFSocket listen failure → 600-second timeout → exit 137; genuinely flaky test.
    • Retry: the monitor retried only the failed mac_26_arm64 job through the Azure DevOps stage-update API. Stage attempt 2 — macOS tests → Run tests completed successfully; the signature did not recur.
    • Counts: the preceding canonical record reported 6 confirmed occurrences across 6 distinct monitored PRs; this adds the 7th occurrence across 7 PRs.
    • Current diagnosis/workaround: no source change; the successful unchanged failed-job retry reinforces the intermittent CI/test classification.
    • Issue-specific checklist: none — the issue body has no Additional info to collect section.
  27. dalexsoto commented on Sep 9, 2026

    @dalexsoto
    Member

    New recurring occurrence on #26556 @ d1f804f758279b470c056326c33f7d4db8c9fca9:

    • Run: 15258901, attempt 1 — T: monotouch_macos → Run tests.
    • Signature: MonoTouchFixtures.Contacts.ContactFetchRequestTest emitted 21 CFSocketSetAddress listen failure: 102 messages, then the macOS Release (compat inline dlfcn) configuration exceeded the 1200-second execution limit. The process was killed; the spawner exited 133, no crash report or completed NUnit XML was produced.
    • Artifacts: TestSummary-simulator_testsmonotouch_macos-1 reports 19 passed / 1 timed out; the HTML report confirms the configuration. The Azure DevOps Test Results API returned HTTP 503 after a bounded metadata retry, so artifact evidence was used.
    • Classification: genuinely flaky test / infrastructure-like listener failure, matching this issue's CFSocket → ContactFetchRequestTest timeout signature; no deterministic assertion failed.
    • Counts: this adds the 8th confirmed occurrence across 8 distinct PRs.
    • Retry: not requested. The same-head simulator pipeline still has active jobs, so a retry would be premature. No source change was made.
    • Issue-specific checklist: none; the issue body has no Additional info to collect section.
  28. dalexsoto commented on Sep 9, 2026

    @dalexsoto
    Member

    Retry outcome for #26556 @ d1f804f758279b470c056326c33f7d4db8c9fca9:

    • Simulator tests run 15258901, attempt 2 — T: monotouch_macos succeeded at 2026-09-09 15:56:49 UTC. The prior ContactFetchRequestTest CFSocket listener timeout did not recur.
    • This was one externally observed rerun-failed-jobs request; retry accounting is 1 PR-lifetime / 1 current-head request. The triggering actor is unavailable, and no additional retry was submitted.
    • T: monotouch_tvos from the same stage attempt remains active for a separate source-related registrar crash and is not counted as a new occurrence of this issue.
    • The canonical count remains 8 confirmed occurrences across 8 distinct PRs. Classification remains genuinely flaky test.
    • Issue-specific checklist: none; the issue body has no Additional info to collect section.
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-failureci-postmortemcopilot

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions