Repository navigation
improvement(workflows): a clean errorMessage on Function errors and table writes report ignored columns - #10328
Merged
waleedlatif1 merged 3 commits intoNov 23, 2026
Conversation
…able writes report ignored columns A failed Function block now also outputs errorMessage: the thrown message without the Line N: `code` - prefix and type label that error carries, so a workflow can reply to a caller without leaking its code. error is unchanged. Declared through a new BlockConfig errorOutputs field that the catalog, compiler, lint, SDK types and executor reference schema read the way they read the implicit error output. Table block writes (insert, batch insert, upsert, update, update by filter) now output ignoredColumns: the data keys naming no column, which the lenient workflow write drops. Computed by the table use cases where the keys are dropped; stored rows are unchanged.
…on-error-message-table-ignored-columns # Conflicts: # packages/workflow-code/src/compile/values.ts
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Medium impact] The changes since the previous review appear safe to merge. SummaryAdds
Reviews (2) · Last reviewed commit: "fix(function): drop Node's bracketed cod..." · Reviewed by Greptile |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 58 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…te the fallback in runtime semantics
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
waleedlatif1
deleted the
improvement/function-error-message-table-ignored-columns
branch
November 23, 2026 02:11
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
errorMessage: the thrown message without theLine N: `code` -prefix and type label thaterrorcarries, so a workflow can reply to a caller (<fn.errorMessage>) without exposing its code.erroris unchanged byte for byte.error, so<fn.errorMessage>is never empty on the error path.BlockConfig.errorOutputsfield, read everywhere the impliciterroris: catalog, workflow-code compile (accepted with anonErroredge,W_OUTPUT_PATH_UNDECLAREDwithout,W_UNKNOWN_OUTPUT_PATHon blocks that don't declare it), JSON-field typing, lint, SDK types (Block<O, E>) and the executor reference schema (resolves empty after a success, likeerror)error: the value sits in the same error output, gets the same provenance scan, and a database failure masks bothignoredColumns: data keys naming no column, which the lenient workflow write drops. Always an array ([]when every key matched), so it's referenceable without a null guard. The table use cases compute it where the keys get dropped. Stored rows and the grid / v2 routes are unchanged.operations apply --help, SYNTAX.md and runtime semantics; the Function block and tables docsType of Change
Testing
.errorstays byte-identical across 16 error shapes (pinned exactly and confirmed against the staging route; only theerrorMessageassertions fail there): runtime/TypeError/syntax, non-Error throws, multi-line, no line, resolved values, E2B JS/Python<fn.errorMessage>reaches a downstream Response over an error edge, is recorded without an edge, falls back toerror, and resolves empty after a successignored-columns.integration.tscovers none / some / all keys unknown, batch, upsert insert/update, update, and update by filter. It checks stored rows too.check:audits;check:test-types;check:migrations; docs compatibility; lint; root type-check;check-block-registry;test:scriptserrorOutputs), generated tool outputs, table docs, CLI help docs, and the v2 source-catalog OpenAPI (optionalerrorOutputs)Checklist
test-auditauthoring gate)