Skip to content

Give the feed fetch a deadline again - #111

Merged
RobbieTheWagner merged 1 commit into
mainfrom
fix/feed-timeout
Dec 1, 2026
Merged

RobbieTheWagner merged 1 commit into
mainfrom
fix/feed-timeout

Conversation

@RobbieTheWagner

@RobbieTheWagner RobbieTheWagner commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

The CodeRabbit fixes on the old redesign stack (#74, from ac95033) gave the RSS feed request a 10s deadline. That was lost when the build moved to fetching the feed once, so fetchFeedXml in packages/starpod/src/lib/rss.ts was a plain fetch(url). A server that accepted the connection and never answered would hang the build.

  • The feed fetch now has a 30s deadline (AbortSignal.timeout) covering the whole request, body included.
  • It's 30s rather than the transcripts' 10s because every page needs the feed, and a large feed on a slow runner shouldn't fail a build it would have finished.
  • A timeout throws [starpod] Fetching the feed <url> timed out after 30s, with the original error as its cause.
  • A failed fetch is still forgotten, so the next caller retries.

Testing

  • New unit test: the feed is fetched with a signal, and a TimeoutError becomes the message above.
  • tests/unit/rss.test.ts passes (3 tests), lint is clean, and astro check reports 0 errors.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • RSS feed requests now stop after 30 seconds, including while the response is being read, rather than waiting indefinitely.
    • When a request times out, the error identifies the feed and the time limit. Other request errors continue to be reported.

@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
starpod Ready Ready Preview Dec 1, 2026 4:57pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

fetchFeedXml now applies a 30-second timeout, awaits the response body, and reports timeout errors with the feed URL and deadline. A unit test checks that the fetch receives an AbortSignal and that timeout errors include the expected details.

Changes: RSS feed fetching

Layer / File(s) Summary
Add timeout handling to feed fetching
packages/starpod/src/lib/rss.ts, tests/unit/rss.test.ts
fetchFeedXml now uses a 30-second timeout and awaits the response body. Timeout errors name the feed URL and deadline and retain the original error as their cause. The test checks the abort signal and timeout message.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 049be

This restores a deadline on the RSS feed fetch so a stalled request fails with a clear message instead of hanging the build. No actionable merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Give the feed fetch a deadline again" matches the main change. The PR adds a 30-second deadline to the RSS feed request in fetchFeedXml, covering the full request including the response bod…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Give the feed fetch a deadline again" matches the main change. The PR adds a 30-second deadline to the RSS feed request in fetchFeedXml, covering the full request including the response body, and converts timeouts into an error naming the URL and duration. The word "again" refers to the earlier 10-second deadline that was lost, as stated in the objectives. The title is specific and concise and does not conflict with the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7f1e0e7 and 049bebc.

Files selected for processing: 2

  • packages/starpod/src/lib/rss.ts
  • tests/unit/rss.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

The CodeRabbit fixes on the old redesign stack (ac95033) gave the feed
request a 10s deadline, but it was lost when the build moved to fetching
the feed once. A server that accepted the connection and never answered
would hang the build. The feed now gets a 30s deadline over the whole
request, body included, and the timeout names the feed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RobbieTheWagner
RobbieTheWagner merged commit f261fe4 into main Dec 1, 2026
9 checks passed
@RobbieTheWagner RobbieTheWagner added the enhancement New feature or request label Dec 1, 2026
@github-actions github-actions Bot mentioned this pull request Dec 1, 2026

This branch was successfully deployed

1 active deployment
Preview — 049bebc3 Deployed Dec 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant