fix(urls): suppress unreachable URLs, fix dead links, and correct Matrix spec paths

- Add `# nocheck: url` / `<!-- nocheck: url -->` above-line suppression support
- Fix Matrix mautrix templates: desktop-server-api → client-server-api
- Fix Mobilizon geospatial URLs (Addok, Photon) with above-line nocheck
- Add nocheck markers for BigBlueButton, Fider, Magento, Matomo, OnlyOffice
- Fix dead Retroarch, AUR, base-devel, and BigBlueButton Greenlight links
- Remove unresolvable WireGuard link; add nocheck for Wikipedia connection resets
- Remove unit tests for integration test logic (test_external_url_reachability.py)
- Document rule: MUST NOT write unit tests for integration test logic

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Environment TestandClaude Sonnet 4.6 committed 2026-04-11 01:26:31 +02:00
1 parent ffba8e8b8f
commit c2fcc58259
24 files changed
+35 -161

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ You MUST use [RFC 2119](https://www.rfc-editor.org/rfc/rfc2119) keywords in all
| Type | MUST NOT | MUST |
|---|---|---|
| Web link | `https://docs.infinito.nexus/setup` | `docs.infinito.nexus`, `here`, a descriptive label, or `setup.md` |
| Web link | `https://docs.infinito.example/` | `docs.infinito.example`, `here`, a descriptive label, or `setup.md` |
| File link | `docs/contributing/workflow.md` | `workflow.md` or `Contribution Flow` |
| Email | `mailto:hello@infinito.nexus` | `hello@infinito.nexus` |
| Matrix | `https://matrix.to/#/@user:infinito.nexus` | `@user:infinito.nexus` |
+3 -3
View File
@@ -2,7 +2,7 @@
## Description
[RetroArch](https://www.retroarch.com/) is a frontend for emulators, game engines, and media players powered by the [Libretro](https://www.libretro.com/) framework. It supports multiple UI styles including [XMB](https://en.wikipedia.org/wiki/XrossMediaBar) and [Ozone](https://docs.libretro.com/docs/), and provides a unified interface for retro gaming across platforms.
[RetroArch](https://www.retroarch.com/) is a frontend for emulators, game engines, and media players powered by the [Libretro](https://www.libretro.com/) framework. It supports multiple UI styles including [XMB](https://en.wikipedia.org/wiki/XrossMediaBar) and [Ozone](https://docs.libretro.com/), and provides a unified interface for retro gaming across platforms.
## Overview
@@ -15,7 +15,7 @@ The purpose of this role is to automate the deployment of a full-featured RetroA
## Features
- **Installs RetroArch:** Including the main [RetroArch package](https://archlinux.org/packages/extra/x86_64/retroarch/) and theme assets.
- **UI Assets Support:** Both [XMB](https://docs.libretro.com/docs/) and [Ozone](https://docs.libretro.com/docs/) menu styles supported out of the box.
- **UI Assets Support:** Both [XMB](https://docs.libretro.com/) and [Ozone](https://docs.libretro.com/) menu styles supported out of the box.
## Further Resources
@@ -23,7 +23,7 @@ The purpose of this role is to automate the deployment of a full-featured RetroA
- 🧩 [Libretro - Modular Emulator Framework](https://www.libretro.com/)
- 📚 [RetroArch on ArchWiki](https://wiki.archlinux.org/title/RetroArch)
- 🧠 [RetroArch - Wikipedia](https://en.wikipedia.org/wiki/RetroArch)
- 🎨 [UI Menus: XMB, Ozone, GLUI, RGUI](https://docs.libretro.com/docs/)
- 🎨 [UI Menus: XMB, Ozone, GLUI, RGUI](https://docs.libretro.com/)
## Credits
+1 -1
View File
@@ -18,7 +18,7 @@ This role installs distro-specific equivalents of core build tooling so systems
## Further Resources
- [Arch Wiki: base-devel](https://wiki.archlinux.org/title/Arch_Linux_package_guidelines)
- [Arch Linux: base-devel package](https://archlinux.org/packages/core/any/base-devel/)
- [Debian package: build-essential](https://packages.debian.org/stable/build-essential)
- [DNF groups: development-tools](https://dnf.readthedocs.io/en/latest/command_ref.html#group-command)
+1 -1
View File
@@ -4,7 +4,7 @@
This Ansible role installs **fakeroot** for the current Linux distribution. Fakeroot enables non-privileged users to simulate root-level file manipulations, making it ideal for building packages or performing file operations that normally require root permissions.
Learn more about fakeroot on [Wikipedia](https://en.wikipedia.org/wiki/Fakeroot_(software)).
Learn more about fakeroot on [Wikipedia](https://en.wikipedia.org/wiki/Fakeroot_(software)) and [fakeroot on Debian](https://packages.debian.org/stable/fakeroot).
## Overview
+1 -1
View File
@@ -3,7 +3,7 @@
dev_nix_installer_version: "2.32.4"
# Base URL for Nix releases
dev_nix_installer_base_url: "https://releases.nixos.org/nix"
dev_nix_installer_base_url: "https://releases.nixos.org/nix" # nocheck: url
# Full URL to the installer script (can be overridden if needed)
dev_nix_installer_url: >-
-1
View File
@@ -26,7 +26,6 @@ The primary purpose of this role is to configure WireGuard on a client by settin
- [WireGuard Documentation](https://www.wireguard.com/)
- [ArchWiki: WireGuard](https://wiki.archlinux.org/index.php/WireGuard)
- [WireGuard on Raspbian](https://wireguard.how/server/raspbian/)
- [Subnetting Basics](https://www.scaleuptech.com/de/blog/was-ist-und-wie-funktioniert-subnetting/)
- [WireGuard Permissions Issue Discussion](https://bodhilinux.boards.net/thread/450/wireguard-rtnetlink-answers-permission-denied)
- [UFW and SSH via WireGuard](https://unix.stackexchange.com/questions/717172/why-is-ufw-blocking-acces-to-ssh-via-wireguard)
+3 -3
View File
@@ -2,12 +2,12 @@
## Description
This role ensures that the AUR helper [yay](https://wiki.archlinux.org/title/Yay) is installed on the system. It installs yay via [pacman](https://wiki.archlinux.org/title/Pacman) and creates a dedicated `aur_builder` user to facilitate building AUR packages.
This role ensures that the AUR helper [yay](https://github.com/Jguer/yay) is installed on the system. It installs yay via [pacman](https://wiki.archlinux.org/title/Pacman) and creates a dedicated `aur_builder` user to facilitate building AUR packages.
## Overview
The role performs the following tasks:
- Installs the AUR helper [yay](https://wiki.archlinux.org/title/Yay) using pacman.
- Installs the AUR helper [yay](https://github.com/Jguer/yay) using pacman.
- Creates an `aur_builder` user with a home directory and adds the user to the wheel group.
- Grants the `aur_builder` user passwordless [sudo](https://en.wikipedia.org/wiki/Sudo) rights for running pacman.
@@ -17,7 +17,7 @@ The primary purpose of this role is to streamline AUR package management on Arch
## Features
- **Yay Installation:** Installs the AUR helper [yay](https://wiki.archlinux.org/title/Yay) on Arch Linux.
- **Yay Installation:** Installs the AUR helper [yay](https://github.com/Jguer/yay) on Arch Linux.
- **User Creation:** Creates a dedicated `aur_builder` user.
- **Sudo Configuration:** Grants passwordless sudo rights to `aur_builder` for pacman.
+1 -1
View File
@@ -12,7 +12,7 @@ This role performs the following tasks:
- Uses [pacman](https://wiki.archlinux.org/title/Pacman) for Arch Linux.
- Uses [apt](https://en.wikipedia.org/wiki/APT_(software)) for Debian-based systems.
- Invokes the Docker update role if Docker Compose instances are found.
- Checks for the presence of the [yay](https://wiki.archlinux.org/title/Yay) AUR helper and, if installed, triggers an update for AUR packages.
- Checks for the presence of the [yay](https://github.com/Jguer/yay) AUR helper and, if installed, triggers an update for AUR packages.
## Purpose
+1 -1
View File
@@ -26,7 +26,7 @@ By default, BigBlueButton is deployed with best-practice hardening, modular secr
- Functional email system for Greenlight SMTP
## Further Resources
- [BigBlueButton Docker Docs](https://docs.bigbluebutton.org/greenlight/gl-overview#setting-bigbluebutton-credentials)
- [BigBlueButton Docker Docs](https://docs.bigbluebutton.org/greenlight/v3/install/)
- [Networking Fixes & Issues](https://stackoverflow.com/questions/53347951/web-app-network-not-found)
## Credits
@@ -153,6 +153,7 @@ NUMBER_OF_FRONTEND_NODEJS_PROCESSES=2
#
# For in-depth steps on setting up a Office 365 Login Provider, see:
#
# nocheck: url
# https://docs.bigbluebutton.org/greenlight/gl-admin#office365-oauth2
#
OFFICE365_KEY=
@@ -170,6 +171,7 @@ OAUTH2_REDIRECT=
# Configuring LDAP authentication will take precedence over all other providers.
# For information about setting up LDAP, see:
#
# nocheck: url
# https://docs.bigbluebutton.org/greenlight/gl-admin#ldap-auth
LDAP_SERVER="{{ LDAP.SERVER.DOMAIN }}"
@@ -190,6 +192,7 @@ LDAP_PASSWORD={{ LDAP.BIND_CREDENTIAL | dotenv_quote }}
# Set this to true if you want GreenLight to support user signup and login without
# Omniauth. For more information, see:
#
# nocheck: url
# https://docs.bigbluebutton.org/greenlight/gl-overview#accounts-and-profile
#
ALLOW_GREENLIGHT_ACCOUNTS=true
@@ -270,6 +273,7 @@ MAINTENANCE_WINDOW=
#
# Defaults to the Greenlight documentation
# Button can be disabled by setting the value to blank
# nocheck: url
HELP_URL=https://docs.bigbluebutton.org/greenlight/gl-overview
# Specify the default registration to be used by Greenlight until an administrator sets the
+2
View File
@@ -1,4 +1,5 @@
# Fider configuration
# nocheck: url
# @see https://getfider.com/docs/hosting
BASE_URL={{ lookup('tls', application_id, 'url.base') }}
@@ -7,6 +8,7 @@ JWT_SECRET={{ (application_id ~ users.administrator.password) | hash('sha256') }
{% if SYSTEM_EMAIL_ENABLED | bool %}
# Email configuration
# nocheck: url
# @see https://getfider.com/docs/hosting#email
EMAIL_NOREPLY={{ users['no-reply'].email }}
EMAIL_SMTP_HOST={{ SYSTEM_EMAIL_HOST }}
+1
View File
@@ -1,5 +1,6 @@
# Magento environment
# Base references:
# nocheck: url
# - https://hub.docker.com/r/bitnami/magento
# Host & URLs
+1 -1
View File
@@ -8,7 +8,7 @@ server:
script-src-elem:
- https://cdn.matomo.cloud # nocheck: url
style-src-elem:
- https://fonts.googleapis.com
- https://fonts.googleapis.com # nocheck: url
flags:
script-src-attr:
unsafe-eval: true
@@ -349,7 +349,7 @@ bridge:
share: cross-signed-tofu
# Options for Megolm room key rotation. These options allow you to
# configure the m.room.encryption event content. See:
# https://spec.matrix.org/v1.3/desktop-server-api/#mroomencryption for
# https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
# more information about that event.
rotation:
# Enable custom Megolm room key rotation settings. Note that these
@@ -319,7 +319,7 @@ bridge:
share: cross-signed-tofu
# Options for Megolm room key rotation. These options allow you to
# configure the m.room.encryption event content. See:
# https://spec.matrix.org/v1.3/desktop-server-api/#mroomencryption for
# https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
# more information about that event.
rotation:
# Enable custom Megolm room key rotation settings. Note that these
@@ -282,7 +282,7 @@ bridge:
share: cross-signed-tofu
# Options for Megolm room key rotation. These options allow you to
# configure the m.room.encryption event content. See:
# https://spec.matrix.org/v1.3/desktop-server-api/#mroomencryption for
# https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
# more information about that event.
rotation:
# Enable custom Megolm room key rotation settings. Note that these
@@ -233,7 +233,7 @@ bridge:
share: cross-signed-tofu
# Options for Megolm room key rotation. These options allow you to
# configure the m.room.encryption event content. See:
# https://spec.matrix.org/v1.3/desktop-server-api/#mroomencryption for
# https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
# more information about that event.
rotation:
# Enable custom Megolm room key rotation settings. Note that these
@@ -239,7 +239,7 @@ bridge:
share: cross-signed-tofu
# Options for Megolm room key rotation. These options allow you to
# configure the m.room.encryption event content. See:
# https://spec.matrix.org/v1.3/desktop-server-api/#mroomencryption for
# https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
# more information about that event.
rotation:
# Enable custom Megolm room key rotation settings. Note that these
@@ -314,7 +314,7 @@ bridge:
share: cross-signed-tofu
# Options for Megolm room key rotation. These options allow you to
# configure the m.room.encryption event content. See:
# https://spec.matrix.org/v1.3/desktop-server-api/#mroomencryption for
# https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
# more information about that event.
rotation:
# Enable custom Megolm room key rotation settings. Note that these
@@ -394,7 +394,7 @@ bridge:
share: cross-signed-tofu
# Options for Megolm room key rotation. These options allow you to
# configure the m.room.encryption event content. See:
# https://spec.matrix.org/v1.3/desktop-server-api/#mroomencryption for
# https://spec.matrix.org/v1.3/client-server-api/#mroomencryption for
# more information about that event.
rotation:
# Enable custom Megolm room key rotation settings. Note that these
@@ -162,13 +162,13 @@ config :mobilizon, Mobilizon.Service.Geospatial.Nominatim,
),
api_key: System.get_env("MOBILIZON_GEOSPATIAL_NOMINATIM_API_KEY", nil)
# nocheck: url
config :mobilizon, Mobilizon.Service.Geospatial.Addok,
endpoint:
# nocheck: url
System.get_env("MOBILIZON_GEOSPATIAL_ADDOK_ENDPOINT", "https://api-adresse.data.gouv.fr")
# nocheck: url
config :mobilizon, Mobilizon.Service.Geospatial.Photon,
# nocheck: url
endpoint: System.get_env("MOBILIZON_GEOSPATIAL_PHOTON_ENDPOINT", "https://photon.komoot.de")
config :mobilizon, Mobilizon.Service.Geospatial.GoogleMaps,
+3 -3
View File
@@ -12,11 +12,11 @@ server:
frame-ancestors:
- "*.{{ DOMAIN_PRIMARY }}"
script-src-elem:
- "https://fonts.googleapis.com"
- "https://fonts.googleapis.com" # nocheck: url
style-src-elem:
- "https://fonts.googleapis.com"
- "https://fonts.googleapis.com" # nocheck: url
font-src:
- "https://fonts.gstatic.com"
- "https://fonts.gstatic.com" # nocheck: url
flags:
script-src-attr:
unsafe-inline: true
@@ -51,7 +51,9 @@ class TestLittlejsHref(unittest.TestCase):
def test_respects_protocol_and_domain(self):
example = {"file": "platformer", "is_project": True}
href = type(self)._littlejs_href(example, "http", "littlejs.infinito.nexus")
self.assertEqual(href, "http://littlejs.infinito.nexus/examples/platformer/")
self.assertEqual(
href, "http://littlejs.infinito.nexus/examples/platformer/"
) # nocheck: url
if __name__ == "__main__":
@@ -1,134 +0,0 @@
from __future__ import annotations
import unittest
from unittest.mock import Mock, patch
from tests.external.repository import test_urls_reachable as sut
class TestProbeUrl(unittest.TestCase):
def _response(self, status_code: int) -> Mock:
response = Mock()
response.status_code = status_code
response.close = Mock()
return response
@patch.object(sut.requests, "get")
def test_probe_returns_fail_for_client_error(self, mock_get: Mock) -> None:
mock_get.return_value = self._response(404)
outcome = sut._probe_url("https://example.invalid/path")
self.assertEqual(outcome.kind, "fail")
self.assertEqual(outcome.detail, "HTTP 404")
@patch.object(sut.requests, "get")
def test_probe_returns_warn_for_http_503(self, mock_get: Mock) -> None:
mock_get.return_value = self._response(503)
outcome = sut._probe_url("https://example.invalid/path")
self.assertEqual(outcome.kind, "warn")
self.assertEqual(outcome.detail, "HTTP 503")
@patch.object(sut.requests, "get")
def test_probe_returns_fail_for_non_warn_server_error(self, mock_get: Mock) -> None:
mock_get.return_value = self._response(502)
outcome = sut._probe_url("https://example.invalid/path")
self.assertEqual(outcome.kind, "fail")
self.assertEqual(outcome.detail, "HTTP 502")
@patch.object(sut.requests, "get")
def test_probe_returns_warn_for_http_500(self, mock_get: Mock) -> None:
mock_get.return_value = self._response(500)
outcome = sut._probe_url("https://example.invalid/path")
self.assertEqual(outcome.kind, "warn")
self.assertEqual(outcome.detail, "HTTP 500")
@patch.object(sut.requests, "get")
def test_probe_returns_ok_for_auth_gated(self, mock_get: Mock) -> None:
mock_get.return_value = self._response(401)
outcome = sut._probe_url("https://example.invalid/path")
self.assertEqual(outcome.kind, "ok")
@patch.object(sut.requests, "get")
def test_probe_returns_fail_for_unreachable_url(self, mock_get: Mock) -> None:
mock_get.side_effect = sut.requests.ConnectionError("dns failed")
outcome = sut._probe_url("https://example.invalid/path")
self.assertEqual(outcome.kind, "fail")
self.assertIn("ConnectionError", outcome.detail)
@patch.object(sut.requests, "get")
def test_probe_returns_warn_for_timeout(self, mock_get: Mock) -> None:
mock_get.side_effect = sut.requests.Timeout("timed out")
outcome = sut._probe_url("https://example.invalid/path")
self.assertEqual(outcome.kind, "warn")
self.assertIn("Timeout", outcome.detail)
class TestUrlReachabilityTestCase(unittest.TestCase):
def test_external_check_fails_and_emits_error_annotation(self) -> None:
case = sut.TestUrlsReachable()
occurrence = sut.UrlOccurrence(
sut._REPO_ROOT / "docs/file.md", 7, "https://bad.example"
)
with (
patch.object(
sut,
"_collect_occurrences",
return_value={"https://bad.example": [occurrence]},
),
patch.object(
sut,
"_probe_url",
return_value=sut.ProbeOutcome("fail", "HTTP 404"),
),
patch.object(sut, "error") as mock_error,
patch.object(sut, "warning") as mock_warning,
):
with self.assertRaises(AssertionError) as cm:
case.test_public_http_urls_are_reachable()
self.assertIn("HTTP 404", str(cm.exception))
mock_error.assert_called_once()
mock_warning.assert_not_called()
def test_external_check_warns_for_http_500_without_failing(self) -> None:
case = sut.TestUrlsReachable()
occurrence = sut.UrlOccurrence(
sut._REPO_ROOT / "docs/file.md", 7, "https://warn.example"
)
with (
patch.object(
sut,
"_collect_occurrences",
return_value={"https://warn.example": [occurrence]},
),
patch.object(
sut,
"_probe_url",
return_value=sut.ProbeOutcome("warn", "HTTP 500"),
),
patch.object(sut, "error") as mock_error,
patch.object(sut, "warning") as mock_warning,
):
case.test_public_http_urls_are_reachable()
mock_error.assert_not_called()
mock_warning.assert_called_once()
if __name__ == "__main__":
unittest.main()