-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DPE-6042] Make tox commands resilient to white-space paths #678
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #678 +/- ##
=======================================
Coverage 71.40% 71.40%
=======================================
Files 13 13
Lines 3189 3189
Branches 475 475
=======================================
Hits 2277 2277
Misses 797 797
Partials 115 115 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, @sinclert-canonical! I saw that the unit tox environment still fails because it has another path variable in the following command:
poetry run coverage run --source={[vars]src_path} \
-m pytest -v --tb native -s {posargs} {[vars]tests_path}/unit
I am confused. Both Running the unit test command locally, in this branch, works, as well as the CI job associated with this changes (reference). Could you share the CLI entry-point you are executing to that failure? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I believe that in one of my tests yesterday I probably forgot to checkout the PR branch again. Now it's working.
Thanks folks! Will go ahead and merge it. Just FYI: I think this tiny fix could be applied to, literally, all the MySQL / PostgreSQL codebases. So, if you agree if the chosen approach, prepare for a myriad of tiny PRs 😄 |
Yes, do you have a list of all the repos to tweak? |
This PR fixes tox.ini commands when the repository is cloned on a white-space containing path. The proposed approach quotes the paths where they are defined (central place), instead of where they are used (distributed throughout the file). However, we could go with the other approach if preferred.
How to reproduce:
Additional considerations
Using the quoted paths to set up the
PYTHONPATH
does not work. This can be tested by running the unit tests.References