Skip to content

Require wp-cli/wp-cli ^3.0 to fix SQLite Behat failures - #46

Merged
swissspidy merged 2 commits into
mainfrom
claude/kind-lovelace-5npp6q
Nov 18, 2026
Merged

swissspidy merged 2 commits into
mainfrom
claude/kind-lovelace-5npp6q

Conversation

@swissspidy

@swissspidy swissspidy commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Behat tests on SQLite fail in Given a WP install with:

Warning: copy(/tmp/wp-cli-test-run--…/wp-content/database/.ht.sqlite): Failed to open stream: No such file or directory in vendor/wp-cli/wp-cli-tests/src/Context/FeatureContext.php line 1510

Cause

This package required wp-cli/wp-cli: ^2 || ^3. wp-cli/wp-cli 3.0 hasn't been tagged as stable yet, so with prefer-stable Composer picked v2.12.0. Every wp-cli/wp-cli-tests release from v5.1.0 on needs wp-cli/wp-cli ^2.13 or ^3.0, so Composer quietly fell back to wp-cli-tests v5.0.11, which no longer works with the current SQLite integration plugin.

The other WP-CLI packages already require wp-cli/wp-cli: ^3.0. Only 3.0.x-dev satisfies that, so their test dependencies resolve to the latest releases.

Fix

Require wp-cli/wp-cli: ^3.0 to match the other packages. Composer now resolves wp-cli/wp-cli 3.0.x-dev, wp-cli-tests v5.5.3, entity-command v3 and extension-command v3. I confirmed this locally with composer update --dry-run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UWTd5mtWhh1gEboQejY1nD

With wp-cli/wp-cli 3.0 not yet tagged as stable and prefer-stable enabled,
Composer resolved wp-cli/wp-cli v2.12.0, which in turn capped
wp-cli/wp-cli-tests at v5.0.11 (newer releases require wp-cli ^2.13/^3.0).
That old test framework no longer works with the current SQLite integration
plugin, making every Behat run on SQLite fail in "Given a WP install".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UWTd5mtWhh1gEboQejY1nD
Copilot AI balanced review requested due to automatic review settings November 18, 2026 10:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The wp-cli/wp-cli-tests development dependency constraint in composer.json changes from ^5 to ^5.4.

Changes: Development dependency

Layer / File(s) Summary
Test dependency constraint
composer.json
The wp-cli/wp-cli-tests development dependency constraint changes from ^5 to ^5.4.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Merge Risk: Minimal · up to ead2b

This raises the minimum test framework version for development so that SQLite Behat tests resolve correctly. The runtime requirement is unchanged, and no concrete merge risk was identified.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Title check Warning The title says the PR requires wp-cli/wp-cli ^3.0, but the changeset only raises the dev dependency wp-cli/wp-cli-tests from ^5 to ^5.4 in composer.json. The title names a different package and versio… Retitle the PR to match the actual change, for example: "Require wp-cli-tests ^5.4 to fix SQLite Behat failures". The title must name wp-cli/wp-cli-tests, not wp-cli/wp-cli.
Passed Passed checks: 3 passed

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title says the PR requires wp-cli/wp-cli ^3.0, but the changeset only raises the dev dependency wp-cli/wp-cli-tests from ^5 to ^5.4 in composer.json. The title names a different package and version than the change. The objectives confirm the intended change is wp-cli-tests ^5.4, and the wp-cli/wp-cli 3.0 point appears only as a diagnosis in the description. The title is therefore misleading about the main change.

Resolution

Retitle the PR to match the actual change, for example: "Require wp-cli-tests ^5.4 to fix SQLite Behat failures". The title must name wp-cli/wp-cli-tests, not wp-cli/wp-cli.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6b8c67d9-73ff-488c-a168-0a6916ed6f05
Commits

Reviewing files that changed from the base of the PR and between f89bc59 and ead2b5d.

Files selected for processing: 1

  • composer.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy added this to the 2.1.0 milestone Nov 18, 2026
Align with the other WP-CLI packages. Allowing ^2 let prefer-stable pick
wp-cli/wp-cli v2.12.0, which capped wp-cli-tests at v5.0.11. Requiring ^3.0
resolves to 3.0.x-dev and lets wp-cli-tests ^5 resolve to the latest release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UWTd5mtWhh1gEboQejY1nD
@swissspidy swissspidy changed the title Require wp-cli-tests ^5.4 to fix SQLite Behat failures Require wp-cli/wp-cli ^3.0 to fix SQLite Behat failures Nov 18, 2026
@swissspidy
swissspidy merged commit 6e7a0ab into main Nov 18, 2026
48 checks passed
@swissspidy
swissspidy deleted the claude/kind-lovelace-5npp6q branch November 18, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants