Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
for url in https://hivecommons.dev/ https://hivecommons.dev/stories/ \
https://hivecommons.dev/docs/ https://hivecommons.dev/code/ \
https://hivecommons.dev/discord/ https://hivecommons.dev/join/ \
https://hivecommons.dev/llms.txt https://hivecommons.dev/sitemap.xml \
https://hivecommons.dev/robots.txt \
https://hivecommons.dev/404.html; do
status=$(curl --silent --show-error --output /dev/null \
--write-out '%{http_code}' --connect-timeout 10 --max-time 30 \
Expand Down
2 changes: 1 addition & 1 deletion runbooks/availability-failure.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The **Link check** workflow (`.github/workflows/links.yml`) runs its `availability`
job on a 6-hour schedule and on manual dispatch. It requests the live homepage,
`/stories/`, a sample of the shortcut redirects and `/404.html` over HTTPS and fails
`/stories/`, `/docs/`, `/llms.txt`, `/sitemap.xml`, `/robots.txt`, a sample of the shortcut redirects and `/404.html` over HTTPS and fails
unless every one returns HTTP 200. Use this runbook when that job is red and no recent
deploy explains it; for a bad commit, use the [rollback runbook](release-rollback.md).

Expand Down
2 changes: 1 addition & 1 deletion scripts/availability-probes.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ test("fixture: sitemap <loc> values are extracted", () => {
});

const FIXTURE_SITEMAP = [`${SITE_ORIGIN}/`, `${SITE_ORIGIN}/stories/`];
const GOOD_LIST = [`${SITE_ORIGIN}/`, `${SITE_ORIGIN}/stories/`, `${SITE_ORIGIN}/docs/`, `${SITE_ORIGIN}/404.html`];
const GOOD_LIST = [`${SITE_ORIGIN}/`, `${SITE_ORIGIN}/stories/`, `${SITE_ORIGIN}/docs/`, `${SITE_ORIGIN}/llms.txt`, `${SITE_ORIGIN}/sitemap.xml`, `${SITE_ORIGIN}/robots.txt`, `${SITE_ORIGIN}/404.html`];

test("fixture: a list covering the sitemap, 404.html and a redirect passes", () => {
assert.deepEqual(probeListProblems(GOOD_LIST, { sitemap: FIXTURE_SITEMAP }), []);
Expand Down
Loading