Bumped 'drupal/drupal-driver' and 'drupal/drupal-extension' to RC1.#636
Conversation
WalkthroughComposer dependency constraints for ChangesDependency Stability Update
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@composer.json`:
- Around line 23-24: The composer dependency stability tags for
drupal/drupal-driver and drupal/drupal-extension are incorrect (they use "`@RC`"
which causes resolution failures); update the version constraints for the
packages "drupal/drupal-driver" and "drupal/drupal-extension" to use the
published stability (e.g., change "^3.0@RC" and "^6.0@RC" to "^3.0@alpha" and
"^6.0@alpha") or revert to a released stable version once RCs are actually
published, then run composer update to verify resolution.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 43eb3570-5eb4-418d-8b5f-0e315625d1cd
📒 Files selected for processing (1)
composer.json
| "drupal/drupal-driver": "^3.0@RC", | ||
| "drupal/drupal-extension": "^6.0@RC", |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Verify RC versions exist on Packagist and check for breaking changes
echo "=== Checking drupal/drupal-driver ==="
curl -s "https://repo.packagist.org/p2/drupal/drupal-driver.json" | \
jq -r '.packages["drupal/drupal-driver"] | to_entries[] | select(.key | startswith("3.0.0-rc")) | .key' | \
head -5
echo -e "\n=== Checking drupal/drupal-extension ==="
curl -s "https://repo.packagist.org/p2/drupal/drupal-extension.json" | \
jq -r '.packages["drupal/drupal-extension"] | to_entries[] | select(.key | startswith("6.0.0-rc")) | .key' | \
head -5
echo -e "\n=== Checking GitHub releases for breaking changes ==="
gh api repos/drupal/drupal-driver/releases --jq '.[] | select(.tag_name | startswith("v3.0.0-rc")) | {tag: .tag_name, name: .name, body: .body}' | head -50
gh api repos/drupal/drupal-extension/releases --jq '.[] | select(.tag_name | startswith("v6.0.0-rc")) | {tag: .tag_name, name: .name, body: .body}' | head -50Repository: drevops/behat-steps
Length of output: 632
🏁 Script executed:
#!/bin/bash
echo "=== Checking available versions from Packagist for drupal-driver ==="
curl -s "https://repo.packagist.org/p2/drupal/drupal-driver.json" | jq '.packages | keys' | head -30
echo -e "\n=== Checking available versions from Packagist for drupal-extension ==="
curl -s "https://repo.packagist.org/p2/drupal/drupal-extension.json" | jq '.packages | keys' | head -30Repository: drevops/behat-steps
Length of output: 266
🏁 Script executed:
#!/bin/bash
echo "=== Searching for drupal-driver releases on GitHub ==="
# Try different possible repository locations
for repo in "drupal/drupal-driver" "drush/drupal-driver" "selenium/drupal-driver"; do
echo "Trying: $repo"
gh api repos/$repo/releases --paginate 2>/dev/null | jq -r '.[] | "\(.tag_name): \(.prerelease)"' | grep -i "3.0" | head -10
done
echo -e "\n=== Searching for drupal-extension releases on GitHub ==="
for repo in "drupal/drupal-extension" "drupal/Behat-Drupal-Extension" "drupal-extension/drupal-extension"; do
echo "Trying: $repo"
gh api repos/$repo/releases --paginate 2>/dev/null | jq -r '.[] | "\(.tag_name): \(.prerelease)"' | grep -i "6.0" | head -10
doneRepository: drevops/behat-steps
Length of output: 821
🏁 Script executed:
#!/bin/bash
echo "=== Raw Packagist response structure for drupal-driver ==="
curl -s "https://repo.packagist.org/p2/drupal/drupal-driver.json" | jq '.packages["drupal/drupal-driver"] | keys' 2>/dev/null | head -50
echo -e "\n=== Raw Packagist response structure for drupal-extension ==="
curl -s "https://repo.packagist.org/p2/drupal/drupal-extension.json" | jq '.packages["drupal/drupal-extension"] | keys' 2>/dev/null | head -50Repository: drevops/behat-steps
Length of output: 757
🌐 Web query:
drupal/drupal-driver 3.0.0-rc1 packagist releases
💡 Result:
As of May 18, 2026, the drupal/drupal-driver package on Packagist has not released a 3.0.0-rc1 version [1]. The most recent release in the 3.x development line is v3.0.0-alpha1, which was published on May 3, 2026 [1]. The 3.x branch of DrupalDriver is currently under active development, with the primary goal of supporting modern Drupal versions while dropping support for Drupal 6 and 7 [1]. Development progress is tracked via the 3.x epic on the project's GitHub repository [1][2]. Users looking for stable, production-ready versions should continue to use the 2.x maintenance line [1].
Citations:
- 1: https://packagist.org/packages/drupal/drupal-driver
- 2: Epic: DrupalDriver 3.x jhedstrom/DrupalDriver#312
🌐 Web query:
drupal/drupal-extension 6.0.0-rc1 packagist releases
💡 Result:
As of May 18, 2026, there is no 6.0.0-rc1 release for the drupal/drupal-extension package on Packagist [1]. The most recent version released for this package is v6.0.0-alpha1, which was published on May 4, 2026 [1]. The drupal/drupal-extension package, which provides the Drupal extension for Behat, currently maintains a 6.x development line that requires DrupalDriver 3.x [1]. Users are advised to use the 5.x branch for the current maintenance line [1]. You can verify the available versions and release history directly on the official Packagist page for the package [1].
Citations:
RC versions do not exist on Packagist — this will cause dependency resolution to fail.
As of May 2026, neither drupal/drupal-driver v3.0.0-rc1 nor drupal/drupal-extension v6.0.0-rc1 have been released. The latest versions available are v3.0.0-alpha1 (May 3) and v6.0.0-alpha1 (May 4), respectively. The constraints on lines 23–24 should remain at @alpha stability, or wait until the RC versions are actually published.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@composer.json` around lines 23 - 24, The composer dependency stability tags
for drupal/drupal-driver and drupal/drupal-extension are incorrect (they use
"`@RC`" which causes resolution failures); update the version constraints for the
packages "drupal/drupal-driver" and "drupal/drupal-extension" to use the
published stability (e.g., change "^3.0@RC" and "^6.0@RC" to "^3.0@alpha" and
"^6.0@alpha") or revert to a released stable version once RCs are actually
published, then run composer update to verify resolution.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #636 +/- ##
=======================================
Coverage 96.94% 96.94%
=======================================
Files 43 43
Lines 3040 3040
=======================================
Hits 2947 2947
Misses 93 93 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Tightens the Composer stability constraints for
drupal/drupal-driveranddrupal/drupal-extensionfrom@alphato@RCnow that the upstream maintainers have shipped their first RC tags (v3.0.0-rc1andv6.0.0-rc1). Theminimum-stabilityfield is updated fromalphatoRCto match. This is the natural follow-up to #631, which introduced the initial migration to the 6.0/3.0 line under alpha stability; with RC tags now available, consumers of this library no longer need to whitelist alpha stability project-wide.Changes
Composer
drupal/drupal-driverconstraint:^3.0@alpha→^3.0@RC(resolves tov3.0.0-rc1).drupal/drupal-extensionconstraint:^6.0@alpha→^6.0@RC(resolves tov6.0.0-rc1).minimum-stability:alpha→RC.No library source code changed - this is a Composer-metadata-only change.
prefer-stable: trueis unchanged, so every other dependency continues to resolve to its latest stable tag.Consumer impact
Downstream projects no longer need to whitelist
alphastability for these two packages. With this release, the following rootcomposer.jsonsnippet is sufficient:Or, project-wide:
Once the upstream packages ship stable
v3.0.0andv6.0.0tags the per-package@RCflags can be dropped entirely.Summary
This PR updates Composer dependency constraints for two Drupal Behat packages to their release-candidate versions, reflecting upstream RC1 releases.
Changes
Composer.json updates:
drupal/drupal-driver:^3.0@alpha→^3.0@RCdrupal/drupal-extension:^6.0@alpha→^6.0@RCminimum-stability:alpha→RCNo source code changes or step definition modifications.
Impact
This is a metadata-only change. Downstream projects can now require these packages with per-package
@RCflags, or set"minimum-stability": "RC"with"prefer-stable": true. Once upstream releases stable v3.0.0 and v6.0.0 tags, the@RCflags can be removed.Step Definition Compliance: Not applicable — this PR contains no step definition code changes.