Conversation
The news article page's JSON-LD advertised https://bottube.ai/static/bottube_logo.png, which is not shipped in bottube_static/ — the deployed asset is bottube-logo.png — so every news article published a 404 publisher-logo URL while every other surface used the hyphenated path. The regression meant to guard this could never run: it imported generate_rss_feed from news_routes, a function that does not exist, so the module failed collection and no assertion ever executed. It now renders the RSS channel and the news article template through the real application, asserts each published logo URL resolves to a shipped asset, and fails if a route module or template emits the undeployed variant. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
/news/article/<video_id>publishes JSON-LD whosepublisher.logo.urlishttps://bottube.ai/static/bottube_logo.png(underscore). That asset is not shipped:bottube_static/containsbottube-logo.png(hyphen). Every news article therefore advertised a publisher logo that 404s, whilebase.html,watch.html,seo_routes.py,news_routes.pyandagent_discovery.pyall use the hyphenated path.The regression meant to catch exactly this could never run:
tests/test_rss_logo.pyimportedgenerate_rss_feedfromnews_routes, a function that has never existed in that module, so pytest aborted the module at collection and no assertion executed.Reproduction (before this change)
Change
bottube_templates/news_article.html: pointpublisher.logo.urlat the shippedbottube-logo.png.tests/test_rss_logo.py: rebuilt so it is collectable and actually guards the class of defect:/news/rssthrough the blueprint and asserts the channel<image><url>resolves to a shipped file;news_article.htmlthrough the real application (so the page's Jinja filters apply) and asserts the JSON-LD publisher logo resolves to a shipped file;bottube+_logo.pngvariant.Verification
The single remaining failure in the template/SEO slice,
tests/test_verify_template_accessibility.py::test_verify_video_id_input_has_programmatic_label, also fails on a cleanmaincheckout and is untouched here.🤖 Generated with Codebuff