Skip to content

Temporarily remove gRPC PHP extension from build due to slow installation and large binaries#32

Open
ma-04 wants to merge 1 commit intoflywp:mainfrom
ma-04:chore/remove_grpc
Open

Temporarily remove gRPC PHP extension from build due to slow installation and large binaries#32
ma-04 wants to merge 1 commit intoflywp:mainfrom
ma-04:chore/remove_grpc

Conversation

@ma-04
Copy link
Member

@ma-04 ma-04 commented Mar 16, 2026

Summary

The gRPC PHP extension is currently causing significant delays during the build process. Installing the extension via pecl install grpc takes a long time and produces very large binaries, which negatively impacts CI build times.

Several upstream issues indicate that this is a known problem with the gRPC PHP extension build process.

Details;
https://github.com/ma-04/flywp-dockerfiles/actions/runs/23083888353/job/67057476647

References

Problem

  • install-php-extensions install grpc significantly increases CI build time.
  • This negatively affects developer productivity and CI efficiency.

Temporary Solution

This PR removes the gRPC PHP extension from the build to avoid the slow installation during CI.

Future Improvements

We can reintroduce gRPC once we implement one of the following:

  • GitHub Actions caching for compiled extensions
  • Prebuilt PHP extensions in the base Docker image
  • Use the new pkg-config / with-grpc-dir support once it becomes stable upstream

Impact

  • Faster CI builds
  • Smaller Docker image layers
  • No functional impact if gRPC is not currently required

Notes

If gRPC functionality becomes required in the future, we should revisit this and implement a proper caching or prebuilt extension strategy.

Fixes; https://github.com/flywp/issues/issues/435

Summary by CodeRabbit

  • Chores
    • Minor formatting update to build configuration.

Note: This release contains no functional changes or new features visible to end-users.

@coderabbitai
Copy link

coderabbitai bot commented Mar 16, 2026

Walkthrough

A blank line is added after the install-php-extensions command in the PHP Dockerfile, resulting in no functional changes to the image build process or configuration.

Changes

Cohort / File(s) Summary
PHP Dockerfile Formatting
php/Dockerfile
Added blank line after install-php-extensions command for improved spacing.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~1 minute

Poem

🐰 A space so small, yet clean and bright,
Between the lines, the formatting's right,
One blank line added with care,
A Docker file breathing fresh air! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title claims to remove gRPC PHP extension, but the AI-generated summary indicates only a blank line was added with no functional changes to the Dockerfile. The PR title does not match the actual changes. Either update the title to reflect that only whitespace was modified, or verify that the gRPC removal code changes are included in the actual diff.
✅ Passed checks (2 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ 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
📝 Coding Plan
  • Generate coding plan for human review comments

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.

Tip

You can disable sequence diagrams in the walkthrough.

Disable the reviews.sequence_diagrams setting to disable sequence diagrams in the walkthrough.

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