Files #547 thumbnail fixture expects text-card for PDF bytes on production #1532

Open
opened 2026-10-09 13:01:01 +00:00 by kayg · 0 comments
Owner

Merge round #1526 reproduced the same #547 Files thumbnail fixture timeout on production 5a2c02c13 and the merged candidate. Both runs use bun apps/web/e2e/files.mjs; the production comparison uses its server binary and CALTERNAL_E2E_ASSET_OVERRIDE=0 so its embedded SPA is served.

Verbatim evidence:

error: Timed out waiting for text-card thumbnail for thumbnail-cache-547.txt
"size":604,"content_hash":"a2b2a4ec324467e94f80e6b96bb33ec6f0ce89e5245d1f23dc698a58e01f6ae7","mime":"application/pdf","has_thumbnail":true
at waitForThumbnail (apps/web/e2e/files.mjs:433:12)
CSP REPORTS files: 0 across 1 pages

The existing fixture writes the same PDF bytes first under a .txt filename and later under a .pdf filename to test separate renderer caches. The first upload is classified as application/pdf on both builds, so it never produces the expected text-card variant and later scenarios do not run. No 5xx, source loss, crash or cross-User effect was observed.

Keep the existing expectation in merge36. Determine how the content-type policy should interact with the equal-content-hash renderer-cache test. Use a fixture or API path that exercises both legitimate renderer variants without weakening MIME protections, then rerun the Files suite.

Merge round #1526 reproduced the same #547 Files thumbnail fixture timeout on production 5a2c02c13 and the merged candidate. Both runs use `bun apps/web/e2e/files.mjs`; the production comparison uses its server binary and `CALTERNAL_E2E_ASSET_OVERRIDE=0` so its embedded SPA is served. Verbatim evidence: ``` error: Timed out waiting for text-card thumbnail for thumbnail-cache-547.txt "size":604,"content_hash":"a2b2a4ec324467e94f80e6b96bb33ec6f0ce89e5245d1f23dc698a58e01f6ae7","mime":"application/pdf","has_thumbnail":true at waitForThumbnail (apps/web/e2e/files.mjs:433:12) CSP REPORTS files: 0 across 1 pages ``` The existing fixture writes the same PDF bytes first under a .txt filename and later under a .pdf filename to test separate renderer caches. The first upload is classified as application/pdf on both builds, so it never produces the expected text-card variant and later scenarios do not run. No 5xx, source loss, crash or cross-User effect was observed. Keep the existing expectation in merge36. Determine how the content-type policy should interact with the equal-content-hash renderer-cache test. Use a fixture or API path that exercises both legitimate renderer variants without weakening MIME protections, then rerun the Files suite.
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal-v0#1532
No description provided.