Skip to content

Fix generated docs job for protobuf-lf version compatibility - #1986

Merged
shreyas-da merged 3 commits into
mainfrom
canton-3-7-proto-version-either
Oct 30, 2026
Merged

shreyas-da merged 3 commits into
mainfrom
canton-3-7-proto-version-either

Conversation

@danielporterda

@danielporterda danielporterda commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

This pull request fixes the scheduled generated-docs workflow, broken since Canton 3.7 made protoVersionFor return an Either. The topology version table now comes from the highest Canton release rather than the most recently published one, keeps earlier rows as releases ship, and drops Canton's alpha placeholder protocol version.

Canton 3.7 changed VersioningCompanion.protoVersionFor(ProtocolVersion)
to return Either[String, ProtoVersion]. Match on the runtime result so
the script compiles against both 3.6.x and 3.7.x release binaries.

Signed-off-by: danielporterda <daniel.porter@digitalasset.com>
Newer Canton releases stop listing protocol versions they no longer
support, so regenerating from the latest release dropped rows such as
34 and 35. Merge the rows already on the page with the release's rows,
letting the release win where they overlap.

Signed-off-by: danielporterda <daniel.porter@digitalasset.com>
@danielporterda danielporterda changed the title Support Canton 3.7 in topology transaction version generation Support Canton 3.7 and keep history in topology version table Oct 30, 2026
Resolve the default release by highest version rather than GitHub's
most recently published Latest, so older release-line patches never
feed the table. With the source always the newest line, drop the 3.6
compatibility branch and exclude Canton's dev and alpha placeholder
protocol versions, removing the existing 2147483646 row.

Signed-off-by: danielporterda <daniel.porter@digitalasset.com>
@mintlify

mintlify Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cantonfoundation 🟢 Ready View Preview Oct 30, 2026, 1:56 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@danielporterda danielporterda changed the title Support Canton 3.7 and keep history in topology version table Generate topology version table from highest Canton release Oct 30, 2026
@danielporterda
danielporterda marked this pull request as ready for review October 30, 2026 13:59
@danielporterda danielporterda changed the title Generate topology version table from highest Canton release Fix generated docs job for protobuf-lf version compatibility Oct 30, 2026
@shreyas-da
shreyas-da merged commit fb60b5f into main Oct 30, 2026
3 checks passed
@shreyas-da
shreyas-da deleted the canton-3-7-proto-version-either branch October 30, 2026 14:47
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