Repository navigation
fix(social): raise weekly publish timeouts and retry idempotent GETs - #775
Open
harlan-github-agent[bot] wants to merge 1 commit into
Open
harlan-github-agent[bot] wants to merge 1 commit into
harlan-github-agent[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
🟢 Ready · Checked: Retry, backoff, phase tagging, and send-unretried semantics in scripts/lib/weekly-social.ts against scripts/weekly-social.ts and every test in test/unit/weekly-social.test.ts, including old message-contains assertions. Not checked: The GitHub Actions workflow definition (not present in this worktree's searchable files), so step-level timeout-minutes interaction with the now ~6-minute worst-case per call is unverified. 2 notes below 40/100 not shown.
|
Contributor
Author
There was a problem hiding this comment.
🟢 Ready · read the review
Harlan Agent Kit automated review, not Harlan's · AI policy
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.
🔗 Linked issue
Closes #771
❓ Type of change
📚 Description
The 2026-11-30T22:03Z publish (run 46522944600) aborted about 31 seconds into the publish step on the 30-second per-call fetch cap, after the claim artifact was saved, so the Discord embed never went out. It was the second consecutive weekly failure.
Every request in the publish path now gets a 120-second budget instead of 30, and the idempotent GET calls (trending feed, skill detail, destination verification) retry up to 2 extra attempts on timeouts, lost connections, and 408/429/5xx, with a 2s then 4s backoff. Failures throw a
WeeklySocialRequestErrortagged with the phase that failed, so logs saytrending feed request failed: ...instead of a bare abort. The send itself stays un-retried: the claim design treats an uncertain send as unrepeatable, and that behaviour is pinned by an existing test.Open points:
scripts/weekly-social.tskeeps its own 30-second cap; it sits outside this issue's target file, and a timeout there fails before any send, so a workflow rerun can still retry it.