Skip to content
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

Enable PHP 8.4 compat #220

Merged
merged 4 commits into from
Nov 3, 2024
Merged

Enable PHP 8.4 compat #220

merged 4 commits into from
Nov 3, 2024

Conversation

koriym
Copy link
Member

@koriym koriym commented Nov 3, 2024

Summary by CodeRabbit

  • New Features

    • Updated PHP version to 8.3 in various GitHub Actions workflows, enhancing compatibility and features for coding standards, static analysis, and continuous integration processes.
  • Chores

    • Upgraded action versions in the continuous integration workflow to improve performance and reliability.

Include PHP 8.3 in old_stable and set current_stable to 8.4. This ensures that the CI pipeline tests against a wider range of PHP versions, providing better coverage and compatibility checks.
Upgraded the PHP version from 8.2 to 8.3 in static-analysis and coding-standards workflow files. This ensures compatibility with the latest PHP features and security updates.
Copy link
Contributor

coderabbitai bot commented Nov 3, 2024

Walkthrough

The pull request includes updates to several GitHub Actions workflow configurations. The php_version parameter has been changed from 8.2 to 8.3 in multiple workflows, including coding standards and static analysis. Additionally, the continuous integration workflow has been modified to include PHP version 8.3 in the old_stable parameter and to update the current_stable parameter from 8.3 to 8.4. Furthermore, action versions for checkout and upload-artifact have been upgraded in the CI workflow for the Ray.Aop PECL extension.

Changes

File Path Change Summary
.github/workflows/coding-standards.yml Updated php_version from 8.2 to 8.3 in job cs.
.github/workflows/continuous-integration.yml Updated old_stable to include 8.3 and changed current_stable from 8.3 to 8.4.
.github/workflows/continuous-integration-pecl.yml Updated action versions: checkout from v2 to v3 and upload-artifact from v2 to v4.
.github/workflows/static-analysis.yml Updated php_version from 8.2 to 8.3 in job sa.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant CI Workflow
    participant GitHub Actions
    participant PHP Environment

    User->>CI Workflow: Trigger CI
    CI Workflow->>GitHub Actions: Start workflow
    GitHub Actions->>PHP Environment: Set up PHP 8.3
    PHP Environment-->>GitHub Actions: PHP ready
    GitHub Actions->>CI Workflow: Run tests
    CI Workflow-->>User: CI results
Loading

🐰 "In the land of code, we hop and play,
With PHP 8.3, we jump all day.
Actions updated, workflows refined,
In our burrow, new features aligned.
Hooray for the changes, let’s celebrate,
A brighter future, we can’t wait!" 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 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 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.

This commit updates the GitHub Actions checkout action from version 2 to version 3. This change ensures compatibility with the latest features and security improvements provided in v3. Make sure to review any breaking changes in the new version's documentation.
Updated the GitHub Actions workflow to use version 4 of the upload-artifact action. This ensures compatibility with the latest features and improvements provided by the action.
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: 2

🧹 Outside diff range and nitpick comments (1)
.github/workflows/continuous-integration-pecl.yml (1)

Line range hint 13-13: Add PHP 8.4 to the test matrix for compatibility testing.

The PR objective is to enable PHP 8.4 compatibility, but the workflow doesn't test against PHP 8.4. This could lead to undiscovered compatibility issues.

Apply this diff to include PHP 8.4 testing:

    strategy:
      matrix:
-       php-version: ['8.1', '8.2', '8.3']
+       php-version: ['8.1', '8.2', '8.3', '8.4']

Note: Since PHP 8.4 is still in development, consider adding:

        experimental: [true]
        include:
          - php-version: '8.4'
            experimental: true

This marks PHP 8.4 as experimental and prevents CI failures from blocking merges.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between e7df832 and ebd58af.

📒 Files selected for processing (4)
  • .github/workflows/coding-standards.yml (1 hunks)
  • .github/workflows/continuous-integration-pecl.yml (2 hunks)
  • .github/workflows/continuous-integration.yml (1 hunks)
  • .github/workflows/static-analysis.yml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • .github/workflows/coding-standards.yml
🔇 Additional comments (2)
.github/workflows/continuous-integration-pecl.yml (2)

18-18: LGTM: Good practice to update checkout action.

Updating to actions/checkout@v3 is a good practice as it includes security updates and performance improvements.


105-105: LGTM: Good practice to update upload-artifact action.

Updating to actions/upload-artifact@v4 is beneficial as it includes improved performance and reliability features.

@koriym koriym merged commit f92d9a9 into 2.x Nov 3, 2024
52 checks passed
@koriym koriym deleted the php8.4 branch November 3, 2024 02:17
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