[
https://issues.apache.org/jira/browse/KAFKA-20737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18103950#comment-18103950
]
ASF GitHub Bot commented on KAFKA-20737:
----------------------------------------
unknowntpo opened a new pull request, #902:
URL: https://github.com/apache/kafka-site/pull/902
## What changed
- Add a standard-library Python checker for Kafka links under `## Archived
Releases`.
- Reject active distribution URLs from `downloads.apache.org`,
`dlcdn.apache.org`, and Apache mirror redirectors while allowing
`archive.apache.org`, Docker Hub, Kafka documentation, and the ASF `KEYS` link.
- Run the checker for pull requests and before the existing deployment build.
- Add Make targets and focused unit tests for section boundaries, allowed
links, active mirror variants, Markdown code fences, and error paths.
## Why
When a release moves from supported to archived, its artifact, signature,
checksum, and release-note links must move to `archive.apache.org`. This is a
manual step and is easy to miss, leaving archived releases pointed at active
distribution infrastructure.
The check is intentionally static and scoped to the archived section. It
does not perform network requests, so it avoids flaky external link validation.
Apache Jira: https://issues.apache.org/jira/browse/KAFKA-20737
## Validation
- `make check-archived-release-links-test` (16 tests)
- `make check-archived-release-links`
- `git diff --check origin/markdown...HEAD`
> add CI to check the link of archived releases
> ---------------------------------------------
>
> Key: KAFKA-20737
> URL: https://issues.apache.org/jira/browse/KAFKA-20737
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Eric Chang
> Priority: Minor
>
> from https://github.com/apache/kafka-site/pull/874#discussion_r3472130422
> Archived release links should point to archive.apache.org
--
This message was sent by Atlassian Jira
(v8.20.10#820010)