-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Update pytest import_path
location
#29154
Update pytest import_path
location
#29154
Conversation
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.
Thank you @loadams for the fixes! Pinging @ydshieh and @amyeroberts for a second look.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
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.
LGTM - thanks for fixing!
Let's wait for a final review from @ydshieh - as he'll be the one who has to handle anything in case this breaks something!
Thanks @amyeroberts! @ydshieh - could you review when you have time, I'd like to update DeepSpeed to the latest here when possible. |
Hi @ydshieh, curious if you'd have some time to review this PR? |
Hi @amyeroberts @pacman100 - gentle ping on being able to merge this PR? |
I'm going to merge, as I'm pretty sure it's OK - @ydshieh for reference |
Thanks @amyeroberts! |
* Update to pull function from proper lib * Fix ruff formatting error * Remove accidently added file
* Update to pull function from proper lib * Fix ruff formatting error * Remove accidently added file
The underlying issue preventing us from using pytest 8.0.1+ is in transformers. Here is a [PR that fixes the issue](huggingface/transformers#29154) that will need to be merged and then a new release of transformers before we can complete this PR. No impact to nv-nightly, run [here](https://github.com/microsoft/DeepSpeed/actions/runs/8575192380/job/23503659644) Currently errors on nv-inference from [the PR](https://github.com/microsoft/DeepSpeed/actions/runs/8575187611/job/23503647378), but the same tests are broken in [master](https://github.com/microsoft/DeepSpeed/actions/runs/8575185551/job/23503640238).
The underlying issue preventing us from using pytest 8.0.1+ is in transformers. Here is a [PR that fixes the issue](huggingface/transformers#29154) that will need to be merged and then a new release of transformers before we can complete this PR. No impact to nv-nightly, run [here](https://github.com/microsoft/DeepSpeed/actions/runs/8575192380/job/23503659644) Currently errors on nv-inference from [the PR](https://github.com/microsoft/DeepSpeed/actions/runs/8575187611/job/23503647378), but the same tests are broken in [master](https://github.com/microsoft/DeepSpeed/actions/runs/8575185551/job/23503640238).
…ft#5164) The underlying issue preventing us from using pytest 8.0.1+ is in transformers. Here is a [PR that fixes the issue](huggingface/transformers#29154) that will need to be merged and then a new release of transformers before we can complete this PR. No impact to nv-nightly, run [here](https://github.com/microsoft/DeepSpeed/actions/runs/8575192380/job/23503659644) Currently errors on nv-inference from [the PR](https://github.com/microsoft/DeepSpeed/actions/runs/8575187611/job/23503647378), but the same tests are broken in [master](https://github.com/microsoft/DeepSpeed/actions/runs/8575185551/job/23503640238).
* Update to pull function from proper lib * Fix ruff formatting error * Remove accidently added file
…ft#5164) The underlying issue preventing us from using pytest 8.0.1+ is in transformers. Here is a [PR that fixes the issue](huggingface/transformers#29154) that will need to be merged and then a new release of transformers before we can complete this PR. No impact to nv-nightly, run [here](https://github.com/microsoft/DeepSpeed/actions/runs/8575192380/job/23503659644) Currently errors on nv-inference from [the PR](https://github.com/microsoft/DeepSpeed/actions/runs/8575187611/job/23503647378), but the same tests are broken in [master](https://github.com/microsoft/DeepSpeed/actions/runs/8575185551/job/23503640238).
…ft#5164) The underlying issue preventing us from using pytest 8.0.1+ is in transformers. Here is a [PR that fixes the issue](huggingface/transformers#29154) that will need to be merged and then a new release of transformers before we can complete this PR. No impact to nv-nightly, run [here](https://github.com/microsoft/DeepSpeed/actions/runs/8575192380/job/23503659644) Currently errors on nv-inference from [the PR](https://github.com/microsoft/DeepSpeed/actions/runs/8575187611/job/23503647378), but the same tests are broken in [master](https://github.com/microsoft/DeepSpeed/actions/runs/8575185551/job/23503640238).
What does this PR do?
Fixes location of
import_path
from pytest from_pytest.doctest
to_pytest.pathlib
when using PyTest 8.0.1+ since it is finally deprecated from being in_pytest.doctest
. It is provided in_pytest.pathlib
from at least 7.2.0+ so we do not need to modify the supported pytest range insetup.py
Tested here in DeepSpeed and tests appear to be passing.
Fixes: #29155
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@muellerzr and @pacman100