Skip to content

Try using the latest Drupal Extension.#2336

Open
AlexSkrypnyk wants to merge 1 commit intomainfrom
feature/try-drupalextension
Open

Try using the latest Drupal Extension.#2336
AlexSkrypnyk wants to merge 1 commit intomainfrom
feature/try-drupalextension

Conversation

@AlexSkrypnyk
Copy link
Member

@AlexSkrypnyk AlexSkrypnyk commented Mar 3, 2026

Closes #

Summary by CodeRabbit

  • Chores
    • Updated a development dependency constraint for the Drupal testing extension to a different release stream to align dev tooling versions.

@coderabbitai
Copy link

coderabbitai bot commented Mar 3, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 01b60da and dd6258f.

📒 Files selected for processing (1)
  • composer.json

Walkthrough

Updated the require-dev dependency in composer.json: drupal/drupal-extension changed from ^5.1 to dev-main as 5.0.0, causing the project to track the extension's development branch.

Changes

Cohort / File(s) Summary
Dependency Configuration
composer.json
Changed drupal/drupal-extension in require-dev from ^5.1 to dev-main as 5.0.0 (tracks dev branch).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 I nibble on a composer line,
dev-main now in the dev design,
no strict pins to hold me tight,
I hop along into the night.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: updating drupal/drupal-extension to the latest version (dev-main) in composer.json.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/try-drupalextension

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@composer.json`:
- Line 43: In composer.json replace the unstable branch constraint for the
dependency "drupal/drupal-extension" (currently "dev-main") with a stable
semantic version (e.g. "^5.1.0" or "^4.2.0") to match the project's
"minimum-stability": "stable" and "prefer-stable": true; after updating the
constraint run composer update drupal/drupal-extension to regenerate
composer.lock so builds are deterministic and reproducible.

ℹ️ Review info

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e66c974 and 01b60da.

📒 Files selected for processing (1)
  • composer.json

composer.json Outdated
"drevops/phpcs-standard": "^0.6.2",
"drupal/coder": "^9@alpha",
"drupal/drupal-extension": "^5.1",
"drupal/drupal-extension": "dev-main",
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Read-only verification: check how drupal/drupal-extension is constrained and locked.
set -euo pipefail

echo "composer.json constraint:"
rg -n '"drupal/drupal-extension"\s*:\s*".*"' composer.json

if [ -f composer.lock ]; then
  echo
  echo "composer.lock entry (packages-dev/packages):"
  python3 - <<'PY'
import json
with open("composer.lock", "r", encoding="utf-8") as f:
    data = json.load(f)
pkgs = (data.get("packages-dev") or []) + (data.get("packages") or [])
matches = [p for p in pkgs if p.get("name") == "drupal/drupal-extension"]
if not matches:
    print("No drupal/drupal-extension entry found in composer.lock")
for p in matches:
    print("locked_version=", p.get("version"))
    print("source_ref=", (p.get("source") or {}).get("reference"))
    print("dist_ref=", (p.get("dist") or {}).get("reference"))
PY
else
  echo "composer.lock not found; cannot verify lock pinning."
fi

Repository: drevops/vortex

Length of output: 186


🏁 Script executed:

#!/bin/bash
# Check how composer.lock is handled and stable versions
if [ -f .gitignore ]; then
  echo "=== .gitignore entries related to composer ==="
  rg -i "composer\.lock|vendor" .gitignore || echo "No composer.lock/.gitignore entries found"
fi

echo
echo "=== Checking composer.json for minimum-stability ==="
rg -A2 '"minimum-stability"' composer.json

Repository: drevops/vortex

Length of output: 261


🌐 Web query:

drupal/drupal-extension available versions stable releases

💡 Result:

Stable (non-dev, non-alpha/beta/rc) releases of drupal/drupal-extension currently available on Packagist, by branch (latest in each): [1]

  • 5.x: v5.1.0 (latest), v5.0.0
  • 4.x: v4.2.1 (latest), v4.1.0, v4.0.1, v4.0.0
  • 3.4.x: v3.4.1 (latest), v3.4.0
  • 3.3.x: v3.3.1 (latest), v3.3.0
  • 3.2.x: v3.2.3 (latest), v3.2.2, v3.2.1, v3.2.0
  • 3.1.x: v3.1.5 (latest), v3.1.4, v3.1.3, v3.1.2, v3.1.1, v3.1.0
  • 3.0.x: v3.0.13 (latest) down to v3.0.0
  • 1.0.x: v1.0.9 (latest) down to v1.0.0
  • 0.1.x: v0.1.6 (latest) down to v0.1.0

If you tell me which Drupal core major (e.g., 9/10/11) and PHP you’re targeting, I can suggest the best branch to use.

Source: Packagist package page for drupal/drupal-extension. [1]


Use a stable version of drupal/drupal-extension instead of dev-main.

The project declares "minimum-stability": "stable" and "prefer-stable": true, yet this dependency uses a floating development branch. This contradicts the stability policy and creates non-deterministic builds (especially since composer.lock is not tracked). Stable versions are available on Packagist (e.g., v5.1.0, v4.2.1, v3.4.1). Update the constraint to a semantic version such as ^5.1.0 or ^4.2.0 to respect the project's stability preference and ensure reproducible builds.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@composer.json` at line 43, In composer.json replace the unstable branch
constraint for the dependency "drupal/drupal-extension" (currently "dev-main")
with a stable semantic version (e.g. "^5.1.0" or "^4.2.0") to match the
project's "minimum-stability": "stable" and "prefer-stable": true; after
updating the constraint run composer update drupal/drupal-extension to
regenerate composer.lock so builds are deterministic and reproducible.

@AlexSkrypnyk AlexSkrypnyk force-pushed the feature/try-drupalextension branch from 01b60da to dd6258f Compare March 3, 2026 05:06
@github-actions

This comment has been minimized.

@AlexSkrypnyk
Copy link
Member Author

Code Coverage Report:
  2026-03-03 05:13:53

 Summary:
  Classes:  0.00% (0/1)
  Methods:  0.00% (0/2)
  Lines:   94.65% (177/187)

@AlexSkrypnyk
Copy link
Member Author

Code Coverage Report:
  2026-03-03 05:17:04

 Summary:
  Classes:  0.00% (0/1)
  Methods:  0.00% (0/2)
  Lines:   94.65% (177/187)

@AlexSkrypnyk
Copy link
Member Author

Code Coverage Report:
  2026-03-03 05:17:14

 Summary:
  Classes:  0.00% (0/1)
  Methods:  0.00% (0/2)
  Lines:   94.65% (177/187)

@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.93%. Comparing base (1312b4d) to head (dd6258f).
⚠️ Report is 3 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (1312b4d) and HEAD (dd6258f). Click for more details.

HEAD has 3 uploads less than BASE
Flag BASE (1312b4d) HEAD (dd6258f)
9 6
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2336       +/-   ##
===========================================
- Coverage   78.87%   66.93%   -11.95%     
===========================================
  Files         124       41       -83     
  Lines        6482     2386     -4096     
  Branches       44        0       -44     
===========================================
- Hits         5113     1597     -3516     
+ Misses       1369      789      -580     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

Code Coverage Report:
  2026-03-03 14:52:33

 Summary:
  Classes:  0.00% (0/1)
  Methods:  0.00% (0/2)
  Lines:   94.65% (177/187)

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

Labels

None yet

Projects

Status: BACKLOG

Development

Successfully merging this pull request may close these issues.

1 participant