Skip to content

fix(social): raise weekly publish timeouts and retry idempotent GETs - #775

Open
harlan-github-agent[bot] wants to merge 1 commit into
mainfrom
fix/issue-771
Open

harlan-github-agent[bot] wants to merge 1 commit into
mainfrom
fix/issue-771

Conversation

@harlan-github-agent

Copy link
Copy Markdown
Contributor

🔗 Linked issue

Closes #771

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking 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 WeeklySocialRequestError tagged with the phase that failed, so logs say trending 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:

  • The claim artifact lookup in scripts/weekly-social.ts keeps 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.
  • The lost 2026-11-30 Discord post is not recoverable by a rerun (RUNNER_TEMP is fresh). If that week's announcement is still wanted, publish manually from the saved claim artifact.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. and removed harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. labels Dec 3, 2026
@harlan-github-agent

harlan-github-agent Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor Author

🟢 Ready · 90/100

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.

2026-12-03 16:38 UTC · Harlan Agent Kit automated review, not Harlan's; a person merges · AI policy · @harlan-agent rerun · @harlan-agent stop

@harlan-github-agent harlan-github-agent Bot added the harlan-agent-ready The automated Review passed every gate on this head commit. label Dec 3, 2026

@harlan-github-agent harlan-github-agent Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready · read the review

Harlan Agent Kit automated review, not Harlan's · AI policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

harlan-agent-ready The automated Review passed every gate on this head commit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Weekly Discord publish aborts at the 30-second cap

0 participants