Skip to content

fix(ci): make external link check pass - #2785

Merged
josecelano merged 5 commits into
torrust:developfrom
josecelano-bot:fix-external-link-check
Nov 10, 2026
Merged

josecelano merged 5 commits into
torrust:developfrom
josecelano-bot:fix-external-link-check

Conversation

@josecelano-bot

@josecelano-bot josecelano-bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Related to #2264

Fixes the failing "Check External Links" job in the "External Link Check" workflow.

  • Exclude GitHub issue-comment anchors (rendered dynamically; lychee reports "Cannot find fragment"), generalising the existing per-issue entries.
  • Exclude the admin-only GitHub pages (security/code-scanning, settings) that return 404 to anonymous runners, and the exact URLs that reject the runner: one Stack Overflow answer (403), two Medium links (403) and https://www.fsf.org/ (TLS HandshakeFailure on the runner).
  • Repair the two unfilled {response-R3} reply URLs in the PR 2486 audit record instead of excluding them.
  • Fix the Coverage Gutters extension link in packages/tracker-core/README.md (ryanluker.vscode-coverage-gutters).

Verified locally with lychee 0.24.2 over the files containing the affected URLs: 0 errors. A like-for-like full run is the next scheduled run on develop.

🤖 Generated with Claude Code

Exclude GitHub issue-comment anchors, admin-only GitHub pages, template
placeholders and Stack Overflow from the online lychee check, and fix the
Coverage Gutters extension link.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@josecelano-bot
josecelano-bot requested a review from a team as a code owner November 9, 2026 16:18
@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot November 9, 2026 16:19
@josecelano

Copy link
Copy Markdown
Member

ACK 1faf075

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed at 1faf075d733908c719f7c2108d8ad6ec89fa8c71. Recomputed from the bytes at this head, against the merge base f9431e5c9; git merge-tree against develop 88920966a merges cleanly, and the merged tree differs from develop only in the two files of this change.

Process: a link-check configuration fix with no tracking issue, governed by the open-pull-request and commit-changes skills, with fix-bug for the final recheck; docs/testing.md:134-137 sets the rule for exceptions. The title and commit subject are Conventional, with no issue reference to carry. The description has no issue link (F2).

The change against its claim: .github/lychee-online.toml generalises the two per-issue comment entries and adds placeholder, admin-page and Stack Overflow entries. Over the 696 Markdown files the job checks, the new or widened patterns match 28, 1, 2, 1 and 1 URLs, and nothing previously excluded is lost. packages/tracker-core/README.md:35 corrects the extension id, its only occurrence in the tree. Each listed edit does what the description says. The outcome in the title does not follow from them (F1). The description also names an "External Links" job; the job at .github/workflows/external-link-check.yaml:17 is Check External Links.

Consistency: nothing moves or is renamed, the dictionary is unchanged, and develop has not touched either file since the merge base.

Hygiene: one commit, author equals committer, git diff --check clean, the commit-id check prints nothing, and the closing-keyword pattern matches nothing in the title, description or message. The commit carries one attribution footer; no rule at this head forbids it, and the discussion proposing one has no recorded outcome.

Findings: F1 (Major) blocks as worded, because the subject would stay on develop uncorrectable. F2 and F3 are Minor and F4 is a Nit. The excluded and corrected bytes themselves are sound.

Checked, no finding: the configuration parses and every pattern compiles; the issue-comment generalisation mirrors the pull-request entries and the tree's record that these anchors are client-side (docs/issues/open/2264-2003-refactor-semantic-link-conventions/EPIC.md:390); the admin-page patterns match exactly the three URLs present; the lychee version in the description equals the workflow's. I did not run the job: it has no pull-request trigger and this review had no network.

Checks

On the loop's compute node at this head, against the merge base f9431e5c9 (receipt server-gates-kranich-567): the repository's pre-commit gate exit 0 (77 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new. The online external link check itself was not run here; F1 cites its latest scheduled run on develop. GitHub checks at this head at posting time: "Package Coverage (torrust-tracker-core): in_progress/pending; Package Coverage (torrust-tracker-axum-rest-api-server): in_progress/pending; Discover Package Coverage: completed/success; Generate Coverage Report: completed/success; Docs Lint: completed/success; Persistence Benchmark MySQL: completed/success; Persistence Benchmark SQLite3: completed/success; Persistence Benchmark PostgreSQL: completed/success; Test (Docker) (release): in_progress/pending; Database Compatibility PostgreSQL (16): completed/success; Database Compatibility MySQL (8.0): completed/success; Database Compatibility PostgreSQL (14): completed/success; Database Compatibility PostgreSQL (15): completed/success; Database Compatibility PostgreSQL (17): completed/success; Database Compatibility MySQL (8.4): completed/success; Docker E2E: completed/skipped; Workspace Packaging: completed/success; Unit (stable): in_progress/pending; Layer Boundary Bans: completed/success; Shipped Features: completed/success; Unit (nightly): in_progress/pending; Documented Clippy Allows: completed/success; Build on ubuntu-latest (stable): completed/success; Build on macos-latest (nightly): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Build on windows-latest (nightly): completed/success". At posting, develop is 88920966a.

Comment thread .github/lychee-online.toml Resolved
Comment thread .github/lychee-online.toml Resolved
Comment thread .github/lychee-online.toml Resolved
Comment thread .github/lychee-online.toml Resolved

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.

🟡 Changes recommended

The link-checker exclusion hides unresolved placeholder URLs in an audit record; the links need actual response URLs and the exclusion must be removed.

1 open issue
What changed in this PR

This PR addresses failures in the external link check by adjusting Lychee exclusions and correcting a documentation link.

Changes:

  • Generalizes exclusions for dynamically rendered GitHub issue-comment anchors.
  • Excludes placeholder comment URLs, restricted GitHub pages, and bot-blocking Stack Overflow links.
  • Corrects the Coverage Gutters extension’s Marketplace identifier.
File Description
packages/​tracker-core/​README.md Corrects the Coverage Gutters extension link.
.github/​lychee-online.toml Updates exclusions used by the external link check.

Review effort: Balanced

Comment thread .github/lychee-online.toml Resolved
Address review: scope the Stack Overflow and placeholder exclusions to the
exact URLs, exclude the two Medium links and www.fsf.org that the hosted
runner cannot check, and drop the added comment sentence.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
da2ce7
da2ce7 previously approved these changes Nov 9, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed at bf9557b12f44fee04f22253a09c12c80045c3386. Recomputed from the bytes at this head, against the previous round's head 1faf075d7 and the merge base f9431e5c9; git merge-tree against develop 88920966a merges cleanly, and the merged tree differs from develop only in the two files of this change.

What moved: one commit, bf9557b12, a fast-forward of 1faf075d7 that changes only .github/lychee-online.toml. The other 2430 tracked paths are byte-identical, so the previous round's conclusions on them stand.

Previous findings:
F1 fixed: https://www.fsf.org/ (four places) and both Medium links are excluded (lines 29, 31), so nothing the tree records as a persistent failure stays checked.
F2 fixed: the exact answer URL (line 27), and the description now has Related to #2264.
F3 fixed: the exact {response-R3} URL with its own comment (lines 21-22).
F4 fixed: lines 13-15 equal the merge base.

The new commit: over the 696 Markdown files the job checks, the placeholder, Stack Overflow, Medium and FSF patterns match 1, 1, 2 and 1 URLs, and nothing excluded at 1faf075d7 is lost. The Stack Overflow, Medium and FSF patterns equal the URLs Lychee printed in external-link-check-residual-failures-2026-09-18.md:58-67, and the paths the comments cite exist. The stated causes match that record, except the runner attribution (F6).

Hygiene: subject and body describe the diff, author equals committer, git diff --check is clean, the commit-id check prints nothing, and the closing-keyword pattern matches nothing. The commit has one attribution footer; no rule at this head forbids it, and the discussion on one records no outcome.

Findings: F5 (Minor) and F6 (Nit), neither blocking.

Checked, no finding: https://www.gnu.org/licenses/ stays checked, but the record gives it one timeout, a transient candidate under docs/testing.md:134-135. I did not run the job: it has no pull-request trigger and this review had no network.

Checks

On the loop's compute node at this head, against the merge base f9431e5c9 (receipt server-gates-kranich-568): the repository's pre-commit gate exit 0 (66 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new. Against the 66 errors in the lychee-external-link-report of the 15:28 UTC scheduled run on develop f9431e5c9, each is now excluded by one of this file's patterns or fixed by the README correction, so the online job's recorded failures are covered. GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Package Coverage (torrust-tracker-axum-rest-api-server): completed/success; Package Coverage (torrust-tracker-core): completed/success; Build on ubuntu-latest (stable): completed/success; Build on macos-latest (nightly): completed/success; Build on windows-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (nightly): completed/success; Test (Docker) (release): in_progress/pending; Discover Package Coverage: completed/success; Generate Coverage Report: completed/success; Persistence Benchmark PostgreSQL: completed/success; Persistence Benchmark SQLite3: completed/success; Persistence Benchmark MySQL: completed/success; Database Compatibility MySQL (8.4): completed/success; Database Compatibility PostgreSQL (17): completed/success; Database Compatibility PostgreSQL (16): completed/success; Database Compatibility MySQL (8.0): completed/success; Database Compatibility PostgreSQL (15): completed/success; Database Compatibility PostgreSQL (14): completed/success; Docs Lint: completed/success; Docker E2E: completed/skipped; Layer Boundary Bans: completed/success; Unit (nightly): completed/success; Shipped Features: completed/success; Documented Clippy Allows: completed/success; Unit (stable): completed/success; Workspace Packaging: completed/success". At posting, develop is 88920966a.

Comment thread .github/lychee-online.toml Resolved
Comment thread .github/lychee-online.toml Resolved
@da2ce7

da2ce7 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

ACK bf9557b — the link-check exclusions recomputed against the job's input files and the tree's recorded failures, with the four earlier findings confirmed fixed

…holders

Replace the unfilled {response-R3} reply URLs in the PR 2486 audit with the
real conversation comment, drop the placeholder exclusion from the online
link-check configuration, and name Lychee, not the runner, as the party that
cannot complete the www.fsf.org TLS handshake.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@josecelano

Copy link
Copy Markdown
Member

ACK 9cf7017

da2ce7
da2ce7 previously approved these changes Nov 9, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed at 253a0cb471686664d2e2cbe3b5ed357038938012. Recomputed from the bytes at this head, against the previous round's head bf9557b12 and the merge base f9431e5c9; git merge-tree against develop 71166cf4b merges cleanly, and the merged tree differs from develop only in the four files of this change.

What moved: two commits, 9cf7017df and 253a0cb47, a fast-forward of bf9557b12, in three files (+164/-5). The other 2429 tracked paths are byte-identical, so the previous round's conclusions on them stand.

Previous findings:
F5 fixed: the record exists, the bot reviewer's thread has its reply (r4515457912), and no reply cites a commit id.
F6 fixed: line 28 names Lychee as the party that cannot complete the handshake.
F1 to F4 stay fixed; F3's entry is now gone, the other remedy that finding named.

The new commits: 9cf7017df repairs both PR 2486 audit lines and drops the placeholder entry, as its body says; over the 697 Markdown files the job checks, no unfilled placeholder URL remains and no URL loses its exclusion. The new record's review ids, discussion ids, reply threads, severity brackets and log times reconcile with the forge capture; its own slips are F7 to F9. Comment 6107186888 was not in this review's capture, so I could not confirm that it opens the R3 reply.

Hygiene: subjects describe the diffs; the first commit's body matches its diff and the second has none, which commit-changes allows. Author equals committer; git diff --check is clean. Each commit has one attribution footer, and no rule at this head forbids it. The commit-id check prints two ids (F7).

Findings: F7 (Minor), and F8, F9 and F10 (Nit); none blocks.

Checked, no finding: F3's FIXED row, since the narrowing fixed that concern before the entry went; the record's frontmatter and shortened Status Values, as in most recent audits; F1's 28 excluded, which recomputes as 26 pattern matches and 2 loopback URLs. I did not run the link job: no network here.

Checks

On the loop's compute node at this head, against the merge base f9431e5c9 (receipt server-gates-kranich-572): the repository's pre-commit gate exit 0 (52 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new; the repository's audit validator on pr-2785-review exit 0 (7 rows, 4 log entries, no failures). GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Package Coverage (torrust-tracker-axum-rest-api-server): completed/success; Package Coverage (torrust-tracker-core): completed/success; Docker E2E: completed/skipped; Unit (nightly): in_progress/pending; Layer Boundary Bans: completed/success; Unit (stable): in_progress/pending; Shipped Features: completed/success; Workspace Packaging: completed/success; Documented Clippy Allows: completed/success; Test (Docker) (release): in_progress/pending; Database Compatibility MySQL (8.0): completed/success; Database Compatibility PostgreSQL (14): completed/success; Database Compatibility PostgreSQL (17): completed/success; Database Compatibility PostgreSQL (16): completed/success; Database Compatibility PostgreSQL (15): completed/success; Database Compatibility MySQL (8.4): completed/success; Build on macos-latest (nightly): completed/success; Build on windows-latest (nightly): completed/success; Build on ubuntu-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Persistence Benchmark PostgreSQL: completed/success; Persistence Benchmark MySQL: completed/success; Persistence Benchmark SQLite3: completed/success; Generate Coverage Report: completed/success; Discover Package Coverage: completed/success; Docs Lint: completed/success". At posting, develop is 71166cf4b.

Comment thread .github/lychee-online.toml Resolved
@da2ce7

da2ce7 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

ACK 253a0cb — the link-check repair and the six earlier findings confirmed fixed at these bytes, with the new audit's ids and reply links reconciled against the forge capture

@josecelano

Copy link
Copy Markdown
Member

ACK 98c7adc

@josecelano
josecelano requested a review from da2ce7 November 9, 2026 19:45

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed at 98c7adc5d31c496ab547be2eccb2015b01336efb. Recomputed from the bytes at this head, against the previous round's head 253a0cb47 and the merge base f9431e5c9; git merge-tree against develop de4830c4c merges cleanly, and the merged tree differs from develop only in the four files of this change.

What moved: one commit, 98c7adc5d, a fast-forward of 253a0cb47 that changes only the audit record (+18/-3). The other 2431 tracked paths are byte-identical, so the previous round's conclusions on them stand.

Previous findings:
F7 fixed: line 31 names the rounds by review ids, line 153 names the fix by its subject, and the open-pull-request commit-id check prints nothing.
F1 to F6 stay fixed. F8 to F10 stay open: line 4 still reads 17:05 and line 157 has no stamp, line 106 is unchanged, and so are the description and reply r4515264267.

The new commit: row F8's review id, source and reply links, severity and log times reconcile with the forge capture, and the audit validator's checks, replayed against that capture, report nothing. The record covers one of round 3's four findings, and that round's other threads are resolved with no reply (F11); the new log entry leaves line 157 saying the record followed round 3 (F12).

Hygiene: the subject describes the diff, and there is no body, which commit-changes allows. Author equals committer, git diff --check is clean, and the closing-keyword pattern matches nothing. The commit has one attribution footer, and no rule at this head forbids it.

Findings: F11 (Minor) and F12 (Nit); none blocks, counting F8 to F10.

Checked, no finding: line 31's reassigned reviewer ids; row F8's grep covers only 9-character ids, but the skill's own check agrees; the maintainer's approval of the push is not on the forge, and no pre-merge rule asks for it there. I did not run the link job: no network here.

Checks

On the loop's compute node at this head, against the merge base f9431e5c9 (receipt server-gates-kranich-574): the repository's pre-commit gate exit 0 (38 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new; the repository's audit validator on pr-2785-review exit 0 (8 rows, 5 log entries, no failures). GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Publish (Development): completed/skipped; Publish (Release): completed/skipped; Package Coverage (torrust-tracker-axum-health-check-api-server): completed/success; Package Coverage (torrust-tracker-axum-rest-api-server): completed/success; Package Coverage (torrust-tracker-core): completed/success; Context: completed/success; Docs Lint: completed/success; Build on ubuntu-latest (stable): completed/success; Build on macos-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on macos-latest (nightly): completed/success; Build on windows-latest (nightly): completed/success; Build on windows-latest (stable): completed/success; Persistence Benchmark SQLite3: completed/success; Persistence Benchmark PostgreSQL: completed/success; Database Compatibility MySQL (8.4): completed/success; Persistence Benchmark MySQL: completed/success; Database Compatibility PostgreSQL (15): completed/success; Database Compatibility PostgreSQL (14): completed/success; Database Compatibility PostgreSQL (17): completed/success; Database Compatibility MySQL (8.0): completed/success; Database Compatibility PostgreSQL (16): completed/success; Test (Docker) (release): completed/success; Docker E2E: completed/skipped; Discover Package Coverage: completed/success; Shipped Features: completed/success; Unit (nightly): completed/success; Documented Clippy Allows: completed/success; Generate Coverage Report: completed/success; Layer Boundary Bans: completed/success; Unit (stable): completed/success; Workspace Packaging: completed/success". At posting, develop is de4830c4c.

- 2026-11-09 16:35 UTC - Fixes for F1 to F4 committed (commit `fix(ci): narrow link-check exclusions and add fsf.org and Medium`, commit time 16:35:17 UTC) and pushed; replies on F1 to F4 posted 16:37:51 to 16:37:58 UTC and the threads resolved. The Copilot thread (F5) was resolved at that time without a reply: a process error, corrected below.
- 2026-11-09 16:52 UTC - da2ce7 review 5829397839 with F5 and F6 (reviewer IDs) at 16:52:18 UTC; the approval was later dismissed by GitHub when the next push landed.
- 2026-11-09 16:53 UTC - F5 and F7 fixed (commit time 16:53:22 UTC) and pushed; replies on F5 (16:55:44 UTC) and F7 (16:55:47 UTC) posted and the F7 thread resolved. The earlier replies on F1 to F4 were edited to cite the commit subject instead of the branch commit id.
- 2026-11-09 17:18 UTC - da2ce7 review 5829762691 (APPROVED) with one inline finding (reviewer ID F7, audit F8); replied at 17:19 UTC, fixed in the commit named in F8 after the maintainer approved the push.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Minor][F11] Round 3 is recorded as one finding, and three of its threads are resolved with no reply.

Review 5829762691 has four inline findings: F7 (r4515688734), F8 (r4515688745), F9 (r4515688757) and F10 (r4515688767). This line says it had one, the table has a row only for F7, and the other three threads are resolved with no reply while their findings are still open at this head. .github/skills/dev/pr-reviews/process-pr-review/SKILL.md:28-30 asks for a reply on every resolvable thread and a record of each finding's progress, and step 7 (lines 88-90) puts the reply, with its disposition and resolution reference, before the resolution. The one reply this round has, r4515699242, which line 148 cites, still says the fix is not pushed and the thread is left open; the thread is resolved and the row says FIXED.

Add rows for F8 to F10 with a reply on each thread, and update r4515699242 to name the fix. This is the gap F5 raised for round 2; it can be repaired after merge, so it does not block.

- 2026-11-09 16:52 UTC - da2ce7 review 5829397839 with F5 and F6 (reviewer IDs) at 16:52:18 UTC; the approval was later dismissed by GitHub when the next push landed.
- 2026-11-09 16:53 UTC - F5 and F7 fixed (commit time 16:53:22 UTC) and pushed; replies on F5 (16:55:44 UTC) and F7 (16:55:47 UTC) posted and the F7 thread resolved. The earlier replies on F1 to F4 were edited to cite the commit subject instead of the branch commit id.
- 2026-11-09 17:18 UTC - da2ce7 review 5829762691 (APPROVED) with one inline finding (reviewer ID F7, audit F8); replied at 17:19 UTC, fixed in the commit named in F8 after the maintainer approved the push.
- This audit record (F6) was written after those events, in the commit named in F6.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[Nit][F12] This line now follows the 17:18 entry, so it says the record was written after round 3, which came later.

This is outside the diff of the new commit; the nearest changed line is 156. The record was added in docs(pr-reviews): [#2785] record the review audit for the external link check fix at 16:58:11 UTC (committer time), and review 5829762691 was submitted at 17:18:07 UTC. Placing this line above line 156, or stamping it, makes it true. The validator's log pattern skips unstamped entries (.github/skills/dev/pr-reviews/process-pr-review/scripts/validate-audit-record.py:57), so only a hand check sees this.

Line 156 also files the fixing commit (committer time 19:27:31 UTC) under its 17:18 stamp, and line 152 keeps a space before its semicolon where the commit id was cut.

@da2ce7

da2ce7 commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

ACK 98c7adc — the audit-record update recomputed against the forge capture and the commit-id check, with every other path byte-identical to the approved 253a0cb47

@josecelano

Copy link
Copy Markdown
Member

ACK 98c7adc

@josecelano
josecelano merged commit 3ba8139 into torrust:develop Nov 10, 2026
33 checks passed
@josecelano-bot
josecelano-bot deleted the fix-external-link-check branch November 10, 2026 11:24

This branch was previously deployed

1 inactive deployment
coverage — 98c7adc5 Deployed Nov 9, 2026 by josecelano-bot via Generate Coverage Report #2973
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.

4 participants