Bump CI to BuildTestAppAction@v4 #18729
Conversation
📝 WalkthroughWalkthroughUpdated three CI/E2E GitHub Actions workflows to remove explicit Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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. Comment |
❌ Preview Environment deleted from BunnyshellAvailable commands:
|
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (3)
.github/workflows/ci_e2e-mysql.yaml (1)
96-107: Pin BuildTestAppAction to a stable release and use consistent input format.The feature branch ref
@feature/auto-database-urlis mutable and can break CI unexpectedly. Other workflows (ci_e2e-unstable.yaml, ci_frontend.yaml) use the stable@v3.0.1which expects separatedatabaseanddatabase_versioninputs, not the combineddatabase: "mysql:8.0"format used here. Align with the stable release once the auto-database-url feature is merged and released, or use the v3.0.1 input format (database: "mysql"+database_version: "...") in the meantime..github/workflows/ci_e2e-pgsql.yaml (1)
92-103: Pin BuildTestAppAction to an immutable ref.Using a feature branch ref is mutable and poses a stability and security risk—it can change unexpectedly and break CI. Pin to a commit SHA or stable release tag instead. Verify that the target ref supports the new input parameters (
database,php_version, etc.) before finalizing..github/workflows/ci_e2e-mariadb.yaml (1)
118-129: Pin BuildTestAppAction to a commit SHA until the feature branch is officially released.Using
feature/auto-database-urlis mutable and can break CI unexpectedly if the branch is rebased or force-pushed. Since this new input format (database: "mariadb:${{ matrix.mariadb }}") is not yet in the stable v3.0.1 release, pin this ref to a specific commit SHA to prevent unintended changes. Once a release is published with the auto-database-url support, update to that stable release tag.
♻️ Duplicate comments (3)
.github/workflows/ci_e2e-pgsql.yaml (1)
179-190: Same concern as above (action pinning + input support)..github/workflows/ci_e2e-mariadb.yaml (1)
231-242: Same concern as above (action pinning + input support)..github/workflows/ci_e2e-mysql.yaml (1)
195-206: Same concern as above (action pinning + input support).
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.github/workflows/ci_e2e-mariadb.yaml.github/workflows/ci_e2e-mysql.yaml.github/workflows/ci_e2e-pgsql.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: Javascript Tests (MySQL) / Get matrix
- GitHub Check: Packages / Get matrix
- GitHub Check: Tests (MariaDB) / Get matrix
- GitHub Check: Tests (PostgreSQL) / Get matrix
- GitHub Check: Frontend / Get matrix
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
240f7b3 to
3ffa60e
Compare
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
.github/workflows/ci_e2e-pgsql.yaml (1)
93-103: Pin action reference to a stable tag or commit SHA before merging to main.Using
@feature/auto-database-urlbranch reference is not suitable for the main branch. Feature branches can be force-pushed, rebased, or deleted, breaking CI reproducibility. Before merging to the2.3branch, update theSyliusLabs/BuildTestAppActionreference to either:
- A versioned tag (e.g.,
@v4.0.0) once the upstream action PR is merged and released- A full commit SHA for immutability
The
database: "postgres:${{ matrix.postgres }}"format change is correct. Thematrix.postgresvariable is properly defined in.github/workflows/matrix.jsonfor both build types (minimal and full), and matches the pattern used in other workflows..github/workflows/ci_e2e-mariadb.yaml (1)
119-129: Replace@feature/auto-database-urlwith a stable tag or commit SHA before merging to2.3.The
@feature/auto-database-urlbranch reference is unstable for production use. Other workflows in this repository (frontend, js, e2e-unstable) use the stable tag@v3.0.1. This applies to the pgsql and mysql workflows as well.The
database: "mariadb:${{ matrix.mariadb }}"format is correct and consistent with the pattern used in the pgsql and mysql workflows.
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.github/workflows/ci_e2e-mariadb.yaml.github/workflows/ci_e2e-mysql.yaml.github/workflows/ci_e2e-pgsql.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/ci_e2e-mysql.yaml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Static checks / PHP 8.4, Symfony ~7.4.0
🔇 Additional comments (2)
.github/workflows/ci_e2e-pgsql.yaml (1)
180-190: Consistent with first occurrence – same stability note applies.The changes here mirror the
phpunit-cli-apijob. The unified database format and removal of explicitDATABASE_URLare correctly applied..github/workflows/ci_e2e-mariadb.yaml (1)
232-242: Consistent with first occurrence in this file.The
behat-uijob correctly mirrors the changes fromphpunit-cli-api. The unified database format is applied consistently.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
3ffa60e to
dc98fbb
Compare
Use new unified database format in e2e workflows: - database: "mysql:X.X" instead of database+database_version - database: "postgres:X.X" instead of postgresql+database_version - database: "mariadb:X.X" instead of mariadb+database_version - Remove DATABASE_URL from env (action sets it automatically)
dc98fbb to
15f457e
Compare
BuildTestAppAction@v4
Testing new BuildTestAppAction from
feature/auto-database-urlbranch which introduces:mysql:8.4instead of separatedatabase+database_versionDATABASE_URLsetting (no need to define in workflows)sylius:sylius@sylius) across all databasesChanges in this PR:
DATABASE_URLfrom env sectionsdatabase: "type:version"formatRelated: SyliusLabs/BuildTestAppAction#19
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.