Skip to content

ci(links): enforce local checks and monitor external links (#2162) - #2172

Merged
josecelano merged 2 commits into
torrust:developfrom
josecelano:2162-enforce-lychee-and-schedule-external-link-checks
Sep 8, 2026
Merged

josecelano merged 2 commits into
torrust:developfrom
josecelano:2162-enforce-lychee-and-schedule-external-link-checks

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

  • Pin tracker CI and setup installs to the released [email protected], whose linter all now includes deterministic offline Lychee validation.
  • Run linter lychee explicitly in Docs Lint and retain linter all in pre-commit and normal CI.
  • Add an advisory weekly and manually dispatched external-link workflow that invokes Lychee directly, retains a Markdown report, and does not run for pushes or pull requests.
  • Document external-link monitoring, triage, the Lychee configuration, and the new workflow badge.

Validation

  • TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh
  • Pre-push checks: nightly format/check/docs and full stable test suite
  • linter lychee
  • linter all
  • linter yaml
  • git diff --check

Follow-up verification

The workflow is included in this PR so it can be manually dispatched from the branch. Its hosted run and artifact evidence will be recorded before merge. develop is currently unprotected, so the scheduled-only workflow cannot be a required branch-protection check.

Closes #2162

Copilot AI lite review requested due to automatic review settings September 8, 2026 13:19
@josecelano
josecelano requested a review from a team as a code owner September 8, 2026 13:19
@josecelano josecelano self-assigned this Sep 8, 2026
@codecov

codecov Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.68%. Comparing base (2e1f2b9) to head (35b144b).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2172      +/-   ##
===========================================
- Coverage    84.69%   84.68%   -0.02%     
===========================================
  Files          351      351              
  Lines        29657    29657              
  Branches     29657    29657              
===========================================
- Hits         25119    25116       -3     
- Misses        4184     4189       +5     
+ Partials       354      352       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

🔵 Needs a closer look

It changes CI/workflow behavior and introduces a scheduled workflow where final readiness depends on GitHub Actions/org allowlist and hosted-run validation outside the diff.

Pull request overview

This PR integrates deterministic offline Lychee link checking into the normal local/CI linting path via [email protected], and adds a separate advisory scheduled/manual workflow for online external-link monitoring with a retained report artifact.

Changes:

  • Pin CI/setup linter installs to [email protected], and run offline local-link checks via linter lychee / linter all.
  • Add an advisory weekly + workflow_dispatch external-link workflow using Lychee online with bounded request settings and report artifact retention.
  • Document external-link monitoring/triage and update badges/skills/docs to reflect the new link-checking setup.
File summaries
File Description
README.md Adds workflow badge + references for the new external-link check.
project-words.txt Adds a new dictionary word used in the workflow/link-checking context.
docs/testing.md Documents advisory external-link monitoring workflow and triage procedure.
docs/issues/open/2162-enforce-lychee-and-schedule-external-link-checks/ISSUE.md Updates issue spec progress, artifacts, and verification tracking for the work.
docs/issues/open/2162-enforce-lychee-and-schedule-external-link-checks/agent-review-reports.md Adds a review report record for issue #2162 implementation evidence and pending items.
contrib/dev-tools/workflow-benchmarks/run-testing-baseline.sh Pins the benchmark linter install to the released [email protected].
AGENTS.md Updates documented linting/tooling inventory to include lychee and lychee.toml.
.github/workflows/testing.yaml Pins linter install to [email protected] and keeps linter all in the main CI path.
.github/workflows/external-link-check.yaml Introduces scheduled/manual online external-link checks with report artifact upload.
.github/workflows/docs-lint.yaml Pins linter install and runs linter lychee explicitly for docs-only validation.
.github/workflows/copilot-setup-steps.yml Pins linter install to [email protected] for Copilot environment setup.
.github/skills/dev/maintenance/setup-dev-environment/SKILL.md Updates setup instructions to install the pinned linter release.
.github/skills/dev/maintenance/install-linter/SKILL.md Updates linter install instructions and documents lychee as an external dependency.
.github/skills/dev/git-workflow/run-pre-commit-checks/SKILL.md Documents lychee inclusion in linter all and individual linter lychee usage.
.github/skills/dev/git-workflow/run-linters/SKILL.md Documents linter lychee and updates references to include local link checking.
.github/skills/dev/git-workflow/run-linters/references/linters.md Updates install guidance to pinned linter and documents lychee behavior/config.
.github/skills/dev/git-workflow/commit-changes/SKILL.md Updates pre-commit step documentation to include lychee in linter all.
.github/lychee-online.toml Adds bounded online Lychee configuration for the advisory external-link workflow.
Review details
  • Files reviewed: 18/18 changed files
  • Comments generated: 2
  • Review effort level: Lite

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

Comment thread docs/testing.md Resolved
@josecelano

Copy link
Copy Markdown
Member Author

ACK 35b144b

@josecelano
josecelano merged commit 8dba10b into torrust:develop Sep 8, 2026
19 checks passed
@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: Its executable changes pin the linting tool to a released version in existing workflows and add a weekly, read-only advisory link check that does not gate merges; the rest is documentation.

This branch was previously deployed

1 inactive deployment
coverage — 35b144ba Deployed Sep 8, 2026 by josecelano via Generate Coverage Report #1947
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.

Enforce local Markdown links and schedule advisory external link checks

3 participants