Skip to content

[skip changelog] Adjust link exclusions for project's protoc-gen-doc version#3225

Open
per1234 wants to merge 1 commit into
arduino:masterfrom
per1234:fix-link-exclusions
Open

[skip changelog] Adjust link exclusions for project's protoc-gen-doc version#3225
per1234 wants to merge 1 commit into
arduino:masterfrom
per1234:fix-link-exclusions

Conversation

@per1234

@per1234 per1234 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • [N/A] Tests for the changes have been added (for bug fixes / features)
  • [N/A] Docs have been added / updated (for bug fixes / features)
  • [N/A] UPGRADING.md has been updated with a migration guide (for breaking changes)
  • [N/A] configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Documentation of the Protocol Buffers interface is automatically generated from the project source code.

Unfortunately the protoc-gen-doc documentation generator tool produces some broken links. These cause the project infrastructure's link checker to fail:

ERROR: 2 dead links found in ./docs/rpc/commands.md !
[✖] #google.protobuf.Any → Status: 404
[✖] #google.rpc.Status → Status: 404

It will not be feasible to fix these links, so the only available resolution for those link check failures is to configure exclusions.

The previous exclusions (#3221) were tailored to the links generated by the modern version of protoc-gen-doc. It turns out that the project infrastructure has an unfortunate design where management of this tool dependency is only done in the GitHub Actions workflows:

- name: Install Go dependencies
run: go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@v1.4.1

This means that when the documentation generation is performed locally by a contributor, a different version of protoc-gen-doc may be used than that used by the CI system. The outdated version of protoc-gen-doc installed by the Github Actions workflow generates links with different fragment ID format than the modern version of the tool. That resulted in exclusions that caused the link check to pass locally, but fail in the CI runs.

What is the new behavior?

The link checker exclusions are updated to match the links generated by the outdated version of protoc-gen-doc used by the project's GitHub Actions workflows.

Does this PR introduce a breaking change, and is titled accordingly?

No breaking change.

…version

Documentation of the Protocol Buffers interface is automatically generated from the project source code.

Unfortunately the protoc-gen-doc documentation generator tool produces some broken links. These cause the project
infrastructure's link checker to fail:

```
ERROR: 2 dead links found in ./docs/rpc/commands.md !
[✖] #google.protobuf.Any → Status: 404
[✖] #google.rpc.Status → Status: 404
```

It will not be feasible to fix these links, so the only available resolution for those link check failures is to
configure exclusions.

The previous exclusions were tailored to the links generated by the modern version of protoc-gen-doc. It turns out that
the project infrastructure has an unfortunate design where management of this tool dependency is only done in the GitHub
Actions workflows. This means that when the documentation generation is performed locally by a contributor, a different
version of protoc-gen-doc may be used than that used by the CI system. The outdated version of protoc-gen-doc installed
by the Github Actions workflow generates links with different fragment ID format than the modern version of the tool.
That resulted in exclusions that caused the link check to pass locally, but fail in the CI runs.

The link checker exclusions are hereby updated to match the links generated by the outdated version of protoc-gen-doc
used by the project's GitHub Actions workflows.
@per1234 per1234 requested a review from cmaglie June 19, 2026 19:03
@per1234 per1234 self-assigned this Jun 19, 2026
@per1234 per1234 added topic: documentation Related to documentation for the project topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: documentation Related to documentation for the project topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project

1 participant