openreader/tests
Richard R fe59685454 feat(worker): add granular PDF progress reporting and abort error handling
Introduce per-page progress events for PDF parsing by adding onPageStarted
hooks throughout the compute worker and core PDF pipeline. Add
compute/worker/src/pdf-progress.ts to encapsulate progress event builders.
Update server logic to emit page start and page parsed events, improving
client feedback during long-running PDF jobs.

Add src/lib/server/compute/abort-like-error.ts and integrate isAbortLikeError
to robustly detect and suppress expected aborts in API event streaming.
Update API route to ignore abort-like errors on worker proxy crash.

Add unit tests for abort-like error detection and PDF progress event
generation. Refactor PDF parse logic to allow empty merged regions without
throwing, ensuring downstream flows remain resilient to edge cases.

These changes improve observability, error handling, and reliability for
document parsing and event streaming.
2026-05-29 20:13:59 -06:00
..
files refactor(pdf-layout): streamline viewer layout settling and harden pdf document loading 2026-05-19 23:02:41 -06:00
unit feat(worker): add granular PDF progress reporting and abort error handling 2026-05-29 20:13:59 -06:00
accessibility.spec.ts test(documents): update selectors and assertions for document actions and accessibility 2026-05-28 12:34:29 -06:00
delete.spec.ts test(e2e): disambiguate settings and uploader selectors 2026-05-28 22:46:55 -06:00
export.spec.ts tests: harden pdf readiness waits and extend tts/pdf timeouts 2026-05-24 20:58:57 -06:00
folders.spec.ts fix(onboarding): prevent no-auth auto settings modal races 2026-05-29 09:20:34 -06:00
global-teardown.ts refactor(tts,db,manifest): split tts_segments into normalized entry and variant tables 2026-05-12 17:44:57 -06:00
helpers.ts refactor(onboarding): modularize onboarding flow logic and improve testability 2026-05-29 18:03:17 -06:00
landing-routing.spec.ts tests: harden pdf readiness waits and extend tts/pdf timeouts 2026-05-24 20:58:57 -06:00
navigation.spec.ts tests: harden pdf readiness waits and extend tts/pdf timeouts 2026-05-24 20:58:57 -06:00
play.spec.ts tests: harden pdf readiness waits and extend tts/pdf timeouts 2026-05-24 20:58:57 -06:00
upload.spec.ts test(documents): update selectors and assertions for document actions and accessibility 2026-05-28 12:34:29 -06:00