Problem/Motivation
The project has no .gitlab-ci.yml, so merge requests get no pipeline. The only test lives in test/src/Unit. Neither core's PHPUnit configuration nor GitLab CI discovers tests there, so it never runs. Without a composer.json, CI does not install Queue UI, which MonitoredQueueUIManager extends.
A CI file was proposed before in !3 (#3434069: Automated Drupal 11 compatibility fixes for queue_stats), !5 (#3558615: fix dependency injection in EstimatedTimeToFinish) and !6 (#3581728: Write automated tests). This issue adds it on its own, so that the open merge requests get a pipeline before they are merged.
Steps to reproduce
Open any merge request: no pipeline runs.
Proposed resolution
- Add the standard gitlab_templates
.gitlab-ci.yml. Opt in to the previous major (Drupal 10) and run it automatically on pushes and merge requests. - Add a
composer.jsonwithdrupal/queue_ui: ^3.2as a dev dependency. - Move
test/totests/and make the data provider static, as PHPUnit 10 and later require.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
AI-Generated: Yes (Used Claude Code to prepare the CI file and composer.json and to run the tests locally on Drupal 10.6 and 11.4.)
Issue fork queue_stats-3634607
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
achtonComment #5
achton