Skip to content

MOD-11173: Fix unreachable links in markdown files#6773

Merged
nafraf merged 9 commits intomasterfrom
oshadmi_fix_docs_urls
Sep 21, 2025
Merged

MOD-11173: Fix unreachable links in markdown files#6773
nafraf merged 9 commits intomasterfrom
oshadmi_fix_docs_urls

Conversation

@oshadmi
Copy link
Collaborator

@oshadmi oshadmi commented Sep 3, 2025

Describe the changes in the pull request

Fix unreachable links in markdown files and add a make check-links scan to report bad links
(consider also Rust source files? Which may also include documentation snippets and contains URLs)

A clear and concise description of what the PR is solving, including:

  1. Current: The current state briefly
  2. Change: What is the change
  3. Outcome: Adding the outcome

Which additional issues this PR fixes

  1. MOD-...
  2. #...

Main objects this PR modified

  1. ...

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@github-actions github-actions bot added the size:L label Sep 3, 2025
@codecov
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.30%. Comparing base (4710f44) to head (a70e219).
⚠️ Report is 26 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6773      +/-   ##
==========================================
- Coverage   87.29%   86.30%   -0.99%     
==========================================
  Files         287      288       +1     
  Lines       45427    46513    +1086     
  Branches     8375     9404    +1029     
==========================================
+ Hits        39654    40143     +489     
- Misses       5646     6219     +573     
- Partials      127      151      +24     
Flag Coverage Δ
flow 84.62% <ø> (-0.23%) ⬇️
unit 49.34% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

@oshadmi oshadmi requested a review from Copilot September 4, 2025 06:31
@github-actions
Copy link

github-actions bot commented Sep 4, 2025

🔗 Link Check Failed

Some links in the modified Markdown files are broken or unreachable.

Please check the workflow logs for details and fix the broken links.

You can run the link checker locally with:

python scripts/check_links.py .

Note: This check validates both URL accessibility and anchor existence.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements a comprehensive link checker for Markdown files to detect and report broken or unreachable links, addressing ticket MOD-11173. The solution includes both the tooling infrastructure and fixes for existing broken links in the documentation.

  • Adds a complete link checking system with Python scripts, configuration, and CI/CD integration
  • Fixes broken links in README.md by updating outdated Redis documentation URLs and correcting the logo image path
  • Integrates link checking into the build system with new Makefile targets and GitHub Actions workflows

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/check_links.py Main link checker implementation with HTTP validation, anchor verification, and relative path checking
scripts/link-check-config.json Configuration file defining exclusion patterns, timeouts, and checker behavior
scripts/requirements-linkcheck.txt Python dependencies for the link checker (requests, beautifulsoup4, lxml)
scripts/test_link_checker.py Test suite creating sample markdown files to validate link checker functionality
scripts/README-linkcheck.md Comprehensive documentation for the link checker tool and its usage
README.md Fixed broken links by updating Redis documentation URLs and correcting logo image path
Makefile Added link checking targets (check-links, check-links-verbose, test-linkcheck)
.github/workflows/link-check.yml GitHub Action for link checking on PRs with markdown file changes
.github/workflows/event-weekly.yml Added weekly automated link checking job

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions
Copy link

github-actions bot commented Sep 4, 2025

🔗 Link Check Failed

Some links in the modified Markdown files are broken or unreachable.

Please check the workflow logs for details and fix the broken links.

You can run the link checker locally with:

python scripts/check_links.py .

Note: This check validates both URL accessibility and anchor existence.

2 similar comments
@github-actions
Copy link

github-actions bot commented Sep 4, 2025

🔗 Link Check Failed

Some links in the modified Markdown files are broken or unreachable.

Please check the workflow logs for details and fix the broken links.

You can run the link checker locally with:

python scripts/check_links.py .

Note: This check validates both URL accessibility and anchor existence.

@github-actions
Copy link

github-actions bot commented Sep 4, 2025

🔗 Link Check Failed

Some links in the modified Markdown files are broken or unreachable.

Please check the workflow logs for details and fix the broken links.

You can run the link checker locally with:

python scripts/check_links.py .

Note: This check validates both URL accessibility and anchor existence.

@oshadmi oshadmi force-pushed the oshadmi_fix_docs_urls branch from 976442a to 3e1f0da Compare September 5, 2025 15:06
@oshadmi oshadmi requested a review from raz-mon September 8, 2025 09:08
@oshadmi oshadmi requested a review from nafraf September 15, 2025 22:20
JoanFM
JoanFM previously approved these changes Sep 21, 2025
@nafraf nafraf added this pull request to the merge queue Sep 21, 2025
Merged via the queue into master with commit 705e538 Sep 21, 2025
19 checks passed
@nafraf nafraf deleted the oshadmi_fix_docs_urls branch September 21, 2025 14:07
nafraf pushed a commit that referenced this pull request Sep 22, 2025
* MOD-11173: Fix unreachable links in markdown files

* Add link-check script and workflow for markdown files

* Use action upload-artifact@v4

* Use system-wide uv install

* Fix copilot review + add debug for missing file

* Fix failed local url, remove debug code

* Trigger link-check using a label "check-links"

* Fix URL encoding in README.md which fail on CI

* Code review fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants