Repository navigation
docs: share copied field descriptions and fail CI on new copies - #4875
Merged
Merged
Conversation
This was referenced Sep 27, 2026
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
September 29, 2026 13:52
8ebe7de to
95cc4c5
Compare
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
September 30, 2026 11:57
881920b to
c577cb7
Compare
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 1, 2026 15:42
c577cb7 to
0532517
Compare
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 5, 2026 12:10
0532517 to
993f91f
Compare
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 5, 2026 14:43
993f91f to
2133d76
Compare
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 5, 2026 16:12
2133d76 to
0151a08
Compare
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 6, 2026 15:25
0151a08 to
ad394ac
Compare
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 7, 2026 09:07
ad394ac to
3ee8ff5
Compare
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 7, 2026 09:26
3ee8ff5 to
9141457
Compare
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 7, 2026 13:05
9141457 to
9ddedb9
Compare
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 7, 2026 14:44
9ddedb9 to
ac71c3b
Compare
Leward
reviewed
Oct 7, 2026
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 8, 2026 07:58
ac71c3b to
db33100
Compare
Also move the saramaTargetVersionField doc comment back onto its function.
JakeSCahill
force-pushed
the
docs/copies-check
branch
from
October 8, 2026 14:34
db33100 to
75334a6
Compare
Leward
self-requested a review
October 8, 2026 17:42
Leward
approved these changes
Oct 8, 2026
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 #4866, #4867, #4868, #4869, and #4870. The base,
docs/descriptions-combined, is those five merged together, so this diff shows only the new work. I'll retarget it once they merge.Why
The reference docs are now generated from these field descriptions, but many were written out more than once: the Elasticsearch v8, v9, and OpenSearch outputs, the AWS IAM fields on the CDC inputs, and the LLM tool fields across four chat processors. When one copy is fixed, the others go on saying the old thing, and the docs disagree between components. That had already happened in several places.
How it stays fixed
TestFieldDescriptionsAreNotCopiedincmd/tools/docs_genparses the source withgo/ast. It fails when two.Description(...)literals of 40 or more characters on fields with the same name have words that are at least 90% the same, whether they're identical or have drifted. It scans this repo and benthos's public packages. The fix it asks for is one constant or field constructor. There's no allowlist.Every copy it found is resolved one of two ways:
internal/llm(tool fields, prompts),internal/impl/elasticsearch/esoutput,internal/impl/aws/config/iam_auth.go,internal/replication/fields.go,internal/writecodec,retries.MaxRetriesDescription, andschemaregistry.URLFieldDescription. Per-component differences are parameters, and flags stay at each call site.client_idon Kafka, MQTT, and Redis, now say what's true for each component, checked in its code.New shared packages carry the Apache header, so community builds don't import enterprise code.
Fact corrections found on the way
snowflake_putholds one connection lock for the wholeWriteBatch, so batches upload one at a time whatevermax_in_flightis set to. The docs now say so. This may be worth a look as a behavior change.aws_bedrock_chatpromptandsystem_promptwere declared as plain strings but parsed as interpolated. They're now declared as interpolated.amqp_1output metadata is sent as message annotations, not headers.roleandrolestogether (role first), while MongoDB rejects the combination.commit_periodbatchesXACKcalls; it doesn't commit offsets.Copies of benthos internals, such as the retry backoff, OAuth2, and
http_serversync-response fields, need benthos to export helpers first. That's a follow-up.Build, tests for every touched package, and lint pass.
task docspasses withx_benthos_extra.