Repository navigation
Conversation
…build (F9, F10, F13)
F9 - the incremental watermark pointed two refreshes back.
fetchSnapshotInfo runs BEFORE the refresh writes anything, so the newest
existing snapshot is already the last completed refresh. previousSnapshot*
carried index 1 instead - one further back - while CONFIG_REFERENCE
documented previousSnapshotTimestamp as "Last refresh timestamp" and its
example used it as
WHERE updated_at > TIMESTAMP '{{cache.previousSnapshotTimestamp}}'
So an append template re-read every row the previous refresh had already
appended, silently, and a table's second-ever refresh had no previous at
all - the incremental section did not render and it reloaded everything.
Merge mode masked it: duplicates collapse on the primary key.
BEHAVIOUR CHANGE: incremental refreshes now load a narrower, correct
window.
A second docs defect found while checking it: {{cache.currentSnapshotTimestamp}}
is documented and has NEVER existed - the implemented name is
{{cache.snapshotTimestamp}}. A template using the documented name renders
an empty string, which inside WHERE ... > TIMESTAMP '' is a SQL error.
Same class as the config keys that were documented and never read.
F10 - short credentials were returned verbatim by _dryRun.
The scrub skipped values under four bytes, so a three-character password or
PIN interpolated through conn.* came back to any caller, and MCP is
unauthenticated by default.
Redacting them regardless is not the fix either: scrubbing works by value,
because the key is gone by the time the SQL is rendered, and a one-byte
secret matches ordinary text. Measured - redacting "a" rewrote the middle
of an unrelated file path and broke the preview.
So the preview is WITHHELD when a connection holds a credential too short
to replace safely, with a message saying why. Neither leaking nor mangling.
Tested both ways: a short secret withholds, a normal connection still gets
its preview.
F13 - the tracing-off tree was stale.
Rebuilt from scratch against all the merged work; flapi-lib compiles and
links clean. Correcting the finding on one point: both binary resolvers
(conftest.py:107 and otel_helpers.py:30) default to RELEASE, not debug, so
the integration runs did exercise the right binary.
My own watermark test failed on the F9 change, correctly: it asserted the old
index-1 contract. Restructured so the scenario still discriminates - table A
moves twice, then B, so the catalog's newest belongs to B while A's own is
older - and it now also asserts the watermark is A's LAST refresh rather than
the one before it.
755 unit tests, 378 standalone integration tests.
jrosskopf
force-pushed
the
fix/release-review-remainder
branch
from
September 23, 2026 14:20
bb4cd72 to
6a67842
Compare
6 tasks done
Contributor
Author
|
Superseded by #144, the |
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.
The last three findings from the release review.
F9 — the incremental watermark pointed two refreshes back
fetchSnapshotInforuns before the refresh writes anything, so the newest existing snapshot is the last completed refresh.previousSnapshot*carried index 1 — one further back — whileCONFIG_REFERENCEdocumented it as "Last refresh timestamp" and its own example used it as the watermark:So an append template re-read every row the previous refresh had already appended, silently. And a table's second-ever refresh had no previous at all, so the incremental section didn't render and it reloaded everything. Merge mode masked it — duplicates collapse on the primary key — which is why it survived.
Behaviour change: incremental refreshes now load a narrower, correct window.
A second docs defect found while checking:
{{cache.currentSnapshotTimestamp}}is documented and has never existed — the implemented name is{{cache.snapshotTimestamp}}. A template using the documented name renders an empty string, which insideWHERE ... > TIMESTAMP ''is a SQL error. Same class as the config keys that were documented and never read.F10 — short credentials were returned verbatim by
_dryRunThe scrub skipped values under four bytes, so a three-character password or PIN interpolated through
conn.*came back to any caller — and MCP is unauthenticated by default.Redacting them regardless is not the fix either. Scrubbing works by value, since the key is gone by the time the SQL is rendered, and a one-byte secret matches ordinary text. Measured: redacting
"a"rewrote the middle of an unrelated file path.So the preview is withheld when a connection holds a credential too short to replace safely, with a message saying why. Neither leaking nor mangling. Tested both ways.
F13 — the tracing-off tree was stale
Rebuilt from scratch against all the merged work;
flapi-libcompiles and links clean.Correcting the finding on one point: both binary resolvers (
conftest.py:107,otel_helpers.py:30) default to release, not debug — so the integration runs did exercise the right binary. The stale tree was real; the consequence claimed for it was not.My own test failed on this, correctly
The watermark test asserted the old index-1 contract. Restructured so the scenario still discriminates — table A moves twice, then B, so the catalog's newest belongs to B while A's own is older — and it now also asserts the watermark is A's last refresh rather than the one before it.
755 unit, 378 standalone integration, all green.
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.