pytest-dev / pytest-dev/pytest-xdist

Rsync deprecation warning

Open
#1,085 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.9k
Forks
287
Avg merge
9h 30m
Merged PRs (30d)
2

Description

I am not using the --rsyncdir command-line option, yet I'm seeing this deprecation warning:

.../site-packages/xdist/plugin.py:259: DeprecationWarning: The --rsyncdir command line argument and rsyncdirs config variable are deprecated.
  The rsync feature will be removed in pytest-xdist 4.0.
    config.issue_config_time_warning(warning, 2)

The only option I'm using is -n auto, so I don't understand why I'm seeing this warning. What do I need to do to stop this warning?

By the way, I am aware of #1081 , but that issue did not seem a good place to comment since my use-case is just running tests across multiple CPUs as opposed to running them on separate remote hosts.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at site-packages/xdist/plugin.py line 259 and trace why the deprecation warning is emitted when only -n auto is used. Read the related discussion in issue #1081, then reproduce the reported invocation; done means -n auto no longer produces the unexpected rsync deprecation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.