Skip to content

Update docker base#11255

Open
abnegate wants to merge 5 commits into1.8.xfrom
feat-update-base
Open

Update docker base#11255
abnegate wants to merge 5 commits into1.8.xfrom
feat-update-base

Conversation

@abnegate
Copy link
Member

@abnegate abnegate commented Feb 5, 2026

What does this PR do?

(Provide a description of what this PR does and why it's needed.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 5, 2026

📝 Walkthrough

Walkthrough

Updated Dockerfile base stage image from appwrite/base:0.11.5 to appwrite/base:1.0.0. Modified app/controllers/general.php to treat certain headers as single-value (content-length, content-type) and replace those when applying header overrides while preserving prior append behavior for other headers. Updated composer.json to require utopia-php/websocket 1.0.* (was 0.3.*). Removed runtime file-length equality checks for generated PNGs in tests/e2e/Services/Avatars/AvatarsBase.php.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description consists entirely of the repository's contribution template with no actual description of the changes, motivation, or test plan provided by the author. Add a concrete description of the changes made, explain the motivation for each modification, and provide a test plan demonstrating how the changes were verified.
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Update docker base' is partially related to the changeset. While it describes the Dockerfile update from base:0.11.5 to base:1.0.0, the PR includes several other significant changes (header override logic, websocket dependency, test modifications) that are not reflected in the title.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat-update-base

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Security Scan Results for PR

Docker Image Scan Results

🎉 No vulnerabilities found!

Source Code Scan Results

🎉 No vulnerabilities found!

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

✨ Benchmark results

  • Requests per second: 2,455
  • Requests with 200 status code: 441,925
  • P99 latency: 0.063421964

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 2,455 1,240
200 441,925 223,273
P99 0.063421964 0.164765627

abnegate and others added 2 commits February 6, 2026 01:40
- Update utopia-php/migration to 1.5.1 (fixes duplicate header issue)
- Fix content-length header override to replace instead of append
  - Single-value headers (content-length, content-type) must replace existing values
  - Multi-value headers continue to use array semantics

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Temporarily use dev branch (fix-conditional-compression) that only
applies SWOOLE_WEBSOCKET_FLAG_COMPRESS when compression is enabled.

This fixes websocket compatibility issues with Swoole 6.1.6.

See: utopia-php/websocket#28

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@composer.json`:
- Around line 12-17: Update composer.json to avoid using the floating branch
reference for utopia-php/websocket: replace the unpinned
"dev-fix-conditional-compression" repository usage for package
"utopia-php/websocket" with a commit-pinned requirement (e.g., use the dev
branch with #<commit-sha> suffix in the package version) so builds are
reproducible, and add a short tracking comment near that requirement indicating
this is a temporary pin tied to the upstream PR (`#28` /
dev-fix-conditional-compression) so it can be reverted when a stable release or
merged commit is available.

abnegate and others added 2 commits February 6, 2026 02:07
The PNG file size varies depending on ImageMagick version and
compression settings. The meaningful validations (dimensions,
format, content-type) are already being tested.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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