Skip to content

chore: merge 2.4.x into main after 2.4.0 - #14254

Merged
ChiragAgg5k merged 2 commits into
mainfrom
2.4.x
Oct 8, 2026
Merged

ChiragAgg5k merged 2 commits into
mainfrom
2.4.x

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Release test record for 2.4.0

Tested tree: release/2.4.0 at 2f2d1881d9e27c270579eba3633b9c7b235434b4 (the prep commit on d335fbab, which passed all 71 CI checks on main). Merging #14252 into 2.4.x produces a merge commit with the same tree: eac5bdef1b2c45b61cd4ca706dee1186b25b8031.

bin/release check 2.4.0 --ref=<sha>: metadata is consistent.

Upgrade from 2.3.0

  • Installed appwrite/appwrite:2.3.0 with the published installer (headless, PostgreSQL, isolated compose project).
  • Seeded through the public API:
    • users: no name, a 128-character name, phone-only, nested prefs with empty values, labels
    • a TOTP authenticator
    • a team with a custom role and a membership
    • a TablesDB database with two tables:
      • columns: string (including a 100,000-character column), integer, boolean, datetime, an enum with a comma in a value, a string array, float, and a two-way many-to-one relationship with cascade
      • an index
      • 54 rows with row- and team-level permissions, empty strings and empty arrays
    • an encrypted, gzip-compressed bucket with a file
    • a function with a secret variable
    • a webhook with basic auth
    • a messaging topic
    • an API key holding assistant.read
  • Upgraded with appwrite/appwrite:2.4.0 (--entrypoint=upgrade, built locally from the tested tree with --target production). .env gained _APP_ALLOWED_INTERNAL_ADDRESSES, _APP_DNS_EXTERNAL and _APP_TRUSTED_PROXIES and lost _APP_ASSISTANT_OPENAI_API_KEY. The console is appwrite/new:1.2.55-self-hosted.
  • migrate completed. A second run also completed, with only "already exists" warnings, so it is safe to run again.
    • authenticators gained identifier, name and accessedAt; users gained photoId and photoSize; challenges gained passkey.
    • No key still holds assistant.read.
  • Every seeded read came back identical before and after the upgrade (JSON snapshot diff).
  • Writes after the upgrade passed:
    • a seeded user signs in with the old password, reads the account, MFA factors and prefs, and uploads and deletes a profile photo
    • a user is created and renamed
    • rows are created, updated and queried; a column is created on an existing table; a row-permission read works; a relationship cascade delete works
    • an encrypted file is downloaded and a new file uploaded
    • a function is updated
    • the stripped API key still authorizes
    • a topic subscription is created

Fresh install

  • docker compose down -v, then up -d --force-recreate --build --wait. All containers are healthy with no restarts or fatal errors, and /v1/health/version returns 2.4.0.
  • Unit: 1419 tests pass. There is 1 PHPUnit notice: a mock without expectations in DatabasesTest, which affects test quality only.
  • tests/e2e/General: 32 pass, 10 skipped.
  • Service e2e, run with CI's exclusions:
    • Account, Users, Teams, Avatars, Console, Organization, Projects, Project, ProjectWebhooks, Webhooks, Tokens, TablesDB, Storage, FunctionsSchedule, Messaging, Notifications, Presences, Migrations, GraphQL, Health, Locale and Advisor pass.
    • Databases (1248, embeddings included), Functions (87), Sites (64), Realtime (76), Mqtt (26), Proxy (38) and Usage (11) pass on a fresh stack per suite with CI's environment:
      • router protection, DocumentsDB, VectorsDB and embeddings enabled
      • CI's per-suite process counts
    • VCSGitHub and VCSGitea were not run locally because they need provider secrets. CI covers them.
  • Finding, not a regression: on a 12-core host the default _APP_WORKER_PER_CORE=6 gives the API container 72 Swoole workers. Each keeps a Postgres connection open, which with the worker and scheduler exhausts Postgres's default max_connections=100 ("too many clients already") under load. The pool configuration is unchanged since 2.3.0. The suites above ran with _APP_WORKER_PER_CORE=2.

Related: #14251

@luxor-code-review

luxor-code-review Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


This release-prep PR retitles the current release as 2.4.0 and wires the matching migration and documentation updates. All version references were checked for mutual consistency across constants, compose defaults, docs, and the migration map.

Files Change
app/init/constants.php, docker-compose.yml, README.md, README-CN.md Version bumped to 2.4.0 with the console image pin updated in compose and both READMEs.
src/Appwrite/Migration/Migration.php, Version/V25.php Migration map extended so 2.4.0 (and retitled 2.3.1) resolve to the V25 migration.
app/config/variables.php Environment-variable introduction versions updated from 2.3.1 to 2.4.0.

Reviewed commit: eac5bde

@ChiragAgg5k ChiragAgg5k self-assigned this Oct 8, 2026
@ghost

ghost commented Oct 8, 2026

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

No actionable defects were found in the release metadata and version updates.

This release merge updates Appwrite's stable version to 2.4.0, refreshes install examples and the pinned console image, and records the release's environment-variable and migration metadata. The migration version map points 2.4.0 to V25, whose existing user-schema migration includes the custom-photo attributes.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 7
File Change
README.md Updates the self-hosted install image examples to 2.4.0.
README-CN.md Updates the Chinese self-hosted install image examples to 2.4.0.
app/config/variables.php Marks the newly documented environment variables as introduced in 2.4.0.
app/init/constants.php Sets the stable server version to 2.4.0.
docker-compose.yml Updates the pinned self-hosted console image.
src/Appwrite/Migration/Migration.php Maps 2.4.0 to migration V25.
src/Appwrite/Migration/Version/V25.php Updates the release version in the custom-photo migration comment.

Reviewed eac5bde · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

Security rules

No new WARNING or ERROR findings from security rules.

32 existing findings tracked in .semgrep/baseline.json
  • php.appwrite.guest-write-without-abuse-limit (17)
  • php.appwrite.permissive-write-permission (8)
  • php.appwrite.secret-compare-timing (5)
  • php.appwrite.weak-secret-env-default (2)

Posted by Checks / Rules. Re-runs update this comment in place. Rule details and baseline: .semgrep/README.md.

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → 2.4.x (after).

Metric Before After Change
🚀 Requests/sec 203.44 190.75 🔴 -6.2%
⏱️ Latency P50 84.06 ms 91.1 ms 🔴 +8.4%
⏱️ Latency P95 204.77 ms 209.09 ms ⚪ +2.1%
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 91.1 209.09 12,198 190.75 +4.31
Account 169.8 332.06 642 10.63 +17.79
TablesDB 88.62 167 6,634 106.72 +9.26
Storage 81.39 180.22 3,210 53 +11.93
Functions 127 254.06 1,712 28.86 +5.15

Top API waits (after)

API request Max wait (ms)
account.name.update 480
account.prefs.update 469.81
functions.create 429.59
functions.variables.update 399.88
functions.variables.create 378.51

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