Repository navigation
test(storage): send a full first chunk in the resume ownership test - #14026
Conversation
S3-backed storage, as on Cloud, rejects a non-final multipart part under 5MB, so the 12-byte first chunk failed there with 400 before the ownership checks ran.
🟢 Tier S · Ready to merge
Updates the resume-ownership E2E test to upload a full 5 MiB first chunk instead of a short string. This meets S3's minimum non-final multipart part size while preserving the existing ownership and permission assertions.
📂 Walkthrough · 1
Reviewed |
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Main moved by 20 commits, which left the PR conflicting, so GitHub ran no CI on f4351e9. The commits bring: - the email-password session duration parameter (#14004); - resolved-address reuse for outbound requests (#14028); - VCS and build commands through Utopia\Command (#14022); - the full first chunk in the resume ownership test (#14026). That is the same change as the branch's e24bef4, so it merged cleanly. The one conflict was the import block of src/Appwrite/Deployment/Deployments.php. The branch had added ClientExceptionInterface and main had added Utopia\Command, so both stay, in alphabetical order. Main changed neither the root composer.json nor composer.lock, and none of its changes touch the database 8 API. Co-Authored-By: Claude Opus 5.5 <[email protected]>
testCreateFileResumeRequiresOwnership(from #14014) uploads a 12-byte first chunk of a 5MB+1 file. Local storage accepts that, but S3-backed storage rejects any non-final multipart part under 5MB, so on Cloud the owner's resume fails with400 Your proposed upload is smaller than the minimum allowed object sizebefore the ownership checks run (seen on appwrite-labs/cloud#6185).The first chunk is now a full
$chunkSize(5MB), like the other chunked upload tests. The ranges already derive fromstrlen($firstBody), so nothing else changes.