Repository navigation
docs: require introduced-in versions and backfill them from release history - #4876
Merged
Merged
Conversation
JakeSCahill
force-pushed
the
docs/required-versions
branch
2 times, most recently
from
September 29, 2026 18:55
3370bcc to
b197953
Compare
JakeSCahill
force-pushed
the
docs/required-versions
branch
from
September 30, 2026 11:57
b197953 to
5b0a83a
Compare
JakeSCahill
force-pushed
the
docs/required-versions
branch
from
October 1, 2026 15:42
5b0a83a to
0e5b20f
Compare
JakeSCahill
force-pushed
the
docs/required-versions
branch
2 times, most recently
from
October 5, 2026 14:43
2c93b0e to
ba1d9d1
Compare
JakeSCahill
force-pushed
the
docs/required-versions
branch
from
October 5, 2026 16:12
ba1d9d1 to
886f8ac
Compare
JakeSCahill
force-pushed
the
docs/required-versions
branch
2 times, most recently
from
October 6, 2026 15:26
4accdf8 to
0f288d9
Compare
JakeSCahill
force-pushed
the
docs/required-versions
branch
from
October 7, 2026 09:07
0f288d9 to
a370499
Compare
JakeSCahill
force-pushed
the
docs/required-versions
branch
from
October 7, 2026 09:26
a370499 to
018034d
Compare
JakeSCahill
force-pushed
the
docs/required-versions
branch
from
October 7, 2026 13:05
018034d to
5046d5f
Compare
JakeSCahill
force-pushed
the
docs/required-versions
branch
from
October 7, 2026 14:44
5046d5f to
08d4fbe
Compare
JakeSCahill
force-pushed
the
docs/required-versions
branch
2 times, most recently
from
October 8, 2026 14:34
c97ba01 to
57d3ceb
Compare
Leward
self-requested a review
October 8, 2026 17:53
Leward
approved these changes
Oct 8, 2026
Leward
left a comment
Contributor
There was a problem hiding this comment.
I checked each .Version() that this PR adds against git history, independently of the docs-based backfill.
Method: find the commit that first adds the field (git log -S), then the first vX.Y.Z tag that contains it (git tag --contains).
Result: all 373 versions match.
Examples:
prometheus.histogram_timing_seconds_suffixis 4.111.1. The field is absent in v4.111.0 and present in v4.111.1.sql_rawqueries[].whenis 4.87.0 (conn_fields.go#L300). It was added in eddec23, which is first in v4.87.0.
Some shared helpers carry a version older than a later component that uses them, for example the OTLP collector fields on the 4.88.0 metrics exporter.
The docs do not show these lines, because renderFieldsSince only prints a field version that is later than its component's version.
…ct impossible ones
…h the round-trip test
Generated docs are no longer committed, so the version check downloads redpanda-connect-docs.tar.gz from the previous release instead of reading partials at its tag. A release without the asset is treated like one from before the partials existed.
… component pulsar tls shipped in 4.2.0. The docs task now runs TestNewSpecsHaveVersions with x_benthos_extra (its job checks out the tags), so cgo-only specs are covered, and a missing docs asset fails the check under CI once an older release has one, instead of quietly turning it off.
…ared IAM fields A version correction had dropped the Requirements, Snapshot and streaming modes, and Data types sections from the postgres_cdc description. The shared IAM credential and role fields claimed 4.72.0 for every caller, which is wrong for MongoDB and postgres_cdc; each caller's aws object already carries its own version.
JakeSCahill
force-pushed
the
docs/required-versions
branch
from
October 8, 2026 18:11
57d3ceb to
763bf69
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #4875.
Why
The reference docs say "Introduced in version X" for components and "Requires version X or later" for fields, but only when the spec sets
.Version(), and most don't. Readers on older releases can't tell whether a field exists in the version they run. Bloblang functions and methods never showed a version at all, even when one was set.How it stays complete
TestNewSpecsHaveVersionsfinds the highestvX.Y.Ztag reachable from HEAD and reads the reference partials generated into it. Because CI keeps those partials in step with the code, they're an exact record of what that release shipped. The test fails when:x.y.z(it found 24 written asv4.x.y, now fixed)A field inside a new component or new object is covered by its parent. Deprecated and hidden specs are skipped.
The test reads the previous release's specs from the
redpanda-connect-docs.tar.gzasset attached to that release. Releases from before the asset have none, so until the first release that includes this work it only checks the version numbers themselves, and says so in the test log. I compared the current schema with a v4.111.0 build to cover that one-release gap: nothing has been added since 4.111.0 without a version. The test job now checks out withfetch-depth: 0so it can read the tag.Checked both ways:
TestVersionProblemscovers the rules with synthetic data. Against a temporary local tag with partials, the live test flagged a probe field and reported nothing else as new.The backfill
Versions come from the docs generated into each of the 158 v4 release tags: the first release whose docs show a spec. Specs present in v4.0.0, the first tag with history, stay blank.
git log -Sand the first tag containing the commit; all matched.SessionFields()in the iceberg SigV4 block andmetadata_max_ageinFranzConnectionFields().The generator now renders Bloblang versions. Specs defined in benthos are backfilled in redpanda-data/benthos, using Connect release numbers.
Build and tests pass.
task docspasses withx_benthos_extra. The docs diff only adds "Introduced in" and "Requires version" lines, apart from the sixv-prefixed lines it replaces.Also in this PR (from a full review of the generated docs)
SessionFieldsWithVersionslets iceberg and kinesis show the release in which they gainedtcp,endpoint, andcredentials, instead of the shared helper's 4.69.0.