Skip to content

chore(ver): Update OpenLiteSpeed to v1.8.3, feat: Add PHP 8.3 Support (Beta) #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 7, 2025

Conversation

ma-04
Copy link
Member

@ma-04 ma-04 commented Mar 20, 2025

This pull request makes several updates to the project:

Update OpenLiteSpeed (OLS) Version:

  • Upgraded OLS from version 1.8.1 to the latest version, 1.8.3.

Add PHP 8.3 Support (Beta):

  • Introduced PHP 8.3 to the matrix strategy in the GitHub workflows for both deployment and testing.

### Remove PHP 7.4 Support:

- Removed PHP 7.4 from the matrix strategy due to missing ARM packages. Specifically, packages like lsphp74-mysql, lsphp74-opcache, lsphp74-curl, lsphp74-intl, lsphp74-imap, and lsphp74-ldap are not available in the arm64 package list, although they are present in the amd64 package list.
Binaries are also available but that would require manual installation.

Summary by CodeRabbit

  • New Features

    • Added support for PHP 8.3 in build and test pipelines.
  • Chores

    • Optimized the QEMU setup for enhanced Docker build compatibility.
    • Upgraded OpenLiteSpeed from version 1.8.1 to 1.8.3 for improved stability and performance.

@alaminfirdows
Copy link
Member

@ma-04 we must have to keep the php-7.4 version. Please include the necessary steps to install PHP packages for ARM.

Copy link

coderabbitai bot commented Mar 24, 2025

Walkthrough

This pull request updates the GitHub Actions workflows and the OpenLiteSpeed Dockerfile. Both the deployment and test workflows have been modified to include PHP version 8.3 with a corresponding lsphp configuration, and the QEMU setup has been explicitly configured with a specific image version. Additionally, the OpenLiteSpeed Dockerfile is updated to use version 1.8.3 instead of 1.8.1.

Changes

File(s) Change Summary
.github/workflows/deploy.yml
.github/workflows/test.yml
Updated the PHP version matrix to include "8.3" with lsphp83 and added the QEMU configuration using tonistiigi/binfmt:qemu-v7.0.0-28 in the respective build jobs.
openlitespeed/Dockerfile Updated the OpenLiteSpeed version by changing ARG OLS_VERSION=1.8.1 to ARG OLS_VERSION=1.8.3.

Sequence Diagram(s)

sequenceDiagram
    participant WA as GitHub Actions Workflow
    participant QM as QEMU Setup Step
    participant BM as Build Matrix Job
    participant DF as Dockerfile Build

    WA->>QM: Setup QEMU with tonistiigi/binfmt:qemu-v7.0.0-28
    WA->>BM: Initiate build with PHP versions [7.4, 8.1, 8.2, 8.3]
    BM->>DF: Build Docker image using OLS_VERSION=1.8.3
Loading

Possibly related PRs

Suggested reviewers

  • alaminfirdows

Poem

I'm a rabbit with code so fine,
Hopping through changes, line by line.
PHP 8.3 now joins the crew,
With QEMU set, our builds renew.
In Docker dreams, OLS leaps high,
Cheers to progress in the sky!
🐰✨ Happy builds, oh my!


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@ma-04 ma-04 changed the title Update OpenLiteSpeed to v1.8.3, Add PHP 8.3 Support (Beta), Remove PHP 7.4 Due to Missing ARM Packages Update OpenLiteSpeed to v1.8.3, Add PHP 8.3 Support (Beta) Mar 24, 2025
Copy link

@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: 0

🧹 Nitpick comments (2)
.github/workflows/test.yml (1)

17-17: Retaining PHP 7.4 in the Build Matrix
Although the PR title mentions the removal of PHP 7.4 support due to missing ARM packages, the build matrices for both PHP and OpenLiteSpeed jobs still include PHP 7.4. Please clarify whether PHP 7.4 should be retained or removed. If it is to be kept, consider documenting the necessary steps to handle ARM-specific package issues for PHP 7.4.

Also applies to: 55-56

.github/workflows/deploy.yml (1)

20-21: PHP 7.4 Presence in Deployment Matrix
The deployment matrix for the build-php job (lines 20–21) still includes PHP 7.4, even though the PR title suggests removing it. Please confirm whether PHP 7.4 support should continue. If retained, consider including documentation or automated steps addressing the lack of ARM packages for PHP 7.4.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 507b63a and 6dd9dcc.

📒 Files selected for processing (3)
  • .github/workflows/deploy.yml (1 hunks)
  • .github/workflows/test.yml (2 hunks)
  • openlitespeed/Dockerfile (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: build-php (8.3)
  • GitHub Check: build-php (8.1)
  • GitHub Check: build-php (8.2)
  • GitHub Check: build-php (7.4)
  • GitHub Check: build-php (8.0)
🔇 Additional comments (5)
openlitespeed/Dockerfile (1)

7-7: OpenLiteSpeed Version Update
The OLS_VERSION argument is updated to 1.8.3, which aligns with the PR’s objective of upgrading OpenLiteSpeed. Please verify that the download URL and installation commands (lines 26–29) are fully compatible with version 1.8.3.

.github/workflows/test.yml (2)

24-25: Explicit QEMU Setup in Build-php Job
The addition of the with block specifying image: tonistiigi/binfmt:qemu-v7.0.0-28 ensures that the QEMU emulator is consistently configured across builds. This explicit configuration can help avoid issues on non-amd64 platforms.


61-62: Adding PHP 8.3 to the Build-openlitespeed Matrix
PHP 8.3 has been added to the build matrix (lines 61–62) for the OpenLiteSpeed job, which supports the new PHP beta release. Please ensure thorough testing for any beta-specific incompatibilities.

.github/workflows/deploy.yml (2)

74-83: Update of Build-openlitespeed Matrix to Include PHP 8.3
The build matrix for the OpenLiteSpeed deployment now includes the PHP 8.3 entry (lines 74–83) with lsphp: "lsphp83". This change is consistent with the testing workflow and supports the new PHP version.


90-91: Enhanced QEMU Configuration in Deployment Workflow
The QEMU setup step now explicitly specifies the image tonistiigi/binfmt:qemu-v7.0.0-28 (lines 90–91), which should help ensure consistent behavior across different target architectures.

@ma-04
Copy link
Member Author

ma-04 commented Mar 24, 2025

LiteSpeed support has rebuild their arm packages for PHP 7.4 and currently includes all the necessary packages required by the dockerfiles.

All builds are succeding without issue.

But if we move from ubuntu:22.04 to ubuntu:24.04, then we might have to drop support for PHP 7.4/8.0

@ma-04 ma-04 changed the title Update OpenLiteSpeed to v1.8.3, Add PHP 8.3 Support (Beta) chore(ver): Update OpenLiteSpeed to v1.8.3, feat: Add PHP 8.3 Support (Beta) Mar 25, 2025
Copy link
Member

@alaminfirdows alaminfirdows left a comment

Choose a reason for hiding this comment

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

LGTM

@alaminfirdows alaminfirdows merged commit e25aca6 into flywp:main Apr 7, 2025
10 checks passed
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