Open micsthepick opened 1 month ago
possibly related: #82
... and what makes me think so, is the error from scalene:
Scalene: could not find input file /home/mike/sources/SmokeDetector/-u
Can you try putting ---
after the Scalene flag(s) and before pytest
?
@emeryberger still reproduces with the following: scalene --profile-all --- -m pytest -W default::Warning --cov=chatcommunicate --cov=findspam --cov=globalvars --cov=spamhandling --cov=datahandling --cov=chatcomm ands --cov=helpers -n 3 --dist loadgroup --timeout=300 test
just in case I needed to put -m pytest
before the ---
, the following doesn't work either:
scalene --profile-all -m pytest --- -W default::Warning --cov=chatcommunicate --cov=findspam --cov=globalvars --cov=spamhandling --cov=datahandling --cov=chatcomm
ands --cov=helpers -n 3 --dist loadgroup --timeout=300 test
Describe the bug Pytest cannot run due to below error(s):
To Reproduce Steps to reproduce the behavior: (tested in WSL2) - Setup a conda env with scalene, clone github.com:charcoal-se/smokedetector.git, pip install -r requirements.txt, and run the following command (modified from a CI yaml)
scalene --profile-all -m pytest -W default::Warning --cov=chatcommunicate --cov=findspam --cov=globalvars --cov=spamhandling --cov=datahandling --cov=chatcommands --cov=helpers -n 3 --dist loadgroup --timeout=300 test
Please include a minimum working example if at all possible.
Expected behavior Runs like as if I'd replaced
scalene --profile-all
with justpython
.Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Version:
If you have not yet tried with the repository version (
python3 -m pip install git+https://github.com/plasma-umass/scalene
), please try that before reporting. (sidenote this may be more helpful at the top of the issue template) - replicates with latest.Additional context SmokeDetector can take a while to clone (not too long), so if you think that this might be solvable without cloning it, I'd certainly recommend investigating that way.