Skip to content

Flakey test: Run SDK-Python integration tests / Features integration test alwaysSuspending => Combinators => Test the first successful awakeable should be returned #3170

@lsytj0413

Description

@lsytj0413

At #3166 , CI report:

✅ alwaysSuspending => SleepWithFailures => sleepAndKillServiceEndpoint(Client, ContainerHandle)
❌ alwaysSuspending => Combinators => Test the first successful awakeable should be returned
✅ alwaysSuspending => Combinators => Test awakeable or timeout using AwaitAwakeableOrTimeout
✅ alwaysSuspending => Combinators => Test awakeable or timeout using Await any
==== alwaysSuspending results
* Succeeded tests: 38 / 39

logs at:

sdk-python-integration-test-report.zip

dig into the log, find:

2025-04-16T08:06:02.410331Z WARN restate_invoker_impl
  Invocation error, retrying in 122ms 112us 144ns.
    error: Got a (transient) error from the service while processing invocation.
      [500 Internal] TypeError('to_durable_future.<locals>.side_effect() takes 1 positional argument but 4 were given').
      > This error originated after executing Command: Run(named "run should fail command")[command index 6]
    restate.invocation.id: inv_1hgVUmTueTje6jP81ATNyhhahOn4QAEODA
    restate.invocation.target: VirtualObjectCommandInterpreter/168fbfe6-666d-4a2f-bb5c-0b2747a6b211/interpretCommands
    restate.error.code: RT0007
    Visit https://docs.restate.dev/references/errors#RT0007 for more info and suggestions.
    restate.invocation.error.stacktrace:
      Traceback (most recent call last):
        File "/usr/local/lib/python3.12/site-packages/restate/server_context.py", line 424, in create_run_coroutine
          action_result = typing.cast(T, await asyncio.to_thread(action))
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.12/asyncio/threads.py", line 25, in to_thread
          return await loop.run_in_executor(None, func_call)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 59, in run
          result = self.fn(*self.args, **self.kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      TypeError: to_durable_future.<locals>.side_effect() takes 1 positional argument but 4 were given

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions