Skip to content

Flowctl test hangs when lambda throws an exception #123

@psFried

Description

@psFried

Steps to reproduce:

  • Declare any typescript derivation in flow.yaml
  • Write a test that ingests a document
  • Leave the placeholder lambda implementation that throws Error("not implemented"), but put underscores in front of the parameter names so that the linter won't error the build.
  • Run flowctl test

Expected output is that the test should show as failed. Ideally it would print something like "publish lambda returned error: not implemented".

What's actually happening is that it logs the error, but then hangs indefinitely. You need to ctrl+c in order to stop it. I've attached the full test output, in addition to the goroutine traces, which I captured after the tests had hung, and the output of a gazctl shards list.

test-out.txt
test-goroutines.txt
test-shards.txt

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