Drupal 11 requires root info.yml file and breaks existing module tests

Created on 21 August 2024, 7 months ago
Updated 22 August 2024, 7 months ago

Problem/Motivation

Adding OPT_IN_TEST_NEXT_MAJOR: 1 to the domain module breaks the existing test structure.

* PHPUnit and PHPStan run correctly for Drupal 10
* They fail (rather silently) for Drupal 11

See for instance: https://git.drupalcode.org/project/domain/-/jobs/2510494

It appears that the test suite in Drupal 11 is *requiring* a root-level info.yml file, which domain does not have.

$ printf ">>> Existing value of " &&  cat *.info.yml | grep core_version_requirement # collapsed multi-line command
>>> Existing value of cat: '*.info.yml': No such file or directory

I have the code of a multi-module project nested in a very specific way for valid reasons. These should be supported by GitLab.

Steps to reproduce

Run Drupal 11 GitLab tests on a module suite that has no root info file.

Proposed resolution

Replicate D10 and lower test runner behavior.

πŸ› Bug report
Status

Closed: duplicate

Component

gitlab-ci

Created by

πŸ‡ΊπŸ‡ΈUnited States agentrickard Georgia (US)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024