pytest-dev / pytest-dev/pytest-xdist

Resource Warnings when running test suite

Open
#628 3 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

A bunch of Resource Warnings are issues when running pytest-xdist's test suite:

================= 148 passed, 4 skipped, 10 xfailed in 47.03s ==================
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1025 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1028 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1031 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1034 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1037 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1040 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1043 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1046 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1049 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1052 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1058 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1061 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1055 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1064 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1067 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1070 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1091 is still running
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='r' encoding='UTF-8'>
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name="<_io.FileIO name=20 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name="<_io.FileIO name=22 mode='rb+' closefd=True>" mode='r+' encoding='utf-8'>
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1095 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1099 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1103 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1107 is still running
/usr/lib64/python3.9/subprocess.py:1048: ResourceWarning: subprocess 1177 is still running

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 reproducing the pytest-xdist test suite under Python 3.9 with resource warnings enabled, then trace the reported subprocess and file lifetimes. Done means the suite completes without ResourceWarning messages for still-running subprocesses or unclosed files.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.