pytest-dev / pytest-dev/pytest-xdist

Feature: After remote run rsync files back to host machine

Open
#177 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I am searching around the issue database but did not find anything similar.
This is the first time when I am playing with ssh support of xdist plugin. So maybe I am doing something wrong.
My question is it possible to achieve my use case natively with pytest/pytest-xdist (or with other plugin)?
My use case is.
1, Run tests remotely (using --tx ssh=root@172.17.0.2)
2, Tests are generating some files on remote machine (in dir which I specified with rsyncdirs)
3, It would be good if the generated files can be rsyncked back to my host (into a specified dir) at the end of the test run. (this files are my test result files: log files, meta files)

Thanks for your answer

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 by reviewing pytest-xdist's SSH transport and rsyncdirs handling for the --tx ssh=root@172.17.0.2 scenario. Determine whether generated files can be transferred to a specified host directory after remote tests finish; done means logs and metadata are rsynced back at the end of the run.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.