funny you should say that...
# python
h
funny you should say that...
Just upgraded, seeing errors from asyncio saying loop closed
m
yikes
That's definitely a new one
h
m
Certainly very possible
h
but all I know for sure is if I downgrade the pulumi python package from 0.17.28 to 0.17.26, it goes away
m
Where is the invoke in that code? Nothing jumps out at me...
Are there multiple loops involved?
h
it's the inner mechanism for a lambda package builder
m
Copy code
handle = self._ready.popleft()
    IndexError: pop from an empty deque
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
This seems bad.
h
yeah
unfortunately, I haven't spent enough time in the inner guts of
asyncio
to understand it
m
Is there any way to turn this into a straightforward local repro?
I'd love to dig into it
h
🤔 no idea, but i'll try?
my first guess is long-running tasks/futures?
it might also have to do with all the machinery that goes into process handling?
m
Yeah, I wondered about that
h
aside, is
pulumi.export("value", my_async_func())
a good test stand?
m
Not sure what you mean by test stand
But I would expect that to work
h
like, will it invoke the same pertinent code paths as if i embedded the process into a resource?
m
Ah
Yes, I believe so
h
ok, so far trivial repros aren't working
git bisect
puts the blame on Make
pulumi.runtime.invoke
synchronous. (#3019)
so i guess that theory is lightly confirmed
(63eb7abb5949e562b20bf9fe43bac1868e730774)
I filed https://github.com/pulumi/pulumi/issues/3038 so that there's a note where other people can find that this bug exists
m
Thank you!
h
fun fact: i don't actually have to invoke deplumi to trigger the bug, just import it
those are the best bugs