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
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Test plan
cd writer-pipeline && npm test— 74/74 passingBIT-28134
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)