Comments (13)
when you pass
--cloud-node=@
what is the intent?
it should be the address
from pytest-cloud.
Yes, it is like this --cloud-node=username@IP address of the remote note
from pytest-cloud.
double-check if the node is connectable via ssh?
from pytest-cloud.
also, do you see that there's no python3.7 available on the node?
from pytest-cloud.
Yes, i have checked it, i am able to connect to the node via ssh.
i am passing this parameter so that it picks virtualenv from the local machine --cloud-virtualenv-path=local virtualenv path
from pytest-cloud.
if i do not provide --cloud-virualenv-path below error is thrown
(workvenv) bash-3.2$ pytest tests/ [email protected] --cloud-chdir=/home/hramamurthy --cloud-max-processes=2 --rsyncdir=.
Detected root dir: /Users/harish/Work/PPMPro/automation
/Users/harish/Work/workvenv/lib/python3.7/site-packages/psycopg2/init.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: http://initd.org/psycopg/docs/install.html#binary-install-from-pypi.
""")
Traceback (most recent call last):
File "/Users/harish/Work/workvenv/bin/pytest", line 8, in
sys.exit(main())
File "/Users/harish/Work/workvenv/lib/python3.7/site-packages/_pytest/config/init.py", line 92, in main
config=config
File "/Users/harish/Work/workvenv/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in call
return self._hookexec(self, self.get_hookimpls(), kwargs)
File "/Users/harish/Work/workvenv/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/Users/harish/Work/workvenv/lib/python3.7/site-packages/pluggy/manager.py", line 87, in
firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
File "/Users/harish/Work/workvenv/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
return outcome.get_result()
File "/Users/harish/Work/workvenv/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File "/Users/harish/Work/workvenv/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/Users/harish/Work/workvenv/lib/python3.7/site-packages/pytest_cloud/plugin.py", line 136, in pytest_cmdline_main
check_options(config)
File "/Users/harish/Work/workvenv/lib/python3.7/site-packages/pytest_cloud/plugin.py", line 335, in check_options
config=config)
File "/Users/harish/Work/workvenv/lib/python3.7/site-packages/pytest_cloud/plugin.py", line 270, in get_nodes_specs
**n_m.rsyncoptions)
UnboundLocalError: local variable 'n_m' referenced before assignment
from pytest-cloud.
local machines has python3.7.4 but remote machines has 3.6........does this cause problem ?
from pytest-cloud.
of course the same python version has to be available on all the nodes
from pytest-cloud.
but there's also a bug indeed:
if virtualenv_path:
n_m = NodeManager(config, specs=[])
virtualenv_path = os.path.relpath(virtualenv_path)
this has to be:
n_m = NodeManager(config, specs=[])
if virtualenv_path:
virtualenv_path = os.path.relpath(virtualenv_path)
in the pytest_cloud/plugin.py
please submit a PR
from pytest-cloud.
ok got it .... i will raise a PR
from pytest-cloud.
i have locally made the changes stated above and still getting this error
_pytest.outcomes.Exit: None of the given test nodes are connectable
from pytest-cloud.
did you resolve the python version issue on all the nodes?
from pytest-cloud.
No. i am yet to resolve that issue.
i have raised a PR, please review and merge
from pytest-cloud.
Related Issues (11)
- Fails on remote node without virtualenv HOT 2
- pytest-cloud uses unsupported arcfour cipher HOT 1
- README crate badge sends to "Page removed" HOT 3
- pytest-cloud is not working with pytest-xdist>1.25.0 HOT 3
- Upcoming incompatibility in pytest-xdist 2.0: "slave" aliases removed
- ValueError: ("the use of non-builtin globals isn't supported") HOT 23
- ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import). + "no tests ran" HOT 11
- Can the version dependency be removed? HOT 1
- How do you specify multiple directories to rsyncignore? HOT 1
- Fails with python3 (3.4.4) with raise RuntimeError('parallel is not found.') HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-cloud.