Skip to content

release v4.2.2 - #1946

Merged
bplatz merged 2 commits into
mainfrom
release/v4.2.2
Sep 29, 2026
Merged

bplatz merged 2 commits into
mainfrom
release/v4.2.2

Conversation

@bplatz

@bplatz bplatz commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Version bump 4.2.1 → 4.2.2. Tag v4.2.2 after this merges to main.

Release notes are generated from merged PR titles at tag time, so the changelog reflects the final contents once this merges and publishes.

Notes for review

This is branched from the current main so the bump can be approved ahead of time. The in-flight PRs targeted for 4.2.2 will land first, and this rebases onto the tip of main before merging. The lockfiles may need a refresh at that point if any of those PRs add or drop dependencies.

testsuite-sparql and testsuite-shacl are workspace-excluded and carry independent versions and lockfiles, hence six files rather than two. All three lockfiles are version lines only, and all three resolve under cargo metadata --locked.

@bplatz
bplatz requested review from aaj3f and zonotope September 25, 2026 18:26

@aaj3f aaj3f 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.

@bplatz usually I just approve these release PRs, but I think the one headline question (summarizing what I state below) is whether we want #1967 included first. Up to you, but it's the major one that stands out that would get missed if we cut a release now. Though we can always cut another release once it's in.


This is clean. I treated it as a real review rather than a rubber stamp, since the two-phase release split exists precisely so someone looks, and the things I checked all came back right:

  • Nothing rode along. Every +/− pair in all three Cargo.lock files is a version = "4.2.1" → "4.2.2" line. No package name lines changed, so no dependency was added, removed or re-resolved in the release commit — which is the usual way something unintended sneaks into one of these.
  • The bump is complete. All 53 workspace members take version.workspace = true, the root lock has exactly 53 entries at 4.2.2, and grep '^version = "4.2.1"' across every Cargo.toml returns nothing — so the two workspace-excluded testsuites, which carry literal versions and are the easy ones to miss, are both moved.
  • The base is green. 09f15cb33 has fmt, clippy and test all passing, so this isn't being cut over a red main.

One thing I nearly raised and then didn't, recorded so the reasoning is on the record rather than re-derived next release: the 12 PRs since v4.2.1 include five feat/ branches and a perf/ one, which under strict semver argues for 4.3.0 rather than a patch. But v4.2.0..v4.2.1 was 80 merges including 8 feat/ branches and also went out as a patch, so features-in-a-patch is this project's convention and grading against strict semver would be applying a rule the repo doesn't hold. Not a finding — though if the intent is ever to start holding it, this is the PR where that conversation lives.

🔵 What is actually in v4.2.2

None of this is a defect in this PR, and none of it changes the Approve — but "is the bump correct" and "is this the right contents to cut" are different questions, and only the first one is answerable from the diff. Three things on the second.

The boundary isn't the 12 PRs this was cut over. Opened 09-25 against 09f15cb33; main has since taken 95 commits across 10 merges (#1905, #1929, #1932, #1934, #1936, #1939, #1940 among them). Because the v4.2.2 tag goes onto main after this merges, the release boundary is main-at-merge-time, not this PR's base. The auto-generated notes will be right — .github/release.yml builds them from merged-PR titles since the previous tag, so they'll cover the larger set correctly. It's the review that no longer matches the release, not the notes. Worth merging and tagging promptly rather than letting it age further, since every day adds content nobody has looked at under this heading.

Checked and present: #1940 (feat: Turtle and N-Triples output for CONSTRUCT and DESCRIBE) is one of the newly-included ones, and it had a reproduced lang-tag injection raised against it in the 09-25 round. I went and looked rather than assuming: the fix is in. check_lang_tags sits at fluree-graph-format/src/rdf_text.rs:39 and is called from both serialization entry points (:59 and :77) — validation at ingest rather than escaping, which is the right shape given LANGTAG has no escape form in Turtle or N-Triples. So v4.2.2 is clean on that one.

Checked and absent, and this is the one I'd want ruled on: v4.2.2 will ship without #1967 (fix(query): restore fast paths after cached index adoption), which is still OPEN. The reason that matters is the age of what it fixes. 5985d0f01 ("fluree v4 baseline", 2026-04-22) introduced the epoch() == 0 gates and in-place cached index adoption in the same commit, so the counter-as-emptiness assumption has been wrong since v4 day one — git tag --contains 5985d0f01 returns v4.0.0 through v4.2.1, every v4 tag in the repo with no exceptions. Tagging v4.2.2 as things stand continues an unbroken line: every v4 release so far has carried this regression, and v4.2.2 would be the next, while a verified fix sits unmerged. (The cost figure is the perf reviewer's mutation measurement, not mine — reverting binary_scan.rs:1375 to the epoch gate gives 23.01 fuel against 3.01 with the fix. I verified the provenance and the tag containment; I did not re-run the fuel numbers.)

Two shapes, and this is your call rather than the review's:

  • Pull it in. #1967's diff looks textually independent of both its parents, so re-targeting it to main should be clean: it shares no file at all with #1965, and its only shared file with #1959 is fluree-db-query/src/binary_scan.rs, where #1959's entire change is the 11-line module doc comment (+5/−5, prose only — I read the hunk). Land it on main, then rebase this.
  • Ship v4.2.2 now and put #1967 in v4.2.3. Perfectly defensible — it's a five-month-old regression, so one more release is not the emergency.

One thing that argues for not rushing shape one: #1967 has had no real CI. It sits third in a declared stack (#1959 → #1965 → #1967), and its head 80cb8bc01 carries only plan: success — no test, no clippy, no fmt, no testsuite-sparql. Same for #1965 at 771be85bd. #1959, whose base is main, does get the full green run. So re-targeting #1967 to main would be the first time that fix is actually tested, which is an argument for doing it, but also an argument for not doing it inside a release window.

Adherence to repo commitments

  1. Patterns / abstractions — ✔. Single synchronized [workspace.package].version bumped in one place; the two excluded testsuites bumped in lockstep; no structural change.
  2. Performance — ✔ neutral. No Rust in the diff. Nothing compiles differently; no hot path, allocation or bench implication.
  3. Testing — ✔. Full CI green on this head, including test and testsuite-sparql, and green on the base it's cut from. A release PR adds no tests by design.
  4. Conventions — ✔. release/v4.2.2 branch, self-describing subject, the dedicated-release-PR shape the repo uses so every release goes through review before the tag is pushed. Release notes come from .github/release.yml's label-driven generation, so there's no CHANGELOG.md to reconcile.

Nothing blocking here at all, and the Approve stands on the diff regardless of how the contents question lands — the bump is correct whichever set of PRs the tag ends up covering. The only thing I'd genuinely like before you tag is a decision on #1967, one way or the other, so that shipping one more v4 release with that regression is a choice rather than a thing that happened while nobody was looking. Then merge whenever you're ready — sooner rather than later, since the drift only grows.

@bplatz
bplatz merged commit 80a8558 into main Sep 29, 2026
16 checks passed
@bplatz
bplatz deleted the release/v4.2.2 branch September 29, 2026 15:52
@aaj3f aaj3f mentioned this pull request Oct 2, 2026
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