Repository navigation
fix(api): materialize sink call sites — finish() → into_parts() (#1529 × #1552 merge skew) - #1586
Conversation
|
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. |
…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.
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.
Main currently fails
cargo check -p fluree-db-api --all-features --all-targetswith two E0308s influree-db-api/src/materialize.rs(:327, :869). Cause: cross-PR semantic skew — #1529 (merged 18:12) added twosink.finish()call sites destructuring the spool tuple; #1552 (merged 19:40) renamed that tuple-returning method tointo_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-targetsclean (the reproducing command), materialize lib tests 20/20.Update (third skew site):
#1552also madeemit_triplefallible; #1529'sInterningObserverdiscarded the newResult(an encode error would have vanished silently — and it fails main's-D warningsclippy).2910309a7propagates it as anR2rmlErrorthrough the observer's existingResultreturn, matching the file's error-wrap idiom. Note main's own push CI at the #1552 merge is red acrosstest/clippy/testsuite-sparqlfrom these same skew sites — this PR should restore it.