Skip to content

Redirect the Old News Sitemap to sitemap.xml - #489

Merged
ptr727 merged 5 commits into
developfrom
fix/news-sitemap-redirect
Oct 23, 2026
Merged

ptr727 merged 5 commits into
developfrom
fix/news-sitemap-redirect

Conversation

@ptr727

@ptr727 ptr727 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

The 2026-10-23 404 pass (log-review handoff #474) found /news-sitemap.xml requested daily on blog.insanegenius.com by GPTBot, Applebot, and a few residential clients, and production answers it 404. Round 1 of the lane had dropped it as noise, but the Wayback Machine holds 200 captures of it from 2022 through 2024, so the old platform served it and the redirect contract missed it.

  • deploy/Caddyfile: a new @news_sitemap exact-path class redirects /news-sitemap.xml to /sitemap.xml, the same shape as the /atom.xml alias. A slugs.map entry was the first draft, and the strict review pointed out that capture/build-redirects.py rewrites that map and never emits a one-slash key, so a hand edit there would not survive.
  • checks/redirect-urls.txt: adds /news-sitemap.xml, which makes the contract 956 URLs.
  • checks/check-live-urls.sh: classes the path as @news_sitemap, and adds /sitemap.xml to the fixed destinations the sample renders, since no list names it and the sampled run does not follow redirects.
  • checks/README.md and deploy/README.md: a row for the new class in each table, and the stated counts follow the change (955 to 956, 15 to 16 redir directives, sixteen to seventeen classes).
  • checks/tests/test_check_live_urls_sample.py: the class count the table test asserts moves from 16 to 17.
  • OPERATIONS.md: records that a routerless https 404 landing beside 502s on a served hostname is the edge restarting, nightly or during a daytime host-side push, so a pass leaves it alone unless it does not look like an update blip. Three such windows showed up in the lane's last two passes, and this stops the next pass re-investigating one.

Verification

  • Released the branch to the local staging mirror. check-live-urls.sh passed 1294 URLs, and /news-sitemap.xml answered 301 to /sitemap.xml, which answered 200.
  • python3 -m unittest discover -s checks/tests passed 127 tests.
  • --print-sample lists @news_sitemap 1 /news-sitemap.xml and /sitemap.xml among the rendered destinations, with the sample at 30 of 30 non-static paths.
  • prose_lint.py --diff, with and without --check sentence-length, reported nothing. markdownlint, editorconfig-checker, shellcheck, and shfmt ran through the hub's Docker wrapper and reported nothing. ruff check and format pass on checks/.
  • Five local strict review passes ran. The first found the slugs.map hand edit the generator would drop, fixed in the second commit. The second found the stale @label ordinal, fixed in the third. The third found nothing. After the Copilot round, the fourth found the two sibling sentences in deploy/README.md and OPERATIONS.md, fixed in the fifth commit, and the fifth found nothing.

🤖 Generated with Claude Code

The old platform served /news-sitemap.xml, and the Wayback Machine holds
captures of it answering 200 from 2022 through 2024. Crawlers still poll
it daily and get a 404. A slugs.map entry sends it to /sitemap.xml, the
contract carries it, and the README counts move with it.

OPERATIONS.md also records that a routerless https 404 landing beside
502s is the edge restarting on its schedule, so a pass leaves it alone.
The strict review found the map entry would not survive, since
capture/build-redirects.py rewrites slugs.map from the capture and its
filter never emits a one-slash key. The redirect is an exact-path class
of its own instead, the shape the Blogger feed alias uses, with its own
rows in both README tables, its sampler class, and /sitemap.xml among
the fixed destinations the sample renders.

OPERATIONS.md's restart paragraph opens as the exception to the routing
fault the paragraph before it describes, and attributes the restart
schedule to the host side's own documentation.
Copilot AI lite review requested due to automatic review settings October 23, 2026 17:07
@ptr727

ptr727 commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head c37d6b01c6a58b8412e99d5a77a40f71ea61a9a2, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: df24bcae-168f-4ba4-86bc-aad5fa75b2de
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@3b9de9f). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #489   +/-   ##
==========================================
  Coverage           ?   49.70%           
==========================================
  Files              ?       10           
  Lines              ?     3058           
  Branches           ?        0           
==========================================
  Hits               ?     1520           
  Misses             ?     1538           
  Partials           ?        0           
Flag Coverage Δ
python-3.13 49.70% <ø> (?)

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

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

🟢 Approval recommended

The remaining review comments are minor documentation and ordering nits, with no unresolved issues that block approval.

1 open issue
What changed in this PR

This pull request redirects the legacy /news-sitemap.xml URL to /sitemap.xml and updates the redirect contract, live checks, tests, documentation, and operational guidance.

Changes:

  • Adds an exact Caddy 301 redirect for /news-sitemap.xml.
  • Extends the URL contract and samples /sitemap.xml during live checks.
  • Updates redirect classifications, counts, tests, and documentation.
  • Documents transient routerless HTTPS 404s during edge restarts.
File Description
OPERATIONS.md Documents transient routerless HTTPS 404s during edge restarts.
deploy/​README.md Updates redirect counts and documents the new sitemap class.
deploy/​Caddyfile Redirects /news-sitemap.xml to /sitemap.xml with a 301.
checks/​tests/​test_check_live_urls_sample.py Updates the expected redirect-class count.
checks/​redirect-urls.txt Adds the legacy sitemap URL to the redirect contract.
checks/​README.md Documents the new redirect class and updated contract size.
checks/​check-live-urls.sh Classifies the new URL and samples /sitemap.xml.

Review effort: Lite

Comment thread checks/README.md Resolved
@ptr727

ptr727 commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head e806b11e963fbb54295122ac8b24e53f659c0625, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit 1861c43 into develop Oct 23, 2026
12 checks passed
@ptr727
ptr727 deleted the fix/news-sitemap-redirect branch October 23, 2026 17:19
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.

2 participants