Skip to content

fix: avoid false PR failures for unpublished release links - #97

Merged
aheritier merged 2 commits into
mainfrom
fix/release-link-pr-404
Sep 29, 2026
Merged

aheritier merged 2 commits into
mainfrom
fix/release-link-pr-404

Conversation

@aheritier

Copy link
Copy Markdown
Collaborator

Summary

release:prepare emits CHANGELOG.md compare/tag links before the newly bumped release version (for example, v0.3.1) exists. On release PR #96, external-links therefore reports two expected 404s.

In PR --base mode, narrowly downgrade only an exact, unredirected HTTP 404 for a current newly bumped catalog version referenced by CHANGELOG.md to a notice. The links are still fetched. Wrong URLs/files/versions, redirects, 410s, unrelated links, and full-sweep checks remain errors.

Tests added; task validate and task passed.

Context: #96

Keep exact changelog release URLs in the live check while reporting their pre-publication 404s as notices only for distribution-version PRs.

Signed-off-by: Arnaud Héritier <arnaud.heritier@docker.com>
Copilot AI balanced review requested due to automatic review settings September 29, 2026 09:56
@aheritier
aheritier requested a review from a team as a code owner September 29, 2026 09:56

@docker-agent docker-agent Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

Release-link exceptions also apply when the catalog version decreases.

Comment thread scripts/check_external_links.py Outdated

@docker-gordon docker-gordon Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

Adds a narrow PR-only exception for unpublished release-link 404s.

Comment thread scripts/check_external_links.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Downgrades are incorrectly treated as releases, and the changelog includes an unrelated unsupported claim.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Updates the external-link checker to tolerate unpublished release links during release PRs.

Changes:

  • Downgrades qualifying release-link 404s to notices.
  • Tracks redirects and validates catalog versions.
  • Adds regression tests and documentation.
File Description
scripts/​check_external_links.py Implements release-link exceptions.
scripts/​test_check_external_links.py Tests release-link handling.
README.md Documents checker behavior.
CHANGELOG.md Records user-visible changes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/check_external_links.py Outdated
Comment thread CHANGELOG.md Outdated
Only treat strictly newer distribution versions as unpublished releases, and remove unrelated Claude metadata notes from this PR.

Signed-off-by: Arnaud Héritier <arnaud.heritier@docker.com>
@aheritier
aheritier merged commit 604f8da into main Sep 29, 2026
5 checks passed
@aheritier
aheritier deleted the fix/release-link-pr-404 branch September 29, 2026 10:15
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.

3 participants