Skip to content

ActiveIssue not skipped on CI for iOS/tvOS devices in Release Configuration #59488

Closed

Description

@mdh1418

System.Collections.Generic.Tests.ComparerTests.NullableComparisons<Int32> is not being skipped on CI as evidenced by this build result even though there is an ActiveIssue attribute

[ActiveIssue("https://github.com/dotnet/runtime/issues/58933", TestPlatforms.iOS | TestPlatforms.tvOS)]

Oddly enough, running the suite locally on iOSSimulator and on iOS (local iPad), the test is skipped.

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Sep 22, 2021
  2. mdh1418 commented on Sep 22, 2021

    @mdh1418
    MemberAuthor

    Looks like the test started failing since 9/17? https://dev.azure.com/dnceng/public/_test/analytics?definitionId=924&contextType=build scrolled down and clicked on System.Collections.Generic.Tests.ComparerTests.NullableComparisons
    Not sure why it would be considered a pass before then if it is supposed to be skipped.

  3. mdh1418 commented on Sep 22, 2021

    @mdh1418
    MemberAuthor

    Screen Shot 2021-09-22 at 16 09 04
    This is the first instance of the test failing (ActiveIssue not being skipped)
    Which seems to point at #57326, and it has been flakey (in skipping this ActiveIssue attribute)

    Screen Shot 2021-09-22 at 16 35 00

  4. mdh1418 commented on Sep 23, 2021

    @mdh1418
    MemberAuthor

    Filtered on iOS arm64 and tvOS arm64 test runs. Unfortunately, for iOS and tvOS there will not be a passed test because the test should be skipped if the attribute is handled properly, but judging by the counts, this behaviour is likely flakey.
    Screen Shot 2021-09-23 at 11 05 45

  5. mdh1418 commented on Sep 24, 2021

    @mdh1418
    MemberAuthor

    Looks like this is a Release configuration specific problem. on iOS arm64 release, tests are failing, and this ActiveIssue is being skipped, the reason why only this test was caught was because we are only running a small subset of test suites at the moment for devices. When adding an [ActiveIssue("", TestPlatforms.iOS)] to a test in System.Buffers, the test is still ran when in iOS arm64 Release.

  6. changed the title [-]ActiveIssue not skipped on CI for iOS/tvOS devices[/-] [+]ActiveIssue not skipped on CI for iOS/tvOS devices in Release Configuration[/+] on Sep 24, 2021
  7. safern commented on Sep 24, 2021

    @safern
    Member
  8. steveisok commented on Sep 24, 2021

    @steveisok
    Member

    IsOSPlatform looks good. We're trimming in our test runs, so we're trying to see what things are like w/o it.

  9. steveisok commented on Sep 24, 2021

    @steveisok
    Member

    No better... An untrimmed app build in release fails the same way. Passes on debug.

  10. steveisok commented on Sep 26, 2021

    @steveisok
    Member

    I found why and we should be able to work around it.

    https://github.com/dotnet/arcade/blob/9ab314e39dc623d53c3c7a63a6f63772b01ff6b3/src/Microsoft.DotNet.XUnitExtensions/src/DiscovererHelpers.cs#L17

    This returns false because in release mode, Environment.Version.Major returns 0 and RuntimeInformation.FrameworkDescription returns ".NET". It's not clear why the version returns 0.

  11. steveisok commented on Sep 27, 2021

    @steveisok
    Member

    We'll need an arcade bump in order to take dotnet/arcade#7965

    That should fix the problem.

  12. safern commented on Sep 27, 2021

    @safern
    Member

    This returns false because in release mode, Environment.Version.Major returns 0 and RuntimeInformation.FrameworkDescription returns ".NET". It's not clear why the version returns 0.

    Looks like a bug when running on iOS/tvOS?

  13. steveisok commented on Sep 27, 2021

    @steveisok
    Member

    Looks like a bug when running on iOS/tvOS?

    On the version, for sure. I don't know why yet. I've ruled out the linker on my end. The only other thing that mucks w/ the assemblies is ILStrip. I have yet to run w/ that task disabled. That's the next thing I'm going to try.

  14. steveisok commented on Sep 27, 2021

    @steveisok
    Member

    If I disable the ILStrip task, this does not happen.

    @akoeplinger Can you please check if you experience the same thing?

  15. added this to the 7.0.0 milestone on Sep 29, 2021
  16. steveisok commented on Jul 25, 2022

    @steveisok
    Member

    Confirmed this is no longer an issue.

  17. ghost locked as resolved and limited conversation to collaborators on Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions