Skip to content

fix(api): materialize sink call sites — finish() → into_parts() (#1529 × #1552 merge skew) - #1586

Merged
aaj3f merged 3 commits into
mainfrom
fix/materialize-sink-into-parts
Aug 3, 2026
Merged

aaj3f merged 3 commits into
mainfrom
fix/materialize-sink-into-parts

Conversation

@aaj3f

@aaj3f aaj3f commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Main currently fails cargo check -p fluree-db-api --all-features --all-targets with two E0308s in fluree-db-api/src/materialize.rs (:327, :869). Cause: cross-PR semantic skew — #1529 (merged 18:12) added two sink.finish() call sites destructuring the spool tuple; #1552 (merged 19:40) renamed that tuple-returning method to into_parts() and adapted every caller visible on its branch, which predated #1529's merge. Each PR was CI-green against pre-other main; no textual conflict existed to flag it.

This is the same two-line mechanical rename #1552 applied to its own callers, nothing more. The two similarly-named writer.finish() calls at :1442/:1757 are a different type (the verify spool writer) and are deliberately untouched.

Verified at head: cargo check -p fluree-db-api --all-features --all-targets clean (the reproducing command), materialize lib tests 20/20.

Update (third skew site): #1552 also made emit_triple fallible; #1529's InterningObserver discarded the new Result (an encode error would have vanished silently — and it fails main's -D warnings clippy). 2910309a7 propagates it as an R2rmlError through the observer's existing Result return, matching the file's error-wrap idiom. Note main's own push CI at the #1552 merge is red across test/clippy/testsuite-sparql from these same skew sites — this PR should restore it.

@aaj3f

aaj3f commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Independent corroboration: a second session diagnosed the same break in parallel and derived the same three call sites before discovering this PR (see closed #1587). Root cause verified from the CI history — parent dcfd783 green, merge commit eadc31e red — and from a clean worktree at origin/main with no other changes: #1552 renamed the inherent ImportSink::finish() → into_parts() to free the name for GraphSink::finish() (returns unit), #1529 landed materialize.rs calling sink.finish() during that review, and each PR's CI ran green against its own pre-merge base — the merge commit is the first tree where the two coexist, so no per-PR CI could have caught it. Equivalent edits verified: cargo check --workspace --all-targets clean, clippy -p fluree-db-api --all-features --all-targets -- -D warnings clean, materialize-scoped tests 22/22. The propagation form on the emit_triple site is the right call — ImportSink defers encode errors (emit_* stashes the first failure; into_parts() surfaces it), so the ? cannot fire today and stays sound if that contract ever changes. Every open PR in the repo inherits main's red until this lands.

@zonotope zonotope left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🪶

@aaj3f
aaj3f merged commit 559d38c into main Aug 3, 2026
15 checks passed
@aaj3f
aaj3f deleted the fix/materialize-sink-into-parts branch August 3, 2026 23:06
aaj3f added a commit that referenced this pull request Aug 3, 2026
…d-fold

Puts the P3 soundness core on the true final tree. #1586 renamed the materialize
spool tuple finish()->into_parts() (the #1529 x #1552 merge skew); this branch's
pre-#1552 call sites are superseded by main's repaired versions (I never touched
those lines, so git takes main's side cleanly). merge-tree verified conflict-free.
aaj3f added a commit that referenced this pull request Aug 5, 2026
The previous run's merge snapshot predates the materialize seam fix
(#1586), and GitHub reruns re-execute against the original snapshot —
the branch itself never touches materialize.rs. An empty commit forces
a fresh merge ref.
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.

2 participants