-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Release 0.12.0 #94
Release 0.12.0 #94
Conversation
071052e
to
898a2a4
Compare
[[tool.towncrier.type]] | ||
directory = "misc" | ||
name = "Miscellaneous" | ||
showcontent = true |
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.
The showcontent = true
line above is the whole reason for changing towncrier
config. Otherwise, misc
notes are missing their content in history.rst
. I did it the same way as in trio: https://github.com/python-trio/trio/blob/master/pyproject.toml
tests/test_misc.py
Outdated
@@ -352,7 +228,7 @@ async def run_asyncio_loop(nursery, *, task_status=trio.TASK_STATUS_IGNORED): | |||
# Trigger KeyboardInterrupt that should propagate accross the coroutines | |||
signal.pthread_kill(threading.get_ident(), signal.SIGINT) | |||
|
|||
|
|||
@pytest.mark.xfail(reason="https://github.com/python-trio/trio-asyncio/issues/95", raises=RuntimeError) |
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.
This change makes CI green. See also #95.
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 for diagnosing this. I just uploaded #96 which appears to fix it. Probably worth incorporating into the release?
The test error is from Python 3.10 which dropped a heap of I'm building a minimal patch; more extensive de-loop-argument-ization (in |
required for for Python 3.10+
Codecov Report
@@ Coverage Diff @@
## master #94 +/- ##
==========================================
+ Coverage 80.64% 81.81% +1.16%
==========================================
Files 11 11
Lines 1240 1193 -47
Branches 172 172
==========================================
- Hits 1000 976 -24
+ Misses 170 154 -16
+ Partials 70 63 -7
|
@smurfix Thank you! I considered doing this change myself, but I thought it would make |
Code coverage got lower. Most of it is due to
Update: I did port |
@@ -344,7 +342,7 @@ async def _waitpid(self, pid, callback, *args): | |||
|
|||
def add_child_handler(self, pid, callback, *args): | |||
"""Add a callback to run when a child process terminates.""" | |||
h = self._loop.run_trio(self._waitpid, pid, callback, *args) | |||
h = self._loop.trio_as_future(self._waitpid, pid, callback, *args) |
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.
Codecov is not happy about this line. It was never covered by tests before, and I have no idea how to test it now. However, the change is equivalent to what it was previously:
@deprecated("0.10.0", issue=38, instead="trio_as_aio(proc)(*args)")
def run_trio(self, proc, *args):
return self.trio_as_future(proc, *args)
tests/test_misc.py
Outdated
@@ -352,7 +228,7 @@ async def run_asyncio_loop(nursery, *, task_status=trio.TASK_STATUS_IGNORED): | |||
# Trigger KeyboardInterrupt that should propagate accross the coroutines | |||
signal.pthread_kill(threading.get_ident(), signal.SIGINT) | |||
|
|||
|
|||
@pytest.mark.xfail(reason="https://github.com/python-trio/trio-asyncio/issues/95", raises=RuntimeError) |
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 for diagnosing this. I just uploaded #96 which appears to fix it. Probably worth incorporating into the release?
This reverts (cherry-picked) commits 8930bf2 and d1051b0. We will do the de-`loop=`-ification in PR python-trio#94.
Intermittent test failures are now fixed by PR python-trio#96
Interesting that this PR hasn't had any of the problems that the Mac builds have been having on other PRs. Those all seem to have failed around |
No need for `raise Exception` because we already assert the flag. fixes python-trio#103
"Fixed" the #103 deadlock in I think the underlying cause of deadlock is #104. No need to fix it for this release, because the problem was in v0.11.0 as well. |
Release notes screenshot
TODO
xfail
ed test (fixed by Cancel trio_as_aio tasks before stopping the trio-asyncio loop #96)test_asyncio_trio_adapted_no_loop
to something elsehistory.rst
history.rst
+dev
tag to the endFixes #93