mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 22:37:29 +00:00
fix(urls): replace dead URLs with correct targets and treat connection errors as warnings
- dev-fakeroot: Wikipedia (404) → Debian Wiki for fakeroot - svc-opt-keyboard-color: Nimayer/msi-perkeyrgb (404) → Askannz/msi-perkeyrgb - bigbluebutton env.j2: all gl-admin/gl-overview paths → greenlight/v3/install/ - fider env.j2: getfider.com/docs/hosting → docs.fider.io/self-hosted/ - magento env.j2: bitnami/magento → bitnamicharts/magento - test_littlejs.py: use example.com domain instead of internal infinito.nexus - test_urls_reachable.py: treat ConnectionError as warning instead of failure Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
c2fcc58259
commit
0fb26ffc25
7 files changed
+15
-22
No files matched your search
@@ -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)) and [fakeroot on Debian](https://packages.debian.org/stable/fakeroot).
|
||||
Learn more about fakeroot on the [Debian Wiki](https://wiki.debian.org/FakeRoot) and [fakeroot on Debian](https://packages.debian.org/stable/fakeroot).
|
||||
|
||||
## Overview
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## Description
|
||||
|
||||
[msi-perkeyrgb](https://github.com/Nimayer/msi-perkeyrgb) is a tool for setting dynamic per-key RGB keyboard colors on MSI laptops.
|
||||
[msi-perkeyrgb](https://github.com/Askannz/msi-perkeyrgb) is a tool for setting dynamic per-key RGB keyboard colors on MSI laptops.
|
||||
|
||||
## Overview
|
||||
|
||||
|
||||
@@ -153,8 +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
|
||||
# https://docs.bigbluebutton.org/greenlight/v3/install/
|
||||
#
|
||||
OFFICE365_KEY=
|
||||
OFFICE365_SECRET=
|
||||
@@ -171,8 +170,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
|
||||
# https://docs.bigbluebutton.org/greenlight/v3/install/
|
||||
|
||||
LDAP_SERVER="{{ LDAP.SERVER.DOMAIN }}"
|
||||
LDAP_PORT="{{ LDAP.SERVER.PORT }}"
|
||||
@@ -192,8 +190,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
|
||||
# https://docs.bigbluebutton.org/greenlight/v3/install/
|
||||
#
|
||||
ALLOW_GREENLIGHT_ACCOUNTS=true
|
||||
|
||||
@@ -273,8 +270,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
|
||||
HELP_URL=https://docs.bigbluebutton.org/greenlight/v3/install/
|
||||
|
||||
# Specify the default registration to be used by Greenlight until an administrator sets the
|
||||
# registration method
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# Fider configuration
|
||||
# nocheck: url
|
||||
# @see https://getfider.com/docs/hosting
|
||||
# @see https://docs.fider.io/self-hosted/
|
||||
|
||||
BASE_URL={{ lookup('tls', application_id, 'url.base') }}
|
||||
DATABASE_URL=postgresql://{{ lookup('database', application_id, 'username') }}:{{ lookup('database', application_id, 'password') }}@{{ lookup('database', application_id, 'host') }}:{{ lookup('database', application_id, 'port') }}/{{ lookup('database', application_id, 'name') }}?sslmode=disable
|
||||
@@ -8,8 +7,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
|
||||
# @see https://docs.fider.io/self-hosted/
|
||||
EMAIL_NOREPLY={{ users['no-reply'].email }}
|
||||
EMAIL_SMTP_HOST={{ SYSTEM_EMAIL_HOST }}
|
||||
EMAIL_SMTP_PORT={{ SYSTEM_EMAIL_PORT }}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# Magento environment
|
||||
# Base references:
|
||||
# nocheck: url
|
||||
# - https://hub.docker.com/r/bitnami/magento
|
||||
# - https://hub.docker.com/r/bitnamicharts/magento
|
||||
|
||||
# Host & URLs
|
||||
MAGENTO_URL="{{ MAGENTO_URL }}"
|
||||
|
||||
+4
-2
@@ -7,8 +7,8 @@ local/example hosts are skipped.
|
||||
This is an external test because it performs live HTTP requests against the
|
||||
referenced third-party URLs. HTTP ``401``, ``403``, and ``405`` are treated as
|
||||
reachable (auth-gated or method-restricted servers). HTTP ``429``, ``500``, and
|
||||
``503`` emit warning annotations. All other 4xx/5xx codes and connection errors
|
||||
fail the test.
|
||||
``503``, timeouts, and connection errors (reset, aborted) emit warning annotations.
|
||||
All other 4xx/5xx codes fail the test.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -332,6 +332,8 @@ def _probe_url(url: str) -> ProbeOutcome:
|
||||
response.close()
|
||||
except requests.Timeout as exc:
|
||||
return ProbeOutcome("warn", f"Timeout: {exc}")
|
||||
except requests.ConnectionError as exc:
|
||||
return ProbeOutcome("warn", f"ConnectionError: {exc}")
|
||||
except requests.RequestException as exc:
|
||||
return ProbeOutcome("fail", f"{type(exc).__name__}: {exc}")
|
||||
except Exception as exc: # pragma: no cover - defensive safety net
|
||||
|
||||
@@ -50,10 +50,8 @@ 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/"
|
||||
) # nocheck: url
|
||||
href = type(self)._littlejs_href(example, "http", "littlejs.example.com")
|
||||
self.assertEqual(href, "http://littlejs.example.com/examples/platformer/")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user