Skip to content

Run-stable basic-report and edges reports (refs #2826) - #2828

Merged
jamesamcl merged 1 commit into
masterfrom
issue-2826-determinism
Sep 15, 2026
Merged

jamesamcl merged 1 commit into
masterfrom
issue-2826-determinism

Conversation

@jamesamcl

Copy link
Copy Markdown
Member

The first run of the release-notes consistency gate (#2827) on the 3.94.0 release PR failed on two reports that are nondeterministic across runs in ways ORDER BY cannot fix:

  • basic-report.tsv — group_concat leaves the ordering of xrefs inside a cell undefined, so every regeneration shuffles them. A small post-processing step now sorts the tokens within each cell.
  • edges.tsv — 7,067 rows involve blank nodes, whose labels (_:B1d400f05…genid641704) are freshly generated on every run. The query now restricts to named classes (FILTER(isIRI(?x) && isIRI(?y))); the dropped rows were unreadable to consumers anyway.

With these, all seven reports are byte-stable across rebuilds of the same sources, which the regenerate-and-diff gate requires.

Refs #2826

🤖 Generated with Claude Code

First run of the release-notes consistency gate caught two remaining
nondeterminisms that ORDER BY cannot fix: group_concat cell ordering in
basic-report.tsv (SPARQL leaves it undefined) and 7,067 blank-node rows in
edges.tsv whose labels are freshly generated every run. Sort the xref
tokens within each basic-report cell after the query, and restrict edges
to named classes - bnode-to-bnode rows were unreadable to consumers anyway.

Co-Authored-By: Claude Fable 5 <[email protected]>
@jamesamcl
jamesamcl merged commit c191982 into master Sep 15, 2026
1 check passed
jamesamcl added a commit that referenced this pull request Sep 15, 2026
basic-report xref cells canonicalized; edges drops its 7,067 blank-node
rows. Verified byte-identical across two independent regenerations of the
same build. All other reports and the notes are unchanged.

Co-Authored-By: Claude Fable 5 <[email protected]>
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.

1 participant