Skip to content

[Testing] Consider increasing timeouts for PreformanceTest #11031

Closed

Description

@simonrozsival

The Xamarin.Android.Build.Tests.PerformanceTest tests are flaky:

Build_AndroidManifest_Change:

Exceeded expected time of 4500ms, actual 4653.098ms
   at Xamarin.Android.Build.Tests.PerformanceTest.Profile(ProjectBuilder builder, Int32 iterations, Action`1 action, Action`1 afterRun, String caller) in /Users/builder/azdo/_work/4/s/android/tests/MSBuildDeviceIntegration/Tests/PerformanceTest.cs:line 74
   at Xamarin.Android.Build.Tests.PerformanceTest.Profile(ProjectBuilder builder, Action`1 action, String caller) in /Users/builder/azdo/_work/4/s/android/tests/MSBuildDeviceIntegration/Tests/PerformanceTest.cs:line 53
   at Xamarin.Android.Build.Tests.PerformanceTest.Build_AndroidManifest_Change() in /Users/builder/azdo/_work/4/s/android/tests/MSBuildDeviceIntegration/Tests/PerformanceTest.cs:line 265
   at InvokeStub_PerformanceTest.Build_AndroidManifest_Change(Object, Object, IntPtr*)

I've seen this and other similar test fail quite frequently. I understand the need for these tests to identify major perf regressions we might introduce, but they should not fail often. I have these suggestions:

  • Increase Retry count (currently 2),
  • or bump the expected times.

Activity

  1. added this to the .NET 11 milestone on Mar 27, 2026
  2. added
    Area: Unit Tests
    on Mar 27, 2026
  3. added
    needs-triage
    on Mar 27, 2026
  4. jonathanpeppers commented on Mar 30, 2026

    @jonathanpeppers
    Member

    This one was saving ~120ms on any incremental build:

    We should watch and see if it gets any better.

  5. jonathanpeppers commented on Aug 12, 2026

    @jonathanpeppers
    Member

    This hasn't been failing for me in a while, let's close and reopen if it comes back up.

  6. locked and limited conversation to collaborators on Sep 12, 2026
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

    Area: Unit Testsneeds-triage

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions