Skip to content

test(avatars): point the remote image fixture at a backend-served asset - #13617

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/avatars-test-image-fixture
Sep 10, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/avatars-test-image-fixture

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

What does this PR do?

testGetImage in the three Avatars suites and testGetImageFromURL in the GraphQL suite fetch https://appwrite.io/images/open-graph/website.avif, which now returns 404 from appwrite.io, so the suites fail on every run.

cdn.appwrite.io was checked as a replacement: it only serves content-hashed Vite output from the console build (appwrite-console R2 bucket), and the appwrite-labs/assets service 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 is public/images/github.png from 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) and tests/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

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.
@greptile-apps

greptile-apps Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge because it preserves the existing behavioral coverage while replacing a known-broken fixture with an Appwrite-owned asset.

Summary

  • Updates successful image-fetch and dimension-validation cases to use cloud.appwrite.io/images/github.png.
  • Moves the missing-image fixture to the same host.
  • Keeps the REST and GraphQL remote-image fixtures aligned.

Reviews (1) · Last reviewed commit: "test(avatars): point the remote image fi..."

@ChiragAgg5k
ChiragAgg5k merged commit 1a8c586 into main Sep 10, 2026
46 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/avatars-test-image-fixture branch September 10, 2026 17:51
@github-actions

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → fix/avatars-test-image-fixture (after).

Metric Before After Change
🚀 Requests/sec 228.82 229.33 ⚪ +0.2%
⏱️ Latency P50 75.58 ms 76.13 ms ⚪ +0.7%
⏱️ Latency P95 178.26 ms 176.57 ms ⚪ -0.9%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 76.13 176.57 14,307 229.33 -1.69
Account 150.26 308.56 753 12.52 +11.19
TablesDB 74.28 134.72 7,781 127.69 -1.63
Storage 68.02 145.14 3,765 63.45 -5.03
Functions 106.56 216.43 2,008 34.46 -8.4

Top API waits (after)

API request Max wait (ms)
account.name.update 466.63
functions.variables.update 429.13
functions.create 409.36
functions.delete 408.98
account.prefs.update 408.47

@ChiragAgg5k ChiragAgg5k mentioned this pull request Sep 10, 2026
2 of 4 tasks
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.

2 participants