Skip to content

chore: upgrade Utopia Client to ^0.4.4 - #13575

Merged
ChiragAgg5k merged 7 commits into
mainfrom
chore/client-04-compatibility
Sep 10, 2026
Merged

ChiragAgg5k merged 7 commits into
mainfrom
chore/client-04-compatibility

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Summary

Upgrade Utopia Client to ^0.4.4 and Validators to ^1.0, using published dependencies throughout. The lockfile now resolves and contains no version aliases; every installed package requiring Validators requires ^1.0 exclusively.

Merged current main and resolved the Composer conflict while preserving main's Auth/OpenAPI and other updates. The PR updates composer.json, composer.lock, and the E2E project fixture's webhook subscriptions. HTTP's manifest requirement remains ^2.0@RC as requested.

Locked dependency updates

Package Version
Client 0.4.4
Validators 1.0.1
Database 7.3.7
Domains 4.2.1
DNS 3.0.7
Emails 0.8.3
Audit 4.0.3
HTTP 2.0.0-rc31
Queue 2.2.1
Storage 4.1.0
Servers 0.4.11
CDN 0.0.11
Messaging 2.1.3
Usage 0.16.4
Executor PHP SDK 1.0.1

Client 0.4.4 includes the Swoole TLS hostname-verification fix. Validators 1.0 declares Assoc schemas as objects. The SDK Jobs/artifact/callback APIs used by CE are unchanged; its removed pool APIs are not used here. Usage and Queue also include their released behavior changes, so application integration CI remains important.

All prerequisite library changes are merged and released: monorepo #250/#251, Database #963 and Emails #25. This PR is the remaining CE prerequisite for https://github.com/appwrite-labs/cloud/pull/5734.

Verification

  • Targeted composer update with --with-all-dependencies --minimal-changes --no-install --ignore-platform-reqs: 15 updates, no package additions/removals, successful resolution.
  • composer validate --no-check-publish: passed, with existing exact-version warnings for Platform/WebSocket.
  • composer install --ignore-platform-reqs --no-plugins --no-scripts --prefer-dist --no-interaction --no-progress: passed.
  • Actual Dockerfile Composer stage: docker build --target composer --build-arg TESTING=true -t ce-13575-composer-check .: passed. This exercises the lock installation that previously broke CI image builds.
  • Full CE unit suite: isolated appwrite-dev container, PHP 8.5.10 / Swoole 6.2.2, network disabled, php -d memory_limit=1G vendor/bin/phpunit --testsuite unit: 1,193 tests / 6,010 assertions passed; 1 deprecation and 1 PHPUnit notice. A first attempt lacked _APP_OPENSSL_KEY_V1 and failed one auth test; the passing rerun supplied a disposable local-only test key.
  • composer check-platform-reqs --lock in the same runtime image: passed. Composer was mounted into the container because the image does not bundle it.
  • PHPStan for src/Appwrite/Deployment, src/Appwrite/Usage, src/Appwrite/SDK/Specification, and app/init/resources.php: passed with project configuration and 1 GB memory limit.
  • composer audit: no security advisories; unchanged abandoned-package notices for appwrite/php-clamav and utopia-php/fetch.
  • git diff --check: passed.

CI follow-up: DocumentsDB transaction webhook fixture

CI on f812e93efc passed dependency checks, full image build, unit tests and most E2E jobs. Databases jobs repeatedly failed testCommitEventPayloadCarriesSurfaceIds for DocumentsDB: the project fixture subscribed only to databases.*, while DocumentsDB emits documentsdb.*. The poll returned no request. Added documentsdb.* and vectorsdb.* to the fixture subscriptions; no API changes, weakened assertions or timeout increases.

  • Reproduced the same null-payload failure locally before changing the subscriptions, using the actual API/worker, PostgreSQL platform DB, MongoDB DocumentsDB and request catcher. An earlier setup attempt had DocumentsDB disabled and stopped at a 403; enabling the same feature flags as CI reached the matching failure.
  • php vendor/bin/phpunit tests/e2e/Services/Databases/Transactions tests/e2e/Services/TablesDB/Transactions --filter testCommitEventPayloadCarriesSurfaceIds: 9 tests / 252 assertions passed in dedicated mode, and 9 / 252 passed in shared mode after the fixture fix. This covers legacy, DocumentsDB and TablesDB payload delivery through the actual webhook worker.
  • docker build --target development --build-arg TESTING=true -t ce-13575-e2e:local .: passed; the local E2E run used that image and isolated Compose services. Fixture containers were removed afterwards.
  • Targeted Pint on tests/e2e/Scopes/ProjectCustom.php and git diff --check: passed.

Two other failed jobs on the earlier run (MariaDB/shared Project and PostgreSQL/shared Users) stopped before running tests because MongoDB was unhealthy with Address already in use during startup. This fixture-subscription fix does not claim to fix that separate startup failure; the new CI run must verify those jobs too.

Not claimed as passing: the full local E2E matrix, a local production-target build, and full-project static analysis were not run. A host composer lint attempt timed out at 180 seconds; it is not reported as passing. New CI results are pending on the pushed fixture-fix commit.

No production deployment or live registrar/payment operations. This dependency-only backend change has no meaningful visual screenshots.

@ChiragAgg5k

Copy link
Copy Markdown
Member Author

CDN/Messaging prerequisite PR #238 (utopia-php/monorepo) is merged and released: utopia-php/cdn 0.0.11 (verified through the configured VCS repository) and utopia-php/messaging 2.1.3 (verified on Packagist). The CE CDN requirement must move from ^0.0.8 to ^0.0.11 when refreshing the lock; ^0.0.8 does not admit 0.0.11. Remaining SDK/Usage releases and the Storage/Validators constraint blocker still apply.

@ChiragAgg5k
ChiragAgg5k marked this pull request as ready for review September 10, 2026 11:14
@greptile-apps

greptile-apps Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The dependency upgrade appears coherent, but the explicit repository testing requirement must be satisfied before merging by replacing the unverified event-list mirroring with observable webhook coverage.

Fix All in Claude CodeFindings

  1. P2 Fixture Mirrors Event Configuration ▶
Fix with agent prompt
### Issue 1
tests/e2e/Scopes/ProjectCustom.php:228-229
Adding `documentsdb.*` and `vectorsdb.*` copies accepted event namespaces into a shared fixture without testing their behavior. The webhook setup only checks creation status and a non-empty response, while the consuming webhook tests do not emit or verify either new event family. This violates the repository directive to test observable behavior instead of mirroring source configuration. The repository requirement must be satisfied before merging by adding behavioral webhook coverage rather than mechanically extending the fixture.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

  • Updates Composer constraints and refreshes the lockfile across Client, Validators, Database, Domains, Queue, Usage, and related packages.
  • Advances the Open Runtimes PHP SDK to 1.0.1.
  • Adds DocumentsDB and VectorsDB namespaces to the shared webhook fixture, but without corresponding behavioral coverage.

Reviews (2) · Last reviewed commit: "test: subscribe project fixtures to Docu..."

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → chore/client-04-compatibility (after).

Metric Before After Change
🚀 Requests/sec 202.81 198.42 ⚪ -2.2%
⏱️ Latency P50 85.99 ms 87.56 ms ⚪ +1.8%
⏱️ Latency P95 201.28 ms 207.66 ms ⚪ +3.2%
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 87.56 207.66 12,540 198.42 +6.38
Account 168.99 314.98 660 11.12 -3.3
TablesDB 84.75 155.79 6,820 110.9 +3.39
Storage 80.5 176.62 3,300 55.21 +1.78
Functions 129.98 261.88 1,760 30.12 +14.83

Top API waits (after)

API request Max wait (ms)
functions.variables.update 603.02
account.name.update 507.65
functions.create 459.98
functions.delete 432.19
storage.buckets.create 428.79

Comment thread tests/e2e/Scopes/ProjectCustom.php Resolved
@ChiragAgg5k
ChiragAgg5k merged commit 44b3b7c into main Sep 10, 2026
193 of 197 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the chore/client-04-compatibility branch September 10, 2026 11:38
@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