
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-jenkins/pytest-1681/.lock' Β· Issue #5456 Β· pytest-dev/pytest
Description:
Same issue as in #4181 . I think there are still some edge cases where this is not handled correctly. I am running a series of concurrent pytest processes and was able to reproduce the issue. Here is the stack trace: ====================...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Video & Online Content
- Technology & Computing
- Personal Finance
Content Management System {π}
What CMS is github.com built with?
Github.com employs WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
internalerror, file, line, pytest, issue, demartinofra, test, basetemp, process, type, problem, added, integ, tests, sign, errno, tmppytestofjenkinspytestlock, python, metadata, xdist, return, usrlocalbinpyenvversionsintegrationtestslibpythonsitepackagespytestpathlibpy, commented, plugin, tmpdir, projects, filenotfounderror, directory, platform, linux, pluggy, plugins, forked, usrlocalbinpyenvversionsintegrationtestslibpythonsitepackagespluggycallerspy, usrlocalbinpyenvversionsintegrationtestslibpythonsitepackagesxdistworkermanagepy, mentioned, commit, references, navigation, code, pull, requests, actions, security, processes, html, datadir, sugar, rerunfailures, call,
Topics {βοΈ}
/var/jenkins_home/workspace/integration_tests/pcluster/tests/integration-tests/tests plugins pyenv/versions/integration-tests/bin/python cachedir pyenv/versions/integration-tests/lib/python3 '/var/jenkins_home/workspace/integration_tests'} rootdir 7/site-packages/_pytest/main 7/site-packages/_pytest/pathlib 7/site-packages/pluggy/hooks 7/site-packages/pluggy/manager 7/site-packages/pluggy/callers 7/site-packages/_pytest/tmpdir /pytest-dev/pytest/blob/4 7/site-packages/xdist/dsession 7/site-packages/xdist/workermanage 012ef5b demartinofra mentioned pyenv/versions/3 personal information filenotfounderror 2/lib/python3 working previously type //parallelcluster-jenkins-commercial 3/src/_pytest/pathlib assigned labels plugin 4753d90 nicoddemus mentioned 0 -- /usr/local/bin/ /usr/local/bin/ '/docker-java-home' code depends latest current version integ tests explicitly setting basetemp demartinofra added type projects concurrent pytest processes comment metadata assignees projects milestone 'jenkins-integration_tests-189' /job/integration_tests/189/' test process 'workspace' lock files nicoddemus added session=session root=rootdir pytest basetemp jenkins/pytest-1681/ jenkins/pytest-0/ 'integration_tests' tmpdir related removing tmpdir' suppress errors addressed type
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-jenkins/pytest-1681/.lock'
articleBody:Same issue as in #4181 .
I think there are still some edge cases where this is not handled correctly. I am running a series of concurrent pytest processes and was able to reproduce the issue. Here is the stack trace:
```
============================= test session starts ==============================
platform linux -- Python 3.7.2, pytest-4.6.3, py-1.8.0, pluggy-0.12.0 -- /usr/local/bin/.pyenv/versions/integration-tests/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.7.2', 'Platform': 'Linux-4.14.77-70.59.amzn1.x86_64-x86_64-with-debian-9.8', 'Packages': {'pytest': '4.6.3', 'py': '1.8.0', 'pluggy': '0.12.0'}, 'Plugins': {'html': '1.20.0', 'metadata': '1.8.0', 'xdist': '1.29.0', 'forked': '1.0.2', 'datadir': '1.3.0', 'sugar': '0.9.2', 'rerunfailures': '7.0'}, 'BUILD_NUMBER': '189', 'BUILD_ID': '189', 'BUILD_URL': 'https://parallelcluster-jenkins-commercial.aka.corp.amazon.com/job/integration_tests/189/', 'NODE_NAME': 'master', 'JOB_NAME': 'integration_tests', 'BUILD_TAG': 'jenkins-integration_tests-189', 'EXECUTOR_NUMBER': '15', 'JENKINS_URL': 'https://parallelcluster-jenkins-commercial.aka.corp.amazon.com/', 'JAVA_HOME': '/docker-java-home', 'WORKSPACE': '/var/jenkins_home/workspace/integration_tests'}
rootdir: /var/jenkins_home/workspace/integration_tests/pcluster/tests/integration-tests/tests
plugins: html-1.20.0, metadata-1.8.0, xdist-1.29.0, forked-1.0.2, datadir-1.3.0, sugar-0.9.2, rerunfailures-7.0
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I
[gw0] linux Python 3.7.2 cwd: /var/jenkins_home/workspace/integration_tests/pcluster/tests/integration-tests
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/main.py", line 204, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/hooks.py", line 289, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/manager.py", line 87, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/manager.py", line 81, in <lambda>
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/xdist/dsession.py", line 81, in pytest_sessionstart
INTERNALERROR> nodes = self.nodemanager.setup_nodes(putevent=self.queue.put)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/xdist/workermanage.py", line 64, in setup_nodes
INTERNALERROR> nodes.append(self.setup_node(spec, putevent))
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/xdist/workermanage.py", line 73, in setup_node
INTERNALERROR> node.setup()
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/xdist/workermanage.py", line 246, in setup
INTERNALERROR> basetemp = self.config._tmpdirhandler.getbasetemp()
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/tmpdir.py", line 118, in getbasetemp
INTERNALERROR> return py.path.local(self._tmppath_factory.getbasetemp().resolve())
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/tmpdir.py", line 79, in getbasetemp
INTERNALERROR> prefix="pytest-", root=rootdir, keep=3, lock_timeout=LOCK_TIMEOUT
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/pathlib.py", line 267, in make_numbered_dir_with_cleanup
INTERNALERROR> consider_lock_dead_if_created_before=consider_lock_dead_if_created_before,
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/pathlib.py", line 246, in cleanup_numbered_dir
INTERNALERROR> try_cleanup(path, consider_lock_dead_if_created_before)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/pathlib.py", line 227, in try_cleanup
INTERNALERROR> if ensure_deletable(path, consider_lock_dead_if_created_before):
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/pathlib.py", line 219, in ensure_deletable
INTERNALERROR> lock.unlink()
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/3.7.2/lib/python3.7/pathlib.py", line 1277, in unlink
INTERNALERROR> self._accessor.unlink(self)
INTERNALERROR> FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-jenkins/pytest-1681/.lock'
```
A potential mitigation to this problem might be to generate the numbered dir with a random suffix rather than a sequential one, unless some code depends on this logic: https://github.com/pytest-dev/pytest/blob/4.6.3/src/_pytest/pathlib.py#L123
author:
url:https://github.com/demartinofra
type:Person
name:demartinofra
datePublished:2019-06-17T13:36:29.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/5456/pytest/issues/5456
context:https://schema.org
headline:FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-jenkins/pytest-1681/.lock'
articleBody:Same issue as in #4181 .
I think there are still some edge cases where this is not handled correctly. I am running a series of concurrent pytest processes and was able to reproduce the issue. Here is the stack trace:
```
============================= test session starts ==============================
platform linux -- Python 3.7.2, pytest-4.6.3, py-1.8.0, pluggy-0.12.0 -- /usr/local/bin/.pyenv/versions/integration-tests/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.7.2', 'Platform': 'Linux-4.14.77-70.59.amzn1.x86_64-x86_64-with-debian-9.8', 'Packages': {'pytest': '4.6.3', 'py': '1.8.0', 'pluggy': '0.12.0'}, 'Plugins': {'html': '1.20.0', 'metadata': '1.8.0', 'xdist': '1.29.0', 'forked': '1.0.2', 'datadir': '1.3.0', 'sugar': '0.9.2', 'rerunfailures': '7.0'}, 'BUILD_NUMBER': '189', 'BUILD_ID': '189', 'BUILD_URL': 'https://parallelcluster-jenkins-commercial.aka.corp.amazon.com/job/integration_tests/189/', 'NODE_NAME': 'master', 'JOB_NAME': 'integration_tests', 'BUILD_TAG': 'jenkins-integration_tests-189', 'EXECUTOR_NUMBER': '15', 'JENKINS_URL': 'https://parallelcluster-jenkins-commercial.aka.corp.amazon.com/', 'JAVA_HOME': '/docker-java-home', 'WORKSPACE': '/var/jenkins_home/workspace/integration_tests'}
rootdir: /var/jenkins_home/workspace/integration_tests/pcluster/tests/integration-tests/tests
plugins: html-1.20.0, metadata-1.8.0, xdist-1.29.0, forked-1.0.2, datadir-1.3.0, sugar-0.9.2, rerunfailures-7.0
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I
[gw0] linux Python 3.7.2 cwd: /var/jenkins_home/workspace/integration_tests/pcluster/tests/integration-tests
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/main.py", line 204, in wrap_session
INTERNALERROR> config.hook.pytest_sessionstart(session=session)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/hooks.py", line 289, in __call__
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/manager.py", line 87, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/manager.py", line 81, in <lambda>
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/xdist/dsession.py", line 81, in pytest_sessionstart
INTERNALERROR> nodes = self.nodemanager.setup_nodes(putevent=self.queue.put)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/xdist/workermanage.py", line 64, in setup_nodes
INTERNALERROR> nodes.append(self.setup_node(spec, putevent))
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/xdist/workermanage.py", line 73, in setup_node
INTERNALERROR> node.setup()
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/xdist/workermanage.py", line 246, in setup
INTERNALERROR> basetemp = self.config._tmpdirhandler.getbasetemp()
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/tmpdir.py", line 118, in getbasetemp
INTERNALERROR> return py.path.local(self._tmppath_factory.getbasetemp().resolve())
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/tmpdir.py", line 79, in getbasetemp
INTERNALERROR> prefix="pytest-", root=rootdir, keep=3, lock_timeout=LOCK_TIMEOUT
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/pathlib.py", line 267, in make_numbered_dir_with_cleanup
INTERNALERROR> consider_lock_dead_if_created_before=consider_lock_dead_if_created_before,
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/pathlib.py", line 246, in cleanup_numbered_dir
INTERNALERROR> try_cleanup(path, consider_lock_dead_if_created_before)
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/pathlib.py", line 227, in try_cleanup
INTERNALERROR> if ensure_deletable(path, consider_lock_dead_if_created_before):
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/integration-tests/lib/python3.7/site-packages/_pytest/pathlib.py", line 219, in ensure_deletable
INTERNALERROR> lock.unlink()
INTERNALERROR> File "/usr/local/bin/.pyenv/versions/3.7.2/lib/python3.7/pathlib.py", line 1277, in unlink
INTERNALERROR> self._accessor.unlink(self)
INTERNALERROR> FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-jenkins/pytest-1681/.lock'
```
A potential mitigation to this problem might be to generate the numbered dir with a random suffix rather than a sequential one, unless some code depends on this logic: https://github.com/pytest-dev/pytest/blob/4.6.3/src/_pytest/pathlib.py#L123
author:
url:https://github.com/demartinofra
type:Person
name:demartinofra
datePublished:2019-06-17T13:36:29.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:5
url:https://github.com/5456/pytest/issues/5456
Person:
url:https://github.com/demartinofra
name:demartinofra
url:https://github.com/demartinofra
name:demartinofra
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:5
interactionType:https://schema.org/CommentAction
userInteractionCount:5
External Links {π}(2)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net