Skip to content

Serialize and restore compiler diagnostics#596

Merged
simolus3 merged 1 commit intomainfrom
serialize-compiler-diagnostics
Apr 7, 2026
Merged

Serialize and restore compiler diagnostics#596
simolus3 merged 1 commit intomainfrom
serialize-compiler-diagnostics

Conversation

@simolus3
Copy link
Copy Markdown
Contributor

@simolus3 simolus3 commented Apr 7, 2026

When compiling Sync Streams, users would only see errors once during the deployment. This is a regression from Sync Rules, which would also display error in /api/admin/v1/diagnostics. We want to avoid re-parsing Sync Streams, but we should persist errors from the initial validation and re-report them.

Since ReplicationError is already a serializable type (through ts-codec), this stores errors along with the sync plan in bucket storage.

@simolus3 simolus3 requested a review from rkistner April 7, 2026 12:56
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 7, 2026

🦋 Changeset detected

Latest commit: 3900344

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@powersync/service-module-postgres-storage Patch
@powersync/service-core Patch
@powersync/service-schema Patch
@powersync/service-module-mongodb Patch
@powersync/service-module-mssql Patch
@powersync/service-module-mysql Patch
@powersync/service-module-postgres Patch
@powersync/service-image Patch
@powersync/service-core-tests Patch
@powersync/service-module-core Patch
@powersync/service-module-mongodb-storage Patch
test-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@simolus3 simolus3 merged commit b6a7896 into main Apr 7, 2026
44 checks passed
@simolus3 simolus3 deleted the serialize-compiler-diagnostics branch April 7, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants