A newer version of hypercorn has been synced to Plucky, seems to drop
the node-mermaid dependency
(https://launchpad.net/ubuntu/+source/hypercorn/0.17.3-2). Though it
fails on some test, see below for details. The package builds
successfully on Debian Sid and reproducible builds, so it looks like the
test failure is some Ubuntu-specific issue.

=================================== FAILURES ===================================
_____________________________ test_startup_failure _____________________________

    @pytest.mark.trio
    async def test_startup_failure() -> None:
        lifespan = Lifespan(ASGIWrapper(_lifespan_failure), Config(), {})
        try:
>           async with trio.open_nursery() as lifespan_nursery:

lifespan   = <hypercorn.trio.lifespan.Lifespan object at 0x7cf77f257c80>
lifespan_nursery = <trio.Nursery object at 0x7cf77f498710>

tests/trio/test_lifespan.py:45: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib/python3/dist-packages/trio/_core/_run.py:971: in __aexit__
    raise combined_error_from_nursery
        etype      = None
        exc        = None
        old_context = None
        self       = NurseryManager(strict_exception_groups=False)
        tb         = None
hypercorn/trio/lifespan.py:41: in handle_lifespan
    await self.app(
        scope      = {'asgi': {'spec_version': '2.0', 'version': '3.0'}, 
'state': {}, 'type': 'lifespan'}
        self       = <hypercorn.trio.lifespan.Lifespan object at 0x7cf77f257c80>
        task_status = <Task status object at 0x7cf77f2788c0>
hypercorn/app_wrappers.py:34: in __call__
    await self.app(scope, receive, send)
        call_soon  = <function run at 0x7cf780f26f20>
        receive    = <bound method Lifespan.asgi_receive of 
<hypercorn.trio.lifespan.Lifespan object at 0x7cf77f257c80>>
        scope      = {'asgi': {'spec_version': '2.0', 'version': '3.0'}, 
'state': {}, 'type': 'lifespan'}
        self       = <hypercorn.app_wrappers.ASGIWrapper object at 
0x7cf77f257b30>
        send       = <bound method Lifespan.asgi_send of 
<hypercorn.trio.lifespan.Lifespan object at 0x7cf77f257c80>>
        sync_spawn = <function run_sync at 0x7cf780f263e0>
tests/trio/test_lifespan.py:37: in _lifespan_failure
    await send({"type": "lifespan.startup.failed", "message": "Failure"})
        message    = {'type': 'lifespan.startup'}
        receive    = <bound method Lifespan.asgi_receive of 
<hypercorn.trio.lifespan.Lifespan object at 0x7cf77f257c80>>
        scope      = {'asgi': {'spec_version': '2.0', 'version': '3.0'}, 
'state': {}, 'type': 'lifespan'}
        send       = <bound method Lifespan.asgi_send of 
<hypercorn.trio.lifespan.Lifespan object at 0x7cf77f257c80>>
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <hypercorn.trio.lifespan.Lifespan object at 0x7cf77f257c80>
message = {'message': 'Failure', 'type': 'lifespan.startup.failed'}

    async def asgi_send(self, message: ASGISendEvent) -> None:
        if message["type"] == "lifespan.startup.complete":
            self.startup.set()
        elif message["type"] == "lifespan.shutdown.complete":
            self.shutdown.set()
        elif message["type"] == "lifespan.startup.failed":
>           raise LifespanFailureError("startup", message.get("message", ""))
E           hypercorn.utils.LifespanFailureError: Lifespan failure in startup. 
'Failure'

message    = {'message': 'Failure', 'type': 'lifespan.startup.failed'}
self       = <hypercorn.trio.lifespan.Lifespan object at 0x7cf77f257c80>

hypercorn/trio/lifespan.py:106: LifespanFailureError
=========================== short test summary info ============================
FAILED tests/trio/test_lifespan.py::test_startup_failure - hypercorn.utils.Li...


https://launchpadlibrarian.net/757785166/buildlog_ubuntu-plucky-amd64.hypercorn_0.17.3-2_BUILDING.txt.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2069202

Title:
  hypercorn depends on node-mermaid which has been removed from the
  archive

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hypercorn/+bug/2069202/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to