OpenFn / OpenFn/kit

worker-ish: compilation errors don't report the step or code in which the error occured

Open
#887 1 comment 0 reactions 1 assignee View on GitHub

@josephjclark is already working on this.

Since Feb 28, 2025.

DevX
Dominant language
TypeScript
Stars
21
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
17

Description

I'm looking at a customer's workflow. It's failing for some mysterious reason and they can't work out why.

The logs only say this:

R/T Run complete with status: crash
CompileError: 7f2d5da0-ff9b-4a2a-8942-478d7e4251bc: Unexpected token (2:14)

There are like 12 steps in this workflow.The error could be in any one of them.

We really need to report more information and probably a clearer error.

This occurs during compilation in the engine, which happens before the run actually starts. There's an issue around this because it's not ideal. There's also problems like: a syntax error in an orphaned job will still cause the whole workflow to fail.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.