Skip to content

Some iOS tests are failing to launch test app #45181

Closed

Description

@safern

I just saw a couple of failures on a PR on iOS, with:

[16:59:08] dbug: 16:59:08.5015570 Xamarin.Hosting: Simulator watchdogs are already disabled for 'iOS 13.5 (17F61) - iPhone X'.
[16:59:08] dbug: 16:59:08.5075460 Xamarin.Hosting: Device 'iOS 13.5 (17F61) - iPhone X' is already booted and the simulator is running.
[16:59:08] dbug: 16:59:08.5182020 Xamarin.Hosting: No need to boot (already booted): iPhone X (iOS 13.5) - created by XHarness
[16:59:08] dbug: 16:59:08.5218370 Xamarin.Hosting: Installing /tmp/helix/working/9F630914/w/A3C008F7/e/Microsoft.Extensions.Configuration.Functional.Tests.app with Bundle Identifier net.dot.Microsoft.Extensions.Configuration.Functional.Tests on 'iOS 13.5 (17F61) - iPhone X'...
[17:28:44] dbug: 17:28:44.9031320 Killing process 14971 as it was cancelled
[17:28:44] dbug: 17:28:44.9088890 Process exited with 137
[17:28:44] dbug: 17:28:44.9095210 Test run failed
[17:28:44] dbug: 17:28:44.9175530 Could not find pid in mtouch output.
[17:28:44] dbug: 17:28:44.9224100 Test run started
[17:28:46] dbug: 17:28:46.0798530 Test run failed to launch
[17:28:46] dbug: 17:28:46.0844090 No crash reports, waiting a second to see if the crash report service just didn't complete in time (4)
[17:28:47] dbug: 17:28:47.2295520 No crash reports, waiting a second to see if the crash report service just didn't complete in time (3)
[17:28:48] dbug: 17:28:48.3149390 No crash reports, waiting a second to see if the crash report service just didn't complete in time (2)
[17:28:49] dbug: 17:28:49.4627860 No crash reports, waiting a second to see if the crash report service just didn't complete in time (1)
[17:28:50] dbug: 17:28:50.5966390 No crash reports, waiting a second to see if the crash report service just didn't complete in time (0)
[17:28:51] fail: Failed to launch the application:
                 Launch failure
                 
                 Check logs for more information.
XHarness exit code: 83
+ exit_code=83

#45172
https://dev.azure.com/dnceng/public/_build/results?buildId=898906&view=results
https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-45172-merge-f3086f428107446aa7/Microsoft.Extensions.Configuration.Functional.Tests/console.c96502f5.log?sv=2019-07-07&se=2020-12-15T00%3A55%3A49Z&sr=c&sp=rl&sig=i1uWKdwS6iGhcUW0XoWG5uWfxxQF%2FwXqK6V6beKh6YM%3D

cc: @premun @dotnet/runtime-infrastructure

Activity

  1. added
    blocking-clean-ci
    os-ios
    on Nov 25, 2020
  2. Dotnet-GitSync-Bot commented on Nov 25, 2020

    @Dotnet-GitSync-Bot
    Collaborator

    I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

  3. added
    untriaged
    on Nov 25, 2020
  4. premun commented on Nov 25, 2020

    @premun
    Member

    Having a look. This happened before when the MacOS sometimes slows down and I was waiting for this to prepare a final fix.

    Usually it's tied to a specific machine, so I will take them offline to unblock runtime and prepare the fix.

  5. premun commented on Nov 25, 2020

    @premun
    Member

    @safern I took these machines offline:

    • dci-mac-build-133
    • dci-mac-build-136
    • dci-mac-build-146

    The rest looked healthy from a quick Kusto search.
    I will add work item retry + machine reboot for these cases and that should resolve this for good.

  6. radical commented on Dec 9, 2020

    @radical
    Member

    Another instance of this, IIUC, on #45839:

    https://dnceng.visualstudio.com/public/_build/results?buildId=914235&view=logs&j=8580ecfb-912a-5dbd-35ce-e64d0d51ddbf&t=ebd4788e-80c8-5104-29f3-a1792da138c8

    console: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-45839-merge-13b48d1686ba4343b7/Microsoft.Bcl.AsyncInterfaces.Tests/console.fa2f6cc5.log?sv=2019-07-07&se=2020-12-29T16%3A46%3A22Z&sr=c&sp=rl&sig=tn4cgwt0brU45SKlzBlHEbsrbDNIhpZNsqrQkidt7Ss%3D

    This is for Microsoft.Bcl.AsyncInterfaces.Tests. Also, I see an extra message before the process gets killed (2nd line):

    [09:16:32] dbug: 09:16:32.4000240 Xamarin.Hosting: Installed 'net.dot.Microsoft.Bcl.AsyncInterfaces.Tests' from /tmp/helix/working/A1B108B5/w/B28E0A07/e/Microsoft.Bcl.AsyncInterfaces.Tests.app
    [09:16:39] dbug: 09:16:39.9175400 Xamarin.Hosting: Can't process potentially bad load commands, because the app is signed.
    [09:16:52] dbug: 09:16:52.6508610 Killing process 943 as it was cancelled
    
  7. radical commented on Dec 9, 2020

    @radical
    Member

    And two more library test runs fail with the same issue, on the PR #45839 from the last comment:
    System.Data.Odbc.Tests, and System.Runtime.Serialization.Json.ReflectionOnly.Tests.

  8. steveisok commented on Dec 9, 2020

    @steveisok
    Member

    dci-mac-build-133, dci-mac-build-145, and dci-mac-build-068.local are the 3 machines that have any badexits in the last 24 hours.

  9. premun commented on Dec 10, 2020

    @premun
    Member

    We have a fix in Arcade that was supposed to retry the test on another machine in this case and reboot the machine.
    However, the fix seems to have failed:

    + /usr/local/bin/python3 -c 'from helix.workitemutil import request_infra_retry; request_infra_retry('\''Retrying because iOS Simulator application install hung'\'')'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'helix'
    + /usr/local/bin/python3 -c 'from helix.workitemutil import request_reboot; request_reboot('\''Rebooting because iOS Simulator application install hung '\'')'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'helix'
    

    I disabled the machines and will have a look at the retry

  10. 30 remaining items

  11. steveisok commented on Dec 23, 2020

    @steveisok
    Member

    Fine by me. Thanks for validating.

  12. safern commented on Dec 23, 2020

    @safern
    MemberAuthor

    However, sometimes the build part of the leg takes even 1:45:00

    Is there something we can do to improve this? The building the tests on iOS takes a while, right?

  13. premun commented on Dec 30, 2020

    @premun
    Member

    We are building one iOS app at a time (times 160 or how many these days) so I can imagine we could parallelize this but I guess a question for @akoeplinger

  14. akoeplinger commented on Dec 30, 2020

    @akoeplinger
    Member

    Building the tests in parallel is one option but to get build time really down we need to pack multiple test assemblies in one or at least a few iOS app(s).

    We've talked about this in the past but I'm not 100% sure how much work it'd be in the libraries tests build, we'd need to have a step that runs after the normal tests build that can take a subset of the tests and package them into an iOS app and we'd pick the entrypoint assembly when we start the app via xharness like we already do for the runtime tests.

  15. reopened this on Jan 5, 2021
  16. safern commented on Jan 5, 2021

    @safern
    MemberAuthor

    reopened as we need to track this getting back from runtime-staging into the main pipeline.

  17. premun commented on Jan 14, 2021

    @premun
    Member

    Fix for the exit code detection was merged yesterday and runtime has the new version since this morning.

    Let's give it a couple of days but iOS leg should be stable now, so let's see.

  18. premun commented on Jan 18, 2021

    @premun
    Member

    Looks like if the issue for which we're doing retry+reboot happens for ios run instead of ios test together with --expecited-exit-code, we don't get back the right return code and the retry+reboot won't happen. So this needs to be fixed as it happened at least once since the latest fix.

  19. ViktorHofer commented on Feb 23, 2021

    @ViktorHofer
    Member

    @premun what's the current status on this? Unsure what the remaining work this issue is tracking for xHarness.

  20. premun commented on Feb 23, 2021

    @premun
    Member

    @ViktorHofer the pipeline has been green for a long time then it wasn't but not because of infrastructure issues but because of actual failing tests. I believe those were fixed and moving the pipeline back to the official build was just the matter if we want to and it would bring us value at the moment or we don't care about the platform enough yet. But infrastracture-wise, I don't know about any issues now.

    Moving it back is totally up to @steveisok and we discuss it on our regular syncs. However, I am not monitoring it at the moment because I don't believe we reached a decision to move it back.

  21. ViktorHofer commented on Feb 23, 2021

    @ViktorHofer
    Member

    But infrastracture-wise, I don't know about any issues now.

    Sounds to me like we can close the issue then.

    Moving it back is totally up to @steveisok and we discuss it on our regular syncs. However, I am not monitoring it at the moment because I don't believe we reached a decision to move it back.

    @steveisok would it make sense to open new issues to track the platforms that should run as part of the main runtime pipeline instead of in runtime-staging?

  22. steveisok commented on Feb 23, 2021

    @steveisok
    Member

    @steveisok would it make sense to open new issues to track the platforms that should run as part of the main runtime pipeline instead of in runtime-staging?

    Yes, however, they are on hold to move to the main runtime until we have more resiliency options.

  23. ghost locked as resolved and limited conversation to collaborators on Mar 25, 2021
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-Infrastructureos-iosuntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions