Skip to content

chore: bump appwrite/base to 2.2.10 (Swoole 6.2.5) - #14956

Merged
loks0n merged 5 commits into
mainfrom
chore/swoole-6.2.4
Nov 9, 2026
Merged

loks0n merged 5 commits into
mainfrom
chore/swoole-6.2.4

Conversation

@loks0n

@loks0n loks0n commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Moves the base image, including the xdebug variant, from 2.2.9 to 2.2.10 (appwrite/docker-base#140). 2.2.9 held Swoole at 6.2.3; 2.2.10 moves it to 6.2.5, which ignores a client-supplied Swoole-Upload-File multipart part header (swoole/swoole-src#6309).

The pulled appwrite/base:2.2.10 reports Swoole 6.2.5. Cloud is making the same bump in appwrite-labs/cloud#6965.

🤖 Generated with Claude Code

@luxor-code-review

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

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


A minimal, single-file change that upgrades the appwrite/base image used by all Dockerfile stages to the 2.2.8 tag.

Files Change
Dockerfile Bumps appwrite/base from 2.2.7 to 2.2.8 in both the base and xdebug stages, keeping the sibling tags ABI-aligned and the accompanying comment in sync.

Reviewed commit: dd423a3

@ghost

ghost commented Oct 26, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The image tag bump is consistently applied to both build stages, with no concrete issues found.

Updates the production and Xdebug Docker build stages to use appwrite/base 2.2.8. The development-stage comment is updated to match the new base tag.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 1
File Change
Dockerfile Bumps the base and Xdebug image tags from 2.2.7 to 2.2.8 and updates the related comment.

Reviewed dd423a3 · 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

Copy link
Copy Markdown

Security rules

No new WARNING or ERROR findings from security rules.

6 existing findings tracked in .semgrep/baseline.json
  • php.appwrite.guest-write-without-abuse-limit (3)
  • php.appwrite.secret-compare-timing (1)
  • 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 26, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → chore/swoole-6.2.4 (after).

Metric Before After Change
🚀 Requests/sec 191.99 194.7 ⚪ +1.4%
⏱️ Latency P50 90.27 ms 89.54 ms ⚪ -0.8%
⏱️ Latency P95 210.21 ms 207.99 ms ⚪ -1.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 89.54 207.99 12,483 194.7 -2.22
Account 164.65 318.25 657 10.89 -12.07
TablesDB 85.88 155.5 6,789 108.54 -10.75
Storage 85.38 201.11 3,285 54.08 +7.47
Functions 120.9 241.95 1,752 29.67 +1.57

Top API waits (after)

API request Max wait (ms)
functions.create 495.13
storage.buckets.create 442.23
account.name.update 388.73
account.prefs.update 369.93
functions.delete 351.77

@loks0n loks0n changed the title chore: bump appwrite/base to 2.2.8 (Swoole 6.2.4) chore: bump appwrite/base to 2.2.10 (Swoole 6.2.5) Nov 9, 2026
@appwrite

appwrite Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

Updates the production and Xdebug base image references from appwrite/base 2.2.9 to 2.2.10, which includes Swoole 6.2.5. The multipart regression tests check that spoofed paths are excluded while genuine sibling uploads remain recognized, and that the referenced server file survives request cleanup.

Latest changes: The newest commit casts Swoole's tmpfiles property to an array in three test assertions to satisfy PHPStan.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 2
File Change
Dockerfile Bumps the production and Xdebug base images to appwrite/base 2.2.10.
packages/http/tests/SwooleRequestTest.php Updates spoofed-upload assertions for Swoole-version differences and casts tmpfiles to an array in affected assertions.

Reviewed the commits since 7a89d06 · Details · Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot 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

Swoole 6.2.5 ignores a client Swoole-Upload-File part header itself, so it
no longer reports the named path as the upload. Assert what must hold on
every version: the path never reaches the app as an upload and survives
the request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@loks0n

loks0n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Unit failed on two SwooleRequestTest spoof tests: the first asserted Swoole reports the spoofed path as the upload, which 6.2.5 no longer does. Both now assert the outcome on any version: the path never reaches the app as an upload and survives the request.

Ran locally against the http package:

  • old tests: pass on 6.2.3 (base 2.2.9), fail on 6.2.5 (base 2.2.10), as in CI
  • new tests: pass on both
  • new tests with the guard call removed: fail on 6.2.3, pass on 6.2.5

@loks0n
loks0n merged commit ff7cc5a into main Nov 9, 2026
69 checks passed
@loks0n
loks0n deleted the chore/swoole-6.2.4 branch November 9, 2026 16:58
huangyingting pushed a commit to repomesh/appwrite that referenced this pull request Nov 12, 2026
Backport of appwrite#15249 and appwrite#14956. 2.7.1 ships appwrite/base 2.2.7, which Trivy flags for perl, libexpat, curl, docker-cli, docker-cli-compose, rsync and golang.org/x/net (20 HIGH/CRITICAL). 2.2.9 still carries the perl, rsync and docker-cli findings; 2.2.10 scans clean.
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