Repository navigation
test(avatars): point the remote image fixture at a backend-served asset - #13617
Merged
Merged
Conversation
appwrite.io no longer serves /images/open-graph/website.avif (404), and cdn.appwrite.io only hosts content-hashed console assets, so testGetImage failed in every Avatars suite and in the GraphQL avatars test. Use https://cloud.appwrite.io/images/github.png instead: it is public/images/github.png from this repository, served by the Appwrite backend itself, so the fixture is owned here and cannot disappear with a website redesign.
Contributor
|
TorstenDittmann
approved these changes
Sep 10, 2026
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
testGetImagein the three Avatars suites andtestGetImageFromURLin the GraphQL suite fetchhttps://appwrite.io/images/open-graph/website.avif, which now returns 404 from appwrite.io, so the suites fail on every run.cdn.appwrite.iowas checked as a replacement: it only serves content-hashed Vite output from the console build (appwrite-consoleR2 bucket), and theappwrite-labs/assetsservice only exposes fonts, so neither has a stable un-hashed image path.The fixture now points at
https://cloud.appwrite.io/images/github.png. That ispublic/images/github.pngfrom this repository, served by the Appwrite backend itself on Cloud, so the test depends on an asset this repo owns rather than on the marketing site. The negative fixtures (unknown.png,robots.txt, invalid scheme) keep the same behavior and were moved to the same host for consistency.Test Plan
Local fresh install from
main:tests/e2e/Services/Avatars(46 tests) andtests/e2e/Services/GraphQL/AvatarsTest.php(13 tests) pass with this change and both failed before it.Related PRs and Issues
Surfaced while preparing the 2.1.0 release (#13615).
Checklist