Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.0] Android test failure: Failed to install mobile app #83422

Open
carlossanlop opened this issue Mar 14, 2023 · 16 comments
Open

[6.0] Android test failure: Failed to install mobile app #83422

carlossanlop opened this issue Mar 14, 2023 · 16 comments
Labels
arch-x64 area-VM-meta-mono Known Build Error Use this to report build issues in the .NET Helix tab os-android
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Mar 14, 2023

Found in the internal->public merge PR for 6.0: #83404

Lots of tests affected by the exact same failure message.

Microsoft.DotNet.XUnitConsoleRunner v2.5.0 (64-bit .NET 6.0.14)
  Discovering: JIT.opt.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  JIT.opt.XUnitWrapper (found 80 test cases)
  Starting:    JIT.opt.XUnitWrapper (parallel test collections = off, max threads = 2)
    JIT/opt/AssertionPropagation/ArrBoundBinaryOp/ArrBoundBinaryOp.sh [FAIL]
      System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at JIT_opt._Global..ctor()
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----
        
    JIT/opt/AssertionPropagation/ArrBoundMinLength/ArrBoundMinLength.sh [FAIL]
      System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at JIT_opt._Global..ctor()
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----
        
    JIT/opt/AssertionPropagation/ArrBoundUnsigned/ArrBoundUnsigned.sh [FAIL]
      System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at JIT_opt._Global..ctor()
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----
        
    JIT/opt/Casts/shared/shared.sh [FAIL]
      System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at JIT_opt._Global..ctor()
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----

...
and goes on and on...
{
  "ErrorMessage": "The following constructor parameters did not have matching fixture data: _Global globalVar",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Report

Build Definition Test Pull Request
867413 dotnet/runtime JIT/PGO/InstrumentedTiers/InstrumentedTiers/InstrumentedTiers.sh
863062 dotnet/runtime baseservices/compilerservices/RuntimeFeature/DefaultImplementationsOfInterfaces/DefaultImplementationsOfInterfaces.sh

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 2

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.
Validation performed at: 6/28/2023 6:30:52 PM UTC

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Mar 14, 2023
@ghost
Copy link

ghost commented Mar 14, 2023

Tagging subscribers to 'arch-android': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

Found in the internal->public merge PR for 6.0: #83404

Lots of tests affected by the exact same failure message.

Microsoft.DotNet.XUnitConsoleRunner v2.5.0 (64-bit .NET 6.0.14)
  Discovering: JIT.opt.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  JIT.opt.XUnitWrapper (found 80 test cases)
  Starting:    JIT.opt.XUnitWrapper (parallel test collections = off, max threads = 2)
    JIT/opt/AssertionPropagation/ArrBoundBinaryOp/ArrBoundBinaryOp.sh [FAIL]
      System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at JIT_opt._Global..ctor()
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----
        
    JIT/opt/AssertionPropagation/ArrBoundMinLength/ArrBoundMinLength.sh [FAIL]
      System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at JIT_opt._Global..ctor()
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----
        
    JIT/opt/AssertionPropagation/ArrBoundUnsigned/ArrBoundUnsigned.sh [FAIL]
      System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at JIT_opt._Global..ctor()
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----
        
    JIT/opt/Casts/shared/shared.sh [FAIL]
      System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at JIT_opt._Global..ctor()
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----

...
and goes on and on...
{
  "ErrorMessage": "The following constructor parameters did not have matching fixture data: _Global globalVar",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}
Author: carlossanlop
Assignees: -
Labels:

arch-x64, os-android, area-VM-meta-mono

Milestone: -

@carlossanlop carlossanlop added the Known Build Error Use this to report build issues in the .NET Helix tab label Mar 14, 2023
@steveisok steveisok removed the untriaged New issue has not been triaged by the area owner label Mar 15, 2023
@steveisok
Copy link
Member

@fanyang-mono does this happen in main as well?

@fanyang-mono fanyang-mono changed the title [6.0] Android test failure: The following constructor parameters did not have matching fixture data: _Global globalVar [6.0] Android test failure: Failed to install mobile app Mar 15, 2023
@fanyang-mono
Copy link
Member

@steveisok No I haven't seen apps failing to install for quite a while, since we introduced recovery mechanism. I checked that that code doesn't exit in release/6.0 branch.

Comparing
https://github.com/dotnet/runtime/blob/release/6.0/src/tests/Common/Coreclr.TestWrapper/MobileAppHandler.cs
and
https://github.com/dotnet/runtime/blob/main/src/tests/Common/Coreclr.TestWrapper/MobileAppHandler.cs

I am not sure if helix support that feature for 6.0. @premun

@premun
Copy link
Member

premun commented Mar 15, 2023

@fanyang-mono
Copy link
Member

Seems like the version of Arcade on the 6.0 branch does have this backported: https://github.com/dotnet/arcade/blob/0c93c1cb1ef9c9d5c1a59f4ab98c2f7e37f12197/src/Microsoft.DotNet.Helix/Sdk/tools/xharness-runner/xharness-runner.apple.sh

I assume that the functionality for Android is backported as well?

@premun
Copy link
Member

premun commented Mar 16, 2023

For Helix SDK, everything would be backported together

@carlossanlop
Copy link
Member Author

Seen again in the latest 6.0 dependency flow PR: #83513

Starting:    JIT.Methodical.XUnitWrapper (parallel test collections = off, max threads = 2)
    JIT/Methodical/eh/basics/emptyfinally_d/emptyfinally_d.sh [FAIL]
      System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at JIT_Methodical._Global..ctor()
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----
        
    JIT/Methodical/eh/basics/multihandler_d/multihandler_d.sh [FAIL]
      System.AggregateException : One or more errors occurred. (Failed to install mobile app.
      Expected: True
      Actual:   False) (The following constructor parameters did not have matching fixture data: _Global globalVar)
      ---- Failed to install mobile app.
      Expected: True
      Actual:   False
      ---- The following constructor parameters did not have matching fixture data: _Global globalVar
      Stack Trace:
        
        ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
           at JIT_Methodical._Global..ctor()
        ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----

@ericstj
Copy link
Member

ericstj commented Apr 6, 2023

Still happening: #84357

@carlossanlop
Copy link
Member Author

Still pretty impactful. Affecting most, if not all 6.0 PRs.

@fanyang-mono
Copy link
Member

I will try to backport a fix for this later this week.

@SamMonoRT
Copy link
Member

I will try to backport a fix for this later this week.

@fanyang-mono - is this completed ?

@SamMonoRT SamMonoRT added this to the 8.0.0 milestone Jul 25, 2023
@SamMonoRT
Copy link
Member

@fanyang-mono - please update with current status and close/move to Future Milestone.

@fanyang-mono
Copy link
Member

There isn't one particular PR, but a handful amount that I would need to backport to 6.0 to make these failures go away. There are still a good amount of PR passes Android runs. For example, https://dev.azure.com/dnceng-public/public/_build/results?buildId=370864&view=results.

I've decided to close this issue.

@carlossanlop
Copy link
Member Author

carlossanlop commented Aug 24, 2023

@fanyang-mono due to the high impact of this failure in servicing branches, I would prefer to keep this open to ensure KnownBuildError links the PR failures with this issue. Saves me tons of investigation time. Example: #91078

I moved it to Future instead of 8.0.0.

@carlossanlop carlossanlop reopened this Aug 24, 2023
@carlossanlop carlossanlop removed this from the 8.0.0 milestone Aug 24, 2023
@carlossanlop carlossanlop added this to the Future milestone Aug 24, 2023
@build-analysis build-analysis bot removed this from the Future milestone Nov 15, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 15, 2023
@akoeplinger akoeplinger added this to the Future milestone Nov 24, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 24, 2023
@carlossanlop
Copy link
Member Author

@akoeplinger @lewing @steveisok @radical

Since this was moved to Future, can we please disable the 6.0 CI legs that consistently hit this failure?

akoeplinger added a commit that referenced this issue Jan 12, 2024
…timeTests

It is causing a lot of flaky failures: #83422

.NET MAUI is already EOL on 6.0 so disabling the tests is fine.

Fixes #83422
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jan 12, 2024
carlossanlop pushed a commit that referenced this issue Jan 12, 2024
…timeTests (#96891)

It is causing a lot of flaky failures: #83422

.NET MAUI is already EOL on 6.0 so disabling the tests is fine.

Fixes #83422
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jan 12, 2024
@fanyang-mono
Copy link
Member

cc/ @vitek-karas

@fanyang-mono fanyang-mono removed their assignment Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-x64 area-VM-meta-mono Known Build Error Use this to report build issues in the .NET Helix tab os-android
Projects
None yet
Development

No branches or pull requests

7 participants