Skip to content

Regression with parallel tests on 2.7.3 and 2.8 #1083

Closed
pypa/pip
#3863

Description

@xavfernandez

Hello,
Some tests in pip test suite started failing with latest pytest releases:

Activity

  1. added
    type: bugproblem that needs to be addressed
    plugin: xdistrelated to the xdist external plugin
    type: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelog
    on Sep 29, 2015
  2. added this to the 2.8.2 milestone on Sep 29, 2015
  3. added a commit that references this issue on Sep 29, 2015
  4. modified the milestones: 2.8.2, 2.8.3 on Oct 10, 2015
  5. modified the milestones: 2.8.3, 2.8.4 on Nov 23, 2015
  6. removed this from the 2.8.4 milestone on Dec 6, 2015
  7. 19 remaining items

  8. nicoddemus commented on Jun 1, 2016

    @nicoddemus
    Member

    @RonnyPfannschmidt any further thoughts?

    Either way, we really should tackle and solve this once and for all in the upcoming pytest sprint, in a couple of weeks.

  9. RonnyPfannschmidt commented on Jul 19, 2016

    @RonnyPfannschmidt
    Member

    after some more investigation it seems like the tmpdir initialization/re-initialization at slave startup happens multiple times, once with the xdist configuration, once without

  10. RonnyPfannschmidt commented on Jul 19, 2016

    @RonnyPfannschmidt
    Member

    this is related to #1618

  11. removed this from the 2.8.6 milestone on Jul 22, 2016
  12. nicoddemus commented on Jul 22, 2016

    @nicoddemus
    Member

    Opened pypa/pip#3863 which fixes this problem, although I couldn't identify why the original code did not work in the first place.

  13. RonnyPfannschmidt commented on Jul 22, 2016

    @RonnyPfannschmidt
    Member

    my current impression is that the initialization of the tmpdir handler on a remote pytest is incorrect and happens twice due to the option application happening after the pytest initialization instead of before

  14. xavfernandez commented on Jul 22, 2016

    @xavfernandez
    Author

    Well, it's a good news that pip can now use the latest pytest.
    But I'm uncomfortable with the fact we don't now why :-/

    I guess you've already checked similar logs (PYTEST_DEBUG = 1) but I've recreated a branch to have more infos on the failure: https://travis-ci.org/pypa/pip/jobs/146602684

  15. nicoddemus commented on Jul 23, 2016

    @nicoddemus
    Member

    @xavfernandez agreed, @RonnyPfannschmidt has hunch that the problem might be regarding how options (specially basetemp) is forwarded and handled at the slaves, see #1743.

  16. RonnyPfannschmidt commented on Jul 23, 2016

    @RonnyPfannschmidt
    Member

    @xavfernandez did some tests showing that my hunch was wrong

  17. nicoddemus commented on Jul 23, 2016

    @nicoddemus
    Member

    @RonnyPfannschmidt I was thinking, while #1743 makes sense, that wouldn't explain why their old tmpdir implementation did not work, after all it was correctly using config._tmpdir_factory (see my PR), which is also used by pytest's own tmpdir.

  18. RonnyPfannschmidt commented on Jul 23, 2016

    @RonnyPfannschmidt
    Member

    @nicoddemus yes, ever since @xavfernandez demonstrated that the issue is in fact not related to that, i do wonder what is the actual cause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

plugin: xdistrelated to the xdist external plugintype: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogtype: bugproblem that needs to be addressed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions