Code Monkey home page Code Monkey logo

Comments (13)

bubenkoff avatar bubenkoff commented on May 30, 2024

when you pass
--cloud-node=@
what is the intent?
it should be the address

from pytest-cloud.

hah86 avatar hah86 commented on May 30, 2024

Yes, it is like this --cloud-node=username@IP address of the remote note

from pytest-cloud.

bubenkoff avatar bubenkoff commented on May 30, 2024

double-check if the node is connectable via ssh?

from pytest-cloud.

bubenkoff avatar bubenkoff commented on May 30, 2024

also, do you see that there's no python3.7 available on the node?

from pytest-cloud.

hah86 avatar hah86 commented on May 30, 2024

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.

hah86 avatar hah86 commented on May 30, 2024

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.

hah86 avatar hah86 commented on May 30, 2024

local machines has python3.7.4 but remote machines has 3.6........does this cause problem ?

from pytest-cloud.

bubenkoff avatar bubenkoff commented on May 30, 2024

of course the same python version has to be available on all the nodes

from pytest-cloud.

bubenkoff avatar bubenkoff commented on May 30, 2024

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.

hah86 avatar hah86 commented on May 30, 2024

ok got it .... i will raise a PR

from pytest-cloud.

hah86 avatar hah86 commented on May 30, 2024

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.

bubenkoff avatar bubenkoff commented on May 30, 2024

did you resolve the python version issue on all the nodes?

from pytest-cloud.

hah86 avatar hah86 commented on May 30, 2024

No. i am yet to resolve that issue.
i have raised a PR, please review and merge

from pytest-cloud.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.