Repository navigation
♻️ refactor(sink/postgres): typed sentinel errors for Export failure stages (F61) - #50
Merged
Merged
Conversation
…F61) Replace brittle err.Error() substring checks with errors.Is sentinels for decode, tx, upsert, bulk-upsert, and stale-delete failure paths.
Collaborator
Author
Gate matrix
Head: No self-merge — awaiting maintainer review. |
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
konih
added a commit
that referenced
this pull request
Sep 10, 2026
markdownlint-cli2 0.23.2 (latest) pins smol-toml 1.7.0 exactly, so the fix goes in as an npm override next to the existing js-yaml one. Closes Dependabot alert #50.
konih
added a commit
that referenced
this pull request
Sep 10, 2026
markdownlint-cli2 0.23.2 (latest) pins smol-toml 1.7.0 exactly, so the fix goes in as an npm override next to the existing js-yaml one. Closes Dependabot alert #50.
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
internal/sink/postgres/errors.gofor Export failure stages (decode, tx, upsert, bulk-upsert, stale-delete), matching the bigquery/s3 F61 pattern.err.Error()substring assertions in postgres sink tests witherrors.Ischecks against the new sentinels.Error()text is unchanged byte-for-byte — pure typed-error refactor, no observable behavior change.Delivers the postgres slice of BACKLOG.md §5 rank 7 (F61 — typed errors for brittle
err.Error()asserts). F61/F62 (validation/s3) shipped via PR #34; F66 (bigquery) via PR #44.Test plan
go build ./...task verifytask lint/ arch-linttask test(full suite incl. envtest)task coverage(82.4%, floor 72%)task scrubtask changelog:write+task changelog:verify