Skip to content

Revisit xpassed tests and remove xfail from them #6665

Closed

Description

@pllim

For example, there are 3 xpassed tests in https://travis-ci.org/astropy/astropy/jobs/283303458 and https://ci.appveyor.com/project/Astropy/astropy/build/1.0.8822 , respectively (probably the same ones). We should remove xfail from those because they are no longer failing.

astropy\table\tests\test_mixin.py .....................................sss.s.s...................................................X.............
astropy\table\tests\test_operations.py .......x...x.x.x...........x.....x.......................x...xXX.x.........................x.............

Hint: Using this setting turns any xpass into a failure (ref: https://docs.pytest.org/en/latest/skipping.html).

[tool:pytest]
xfail_strict=true

Activity

  1. bsipocz commented on Oct 5, 2017

    @bsipocz
    Member

    and are these xpasses on all platforms?

  2. pllim commented on Oct 6, 2017

    @pllim
    MemberAuthor

    I see them on Travis and Appveyor, so theoretically yes.

  3. MSeifert04 commented on Oct 6, 2017

    @MSeifert04
    Contributor

    Is it possible to enable that setting and let it run through CI without these 3 xfails? That would show if there are more tests that xpass accidentally

  4. bsipocz commented on Oct 12, 2017

    @bsipocz
    Member

    So the 2 xpassing one is due to the heisenbug in operations: #6291
    It's great that it's passing, but we need to make sure it's indeed gone for good.

    In there, it's suggested (#6291 (comment)) that running the test as pytest astropy/table/tests/test_operations.py --pdb -sv -k test_col_meta_merge_inner always makes it fail, but it's still xpasses for me now on master, but also on 2.0...

  5. pllim commented on Oct 12, 2017

    @pllim
    MemberAuthor

    Heisenbug... Maybe they only fail when you run them on your second cellphone, I mean, laptop.

  6. bsipocz commented on Oct 12, 2017

    @bsipocz
    Member

    They even pass not using my own laptop now (though for some weird reason I cannot run the tests with -t, nor the command above, but both run perfectly on my own laptop).

    Anyway, we can try to remove that xfail and monitor the situation, maybe the fail is indeed gone.

  7. mhvk commented on Oct 13, 2017

    @mhvk
    Contributor

    Closing, since the passing tests are now all enabled! (And crossing fingers that they continue to pass...)

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions