I was trying to execute tests for my package over remote machine through ssh from my master node. Both nodes have same version of the packages installed.
I'm running test like this,
pytest -d --tx ssh=ubuntu//python=python3 --rsyncdir /home/ubuntu/pkg/ /home/ubuntu/pkg -n 7
on running this, I'm getting following error,
------------------------------ coverage ------------------------------
---------------------- coverage: failed workers ----------------------
The following workers failed to return coverage data, ensure that pytest-cov is installed on these workers.
gw0
gw1
gw2
gw3
gw4
gw5
gw6
Coverage XML written to file coverage.xml
I've made sure that coverage is installed in the worker node.
coverage==6.2
pytest-cov==3.0.0
I don't know why it is still failing.
I also noticed that the code files have not been synced in the worker machine for some reason.
I'm trying to understand what is going wrong here and how to fix this.