fix(writer-pipeline): retry WP draft POSTs; demote transient fetch noise (BIT-30583) #49

Merged
spark merged 2 commits from fix/BIT-30583-draft-fetch-retry into main 2026-10-01 07:18:11 +01:00
Owner

Summary

  • Retry WP REST media/post POSTs on transient network errors (not 5xx) so undici fetch failed blips do not fail the whole draft publish path.
  • Demote per-item draft …: fetch failed / network-error cycle messages to hub warning (BIT-30583 / ERRSIG f723b02cf00e) — same pattern as partial sitemap probes.
  • Clarify featured-image network exhaustion errors for metrics without opening Error Loop high-sev tickets.

Test plan

  • npx tsx --test src/cycle-error-report.test.ts src/wp-publish.test.ts (pass)
  • After merge/deploy: next writer cycle should not open a new Error Loop ticket for a single draft network miss

Paperclip-Issue: BIT-30583

## Summary - Retry WP REST media/post POSTs on transient network errors (not 5xx) so undici `fetch failed` blips do not fail the whole draft publish path. - Demote per-item `draft …: fetch failed` / network-error cycle messages to hub **warning** (BIT-30583 / ERRSIG `f723b02cf00e`) — same pattern as partial sitemap probes. - Clarify featured-image network exhaustion errors for metrics without opening Error Loop high-sev tickets. ## Test plan - [x] `npx tsx --test src/cycle-error-report.test.ts src/wp-publish.test.ts` (pass) - [ ] After merge/deploy: next writer cycle should not open a new Error Loop ticket for a single draft network miss Paperclip-Issue: BIT-30583
spark added 1 commit 2026-09-24 06:23:04 +01:00
fix(writer-pipeline): retry WP draft POSTs and demote transient fetch noise
Tests / writer-pipeline tests (pull_request) Failing after 22s
Tests / bridge tests (pull_request) Successful in 1m26s
Tests / bridge tests (push) Successful in 1m22s
Tests / writer-pipeline tests (push) Successful in 1m26s
Tests / frontend lib tests (pull_request) Successful in 1m32s
Tests / frontend lib tests (push) Successful in 1m30s
aa19492fe4
ERRSIG f723b02cf00e opened on a one-off undici "draft …: fetch failed" for a
record.pt item. Featured-image GETs already retry (BIT-related 6079046); WP
media/post POSTs did not. Retry network-only on those POSTs and report
remaining per-item draft network misses as warning so Error Loop skips them.

Paperclip-Agent: Bug Squasher (urlKey bug-squasher; id 4669adc7-6368-43ef-bf27-5a601a6b7b83)
Paperclip-Issue: BIT-30583
Paperclip-Run: fb6db8e0-afed-4fc1-8f40-a34ffeee3d27
paperclip-review-bot left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-09-24 06:30:42 +01:00
spark added 1 commit 2026-10-01 07:16:29 +01:00
Merge branch 'main' into fix/BIT-30583-draft-fetch-retry
Tests / writer-pipeline tests (push) Successful in 54s
Tests / bridge tests (push) Successful in 53s
Tests / writer-pipeline tests (pull_request) Successful in 55s
Tests / frontend lib tests (push) Successful in 1m0s
Tests / bridge tests (pull_request) Successful in 56s
Tests / frontend lib tests (pull_request) Successful in 41s
28a823dfbe
spark merged commit da539f33aa into main 2026-10-01 07:18:11 +01:00
Sign in to join this conversation.