Skip to content

[CI] Update matrix for 2.1 branch + fix test installer#18088

Merged
NoResponseMate merged 4 commits intoSylius:2.1from
GSadee:SYL-4997-2.1-update-ci-matrix
May 29, 2025
Merged

[CI] Update matrix for 2.1 branch + fix test installer#18088
NoResponseMate merged 4 commits intoSylius:2.1from
GSadee:SYL-4997-2.1-update-ci-matrix

Conversation

@GSadee
Copy link
Copy Markdown
Member

@GSadee GSadee commented May 29, 2025

Q A
Branch? 2.1
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

Summary by CodeRabbit

  • Chores
    • Updated GitHub workflow configurations to use newer versions of MariaDB and PostgreSQL for testing.
    • Expanded Symfony version constraints in test matrices.
    • Adjusted state machine adapter and simplified database version coverage in test scenarios.
    • Improved log artifact naming and fixed permissions on Symfony logs directory in CI workflows.

@GSadee GSadee added Maintenance CI configurations, READMEs, releases, etc. CI labels May 29, 2025
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented May 29, 2025

Walkthrough

The changes update GitHub Actions workflow configurations. The CI workflow for MySQL end-to-end tests adds a step to fix Symfony log directory permissions and corrects a log artifact name. The matrix configuration updates database and Symfony versions, adjusts tested state machine adapters, and simplifies some test scenarios.

Changes

File(s) Change Summary
.github/workflows/ci_e2e-mysql.yaml Added a step to set Symfony logs directory permissions and fixed log artifact naming in the workflow.
.github/workflows/matrix.json Updated MariaDB and PostgreSQL versions, expanded Symfony version constraints, changed an adapter, and simplified test matrices.

Poem

In the warren of workflows, we hop and we fix,
Logs now have permission, no more permission tricks!
Databases updated, versions fresh and new,
Symfony’s horizons broadened too.
With every matrix tweak and artifact rename,
This bunny ensures CI runs without blame!
🐇✨


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
🪧 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate sequence diagram to generate a sequence diagram of the changes in 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.

@github-actions
Copy link
Copy Markdown

github-actions bot commented May 29, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands:

  • 🚀 /bns:deploy to redeploy the environment

@GSadee GSadee force-pushed the SYL-4997-2.1-update-ci-matrix branch from c8e8310 to fb99cc3 Compare May 29, 2025 09:53
@GSadee GSadee force-pushed the SYL-4997-2.1-update-ci-matrix branch from cbe9cb5 to ea720bd Compare May 29, 2025 11:01
@GSadee GSadee force-pushed the SYL-4997-2.1-update-ci-matrix branch from f4c19a3 to c55c0e3 Compare May 29, 2025 11:43
@GSadee GSadee marked this pull request as ready for review May 29, 2025 11:43
@GSadee GSadee requested review from a team as code owners May 29, 2025 11:43
Copy link
Copy Markdown

@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/ci_e2e-mysql.yaml (2)

107-112: Refine Symfony logs directory permission setup
The new step ensures log folder writeability, but parsing console output is brittle. Consider using the --raw flag to retrieve the parameter cleanly and fail fast on lookup errors:

- LOGS_DIR=$(bin/console debug:container --parameter=kernel.logs_dir | grep 'kernel.logs_dir' | awk '{print $2}')
+ LOGS_DIR=$(bin/console debug:container --parameter=kernel.logs_dir --raw)
+ if [ -z "$LOGS_DIR" ]; then
+   echo "Unable to determine kernel.logs_dir"
+   exit 1
+ fi
🧰 Tools
🪛 YAMLlint (1.37.1)

[warning] 107-107: too many spaces after hyphen

(hyphens)


107-107: Fix YAML list indentation
YAMLlint warns about too many spaces after hyphens. Normalize to a single space for consistency:

-            -   name: Fix permissions for Symfony logs directory
+            - name: Fix permissions for Symfony logs directory
🧰 Tools
🪛 YAMLlint (1.37.1)

[warning] 107-107: too many spaces after hyphen

(hyphens)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 5dd7dac and c55c0e3.

📒 Files selected for processing (2)
  • .github/workflows/ci_e2e-mysql.yaml (2 hunks)
  • .github/workflows/matrix.json (4 hunks)
🧰 Additional context used
🪛 YAMLlint (1.37.1)
.github/workflows/ci_e2e-mysql.yaml

[warning] 107-107: too many spaces after hyphen

(hyphens)

⏰ Context from checks skipped due to timeout of 90000ms (13)
  • GitHub Check: End-to-end tests (MySQL) / JS with Panther, PHP 8.2, Symfony ^6.4 (test_cached), MySQL 8.0, Twig ^3.3
  • GitHub Check: End-to-end tests (MySQL) / JS with Panther, PHP 8.3, Symfony ^7.2 (test_cached), MySQL 8.4, Twig ^3.3
  • GitHub Check: End-to-end tests (MySQL) / Non-JS, PHP 8.3, Symfony ^7.2 (test_cached), MySQL 8.4, Twig ^3.3
  • GitHub Check: End-to-end tests (MySQL) / Non-JS, PHP 8.2, Symfony ^6.4 (test_cached), MySQL 8.0, Twig ^3.3
  • GitHub Check: End-to-end tests (MySQL) / JS with Chromedriver, PHP 8.2, Symfony ^6.4 (test_cached), MySQL 8.0, Twig ^3.3
  • GitHub Check: End-to-end tests (MySQL) / JS with Chromedriver, PHP 8.3, Symfony ^7.2 (test_cached), MySQL 8.4, Twig ^3.3
  • GitHub Check: Packages / PHP 8.3, Symfony ^7.2
  • GitHub Check: Packages / PHP 8.2, Symfony ^6.4
  • GitHub Check: End-to-end tests (MariaDB) / Non-JS, PHP 8.3, Symfony ^7.2, MariaDB 11.4.7, State Machine Adapter symfony_workflow
  • GitHub Check: End-to-end tests (MariaDB) / Non-JS, PHP 8.2, Symfony ^6.4, MariaDB 10.11.13, State Machine Adapter winzou_state_machine
  • GitHub Check: End-to-end tests (PostgreSQL) / Non-JS, PHP 8.3, Symfony ^7.2, PostgreSQL 17.5
  • GitHub Check: End-to-end tests (PostgreSQL) / Non-JS, PHP 8.2, Symfony ^6.4, PostgreSQL 15.13
  • GitHub Check: Frontend / NodeJS 20.x
🔇 Additional comments (11)
.github/workflows/matrix.json (10)

27-27: Bump minimal.e2e-mariadb MariaDB for Symfony ^7.2
Upgrading to MariaDB 11.4.7 aligns with the version matrix update. Looks good.


54-54: Bump minimal.e2e-pgsql PostgreSQL to 15.13
Updating Postgres to 15.13 is correct; please ensure the Docker image/tag exists in your CI environment.


59-59: Bump minimal.e2e-pgsql PostgreSQL to 17.5
The Postgres 17.5 tag is now tested for PHP 8.3/Symfony ^7.2. Looks consistent.


86-86: Expand Symfony versions in full.static-checks
Adding ~7.2.0 and ~7.3.0 to the static-checks matrix broadens compatibility testing. Confirm that your static analysis tools support these version constraints.


90-91: Restrict full.e2e-mariadb to a single MariaDB version
The full matrix now only tests MariaDB 11.4.7 across Symfony versions ^6.4, ~7.2.0, and ~7.3.0. This simplification reduces matrix size while still covering key combinations.


96-97: Add winzou_state_machine for Symfony ~7.3.0 on PHP 8.3
Including the winzou_state_machine adapter for the 8.3/~7.3.0 combo matches minimal changes. Ensure the adapter works as expected under this version matrix.


104-104: Expand Symfony versions in full.e2e-mysql
Aligns the MySQL e2e tests with the broader Symfony matrix by adding ~7.2.0 and ~7.3.0. Looks correct.


110-111: Expand full.e2e-pgsql matrix
Upgraded the Postgres versions array and expanded Symfony versions for thorough testing. Please verify that Postgres 16.9 and 17.5 are available in your CI runners.


122-122: Expand Symfony versions in full.packages
Adding ~7.2.0 and ~7.3.0 to the packages matrix covers recent releases. No issues spotted.


20-22:

Details

✅ Verification successful

Update minimal.e2e-mariadb to new MariaDB version and switch state machine adapter
The minimal matrix now uses MariaDB 10.11.13 and the winzou_state_machine adapter for PHP 8.2/Symfony ^6.4. Ensure that the winzou_state_machine integration is supported in your CI startup scripts and that any adapter-specific configuration is adjusted accordingly.

Please verify that all e2e-mariadb test jobs pick up the new adapter by running:


🏁 Script executed:

#!/bin/bash
# Confirm state_machine_adapter is set to winzou_state_machine in the matrix
rg -C2 '"state_machine_adapter": "winzou_state_machine"' .github/workflows/matrix.json

Length of output: 367


Confirmed state_machine_adapter in all e2e-mariadb matrix entries

The grep output shows "state_machine_adapter": "winzou_state_machine" under both the MariaDB 10.11.13 and 11.4.7 blocks in .github/workflows/matrix.json. All e2e-mariadb jobs are correctly using the new adapter. No further changes needed.

.github/workflows/ci_e2e-mysql.yaml (1)

132-132: Artifact naming corrected
The log upload name is now properly formatted, with the extraneous parenthesis removed. This change looks correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance CI configurations, READMEs, releases, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants