-
-
Notifications
You must be signed in to change notification settings - Fork 747
utils_test.popen: allow avoiding path modification, use sysconfig for portability #9174
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
Conversation
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 31 files ± 0 31 suites ±0 11h 19m 30s ⏱️ - 10m 5s Results for commit 782156b. ± Comparison against base commit 1c130e4. ♻️ This comment has been updated with latest results. |
jacobtomlinson
left a comment
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.
Thanks James! Overall I'm +1 on this change.
There are some failures on Windows that seem related though
FAILED distributed/cli/tests/test_dask_worker.py::test_dashboard_non_standard_ports - FileNotFoundError: Could not find 'C:\Users\runneradmin\miniconda3\envs\dask-distributed\Scripts\dask'. To avoid this warning, provide an absolute path to an existing installation to popen().
FAILED distributed/cli/tests/test_dask_worker.py::test_single_executable_works - FileNotFoundError: Could not find 'C:\Users\runneradmin\miniconda3\envs\dask-distributed\Scripts\dask-worker'. To avoid this warning, provide an absolute path to an existing installation to popen().
FAILED distributed/tests/test_utils_test.py::test_popen_file_not_found - Failed: Invalid regex pattern provided to 'match': incomplete escape \U at position 18
|
They do seem related, thanks for pulling those out. I was able to reproduce both of these on a Windows system. I've pushed fixes to resolve them: 67837d6 The issues:
If you see this and think the extra handling just to raise a more informative error message is not worth it, let me know and I'd be happy to remove that in favor of just passing things through to |
jacobtomlinson
left a comment
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.
Thanks @jameslamb
Closes #5069
Small updates to
utils_test.popen():sysconfig.get_path("scripts")to handle differences across operating systemspopen(["/usr/local/bin/dask"]))Notes for Reviewers
pre-commit run --all-filesHow I tested this
Locally, on my arm64 Mac