-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Add locket
as a dependency instead of vendoring
#6166
Conversation
I do not think these test failures are related to locket. I've confirmed that the resource warnings reported in #2486 are no longer raised in the Prefect test suite so I believe mwilliamson/locket.py#14 is resolved. @mwilliamson may want to wait for confirmation from @mrocklin but it seems safe to cut a release with the windows/resource fixes, I can update this pull request to require it afterwards. Thanks! |
yeah, the test failure that I'm seeing here is unrelated. I've seen this a bit recently. cc'ing @fjetter who may be able to handle it separately
|
Woo!
This is all good to go from my end. |
Unit Test Results 16 files ±0 16 suites ±0 7h 29m 53s ⏱️ - 2m 44s For more details on these failures, see this check. Results for commit 0d425ce. ± Comparison against base commit 370f456. ♻️ This comment has been updated with latest results. |
It looks like CI is sad because locket isn't yet up. Once it's up I'm happy to press the green button. Let me know if I should rerun CI. |
I'm guessing that you're also aware of errors like these, and that they'll be resolved when the new version comes out? https://github.com/dask/distributed/runs/6104354678?check_suite_focus=true |
Locket looks up https://pypi.org/project/locket/ but CI isn't detecting it? I'm presuming I've added the package incorrectly. Are there contributing guides for adding a dependency or another pull request I could refer to? There are a lot of files listing dependencies haha. |
See continuous_integration/environment*.yaml |
It looks like the conda build CI test failure is mostly saying "this isn't up on conda yet, and so I'm hesitant to let you merge". it looks like the bots are maybe handling this though: conda-forge/locket-feedstock#9 |
Hrm, looks like the recipe there needs to be updated a bit. Do you want to take this on @madkinsz , or bug the locket maintainers? If not I can ask someone on our end to poke things there. Learning about conda-forge is a good activity though, if you haven't engaged already. |
Apparently some of these tests are not rock solid. E.g. in #6166 https://github.com/dask/distributed/runs/6101034638?check_suite_focus=true Based on the traceback, it looks like the mock.patch was not properly removed after leaving the context manager. To rule this out and see if there is something else ongoing, I removed the mocks in favour of some event/lock/subclass magic. I realise that these tests are not great and are extremely difficult to maintain. We can have a conversation about removing some of them but I would like to not have this conversation right now. I consider this new approach easier to reason about and at least slightly easier to maintain. As part of #5896 I very much hope that we can remove some, if not all of these tests and replace them with some much easier unit tests. I would like to have the conversation about removing code once we are in a position to replace them with something simpler. This is not in scope for this PR
Ah I just presumed it didn't have a conda release. I'll take a look at the feedstock, I've got a bit of experience maintaining the Prefect one but more can't hurt. Once that's released I'll need to update the CI environments here to pull from conda instead of pip. |
Cool. Thanks Michael.
…On Fri, Apr 22, 2022 at 10:01 AM Michael Adkins ***@***.***> wrote:
Ah I just presumed it didn't have a conda release. I'll take a look at the
feedstock, I've got a bit of experience maintaining the Prefect one but
more can't hurt. Once that's released I'll need to update the CI
environments here to pull from conda instead of pip.
—
Reply to this email directly, view it on GitHub
<#6166 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKZTCRK3MXMNPYRSPATELVGK5LZANCNFSM5T42QXNQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@mrocklin should be available now, perhaps a rerun? |
Running |
This is in. Thanks @madkinsz ! @jrbourbeau @jsignell whoever handles the next release should probably add |
This reverts commit 28fd2f7.
This was vendored to get an unmerged improvement to Windows handling of file locks that has now been merged. It is not yet released, so this pull request may not pass CI until a new locket release is made. The maintainer is active and a new release will likely be made soon after a dangling file descriptor fix discussed in mwilliamson/locket.py#14 is confirmed to be working as intended.
See mwilliamson/locket.py#8 (comment) for discussion about vendoring.
Replaces #6122
pre-commit run --all-files