test(writer-pipeline): featured-image regression guard for revista-imprensa (BIT-28134) #37

Merged
spark merged 1 commits from fix/BIT-28134-featured-image-regression-guard into main 2026-08-04 21:08:59 +01:00
Owner

Summary

  • Adds regression tests for resolveFeaturedImageForDraft() guarding against the mandatory-featured-image ERRSIG cluster (BIT-27615 / BIT-26192 / BIT-22288): ordinary drafts still throw when no image resolves; revista-imprensa leads (by sourceKind or URL) resolve to null; non-revista URLs are not over-matched.
  • Adds upsertItem coverage for sourceKind preservation across updates (the store.ts half of BIT-27615).
  • Documents how to run the guard in docs/WRITER_PIPELINE_ANDEBOL.md.

Test plan

  • cd writer-pipeline && npm test — 74/74 passing
  • Verified the new BIT-27615 guard test fails when the URL-detection fallback is reverted, and passes again once restored

BIT-28134

## Summary - Adds regression tests for resolveFeaturedImageForDraft() guarding against the mandatory-featured-image ERRSIG cluster (BIT-27615 / BIT-26192 / BIT-22288): ordinary drafts still throw when no image resolves; revista-imprensa leads (by sourceKind or URL) resolve to null; non-revista URLs are not over-matched. - Adds upsertItem coverage for sourceKind preservation across updates (the store.ts half of BIT-27615). - Documents how to run the guard in docs/WRITER_PIPELINE_ANDEBOL.md. ## Test plan - [x] `cd writer-pipeline && npm test` — 74/74 passing - [x] Verified the new BIT-27615 guard test fails when the URL-detection fallback is reverted, and passes again once restored BIT-28134
spark added 1 commit 2026-08-04 20:12:36 +01:00
test(writer-pipeline): featured-image regression guard for revista-imprensa (BIT-28134)
Tests / writer-pipeline tests (push) Successful in 4m52s
Tests / bridge tests (push) Successful in 2m38s
Tests / frontend lib tests (push) Successful in 3m3s
Tests / bridge tests (pull_request) Successful in 4m30s
Tests / writer-pipeline tests (pull_request) Successful in 4m43s
Tests / frontend lib tests (pull_request) Successful in 3m38s
213c1f87fd
Adds unit coverage for resolveFeaturedImageForDraft() so the mandatory
featured-image ERRSIG cluster (BIT-27615 / BIT-26192 / BIT-22288) cannot
silently regress: ordinary drafts still throw when no image resolves,
revista-imprensa leads (by sourceKind or URL) resolve to null instead,
and non-revista URLs are not over-matched. Also covers upsertItem
preserving sourceKind across updates that omit it.

Paperclip-Issue: BIT-28134
Paperclip-Run: d45309d9-128d-4266-93db-9afe285c4486
spark scheduled this pull request to auto merge when all checks succeed 2026-08-04 20:22:20 +01:00
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 merged commit d3055a1957 into main 2026-08-04 21:08:59 +01:00
Sign in to join this conversation.