Skip to content

[6.x] Test that indexing assets doesn't download them or repeat work on retry - #4

Closed
edalzell wants to merge 1 commit into
image-header-attributesfrom
search-insert-asset-downloads
Closed

edalzell wants to merge 1 commit into
image-header-attributesfrom
search-insert-asset-downloads

Conversation

@edalzell

@edalzell edalzell commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Part of statamic#15970 (Group B). Stack 3 of 3. Tests only.

For statamic#14061. Asserts that InsertMultipleJob on a remote disk:

  • reads image headers, not whole files, when there are no sidecars
  • reads no assets when sidecars exist
  • resumes where it left off when retried
  • reads nothing when run again

Doesn't cover the full reindex that Search::updateWithinIndexes() dispatches when the index file is missing.

@edalzell
edalzell force-pushed the search-insert-asset-downloads branch from 1180d73 to b3defee Compare November 19, 2026 05:03
@edalzell
edalzell force-pushed the image-header-attributes branch from c51a379 to b35c7fc Compare November 19, 2026 05:03
@edalzell

Copy link
Copy Markdown
Owner Author

Benchmark, run against this branch with the harness from the asset-meta-benchmark branch. This PR only adds tests, so the numbers are identical to the previous branch in the stack.

Scenario object_reads object_bytes meta_reads lists heads writes
1. generateMeta, 20 images 20 1.69 MB 0 1 60 0
2. null width/height/duration, read 10 times 0 0.00 MB 0 0 0 0
3a. InsertMultipleJob, cold cache, no sidecars 20 1.69 MB 21 1 63 21
3b. InsertMultipleJob again, warm cache 0 0.00 MB 0 0 0 0
3c. InsertMultipleJob, cold cache, sidecars present 0 0.00 MB 21 1 0 0
3d. InsertMultipleJob retried after dying halfway 10 1.06 MB 10 0 30 10

Generated by Claude Code

@edalzell
edalzell force-pushed the image-header-attributes branch from b35c7fc to cfcba0d Compare November 19, 2026 05:10
@edalzell
edalzell force-pushed the search-insert-asset-downloads branch from b3defee to dc1cf10 Compare November 19, 2026 05:10
@edalzell
edalzell added this pull request to stack #5 November 19, 2026 23:37
@edalzell

Copy link
Copy Markdown
Owner Author

Folded into statamic#15979.

@edalzell edalzell closed this Nov 20, 2026
@edalzell
edalzell deleted the search-insert-asset-downloads branch November 20, 2026 00:28
@edalzell
edalzell removed this pull request from stack #5 November 20, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant