Skip to content

Test failure: System.Tests.DoubleTests.AtanPiTest on Android #71252

Closed

Description

@karelz

Started failing on 6/22 in every Rolling run -- 7 failures in last 7 days

  • 6/29: 14 failures in last 7 days

Affected test:

  • System.Tests.DoubleTests.AtanPiTest

Platform:

  • net7.0-Android-Release-x86-Mono_Release-Ubuntu.1804.Amd64.Android.29.Open

Failure:

Assert.Equal() Failure
Expected:                 -0.0
Actual:                   +0.0

   at System.AssertExtensions.Equal(Double expected, Double actual, Double variance) in /_/src/libraries/Common/tests/TestUtilities/System/AssertExtensions.cs:line 747
   at System.Tests.DoubleTests.AtanPiTest(Double value, Double expectedResult, Double allowedVariance) in /_/src/libraries/System.Runtime/tests/System/DoubleTests.cs:line 1475
   at System.Reflection.MethodInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Jun 24, 2022
  2. changed the title [-]Test failure: System.Tests.DoubleTests.AtanPiTest[/-] [+]Test failure: System.Tests.DoubleTests.AtanPiTest on Android[/+] on Jun 24, 2022
  3. karelz commented on Jun 24, 2022

    @karelz
    MemberAuthor

    Due to large impact on CI, we should disable the tests ASAP

  4. added a commit that references this issue on Jun 24, 2022
  5. removed
    untriagedNew issue has not been triaged by the area owner
    on Jun 24, 2022
  6. dakersnar commented on Jun 24, 2022

    @dakersnar
    Contributor

    Investigating this now. I am not able to reproduce it locally on a non-android device. I immediately notice that AtanPi uses the Math.Atan() intrinsic, which could have incorrect behavior on android devices. What this boils down to is that we expect Atan(-0) to produce -0, but instead it is probably producing 0. I'm unsure if there is a flaw in our logic or a flaw in the intrinsic's behavior.

  7. dakersnar commented on Jun 24, 2022

    @dakersnar
    Contributor

    Here is the current implementation of AtanPi: return Math.Atan(x) / Pi;

    We have a test verifying that Math.Atan(-0) returns -0. A simple example also shows that -0 divided by Pi should return -0. Given this, I believe that there is a bug in Mono for Math.AtanPi.

    I'm unsure which mono area this should fall under so I'm putting it under "meta".

  8. added 2 commits that reference this issue on Jun 27, 2022
  9. added 3 commits that reference this issue on Jun 29, 2022
  10. removed
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Jul 1, 2022
  11. added this to the Future milestone on Jul 18, 2022
  12. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 18, 2022
  13. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Aug 18, 2022
  14. ghost locked as resolved and limited conversation to collaborators on Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions