Problem/Motivation
In order for a contrib project to be testable on Drupal 9 all the modules need to be marked as D9 compatible. This makes sense for the *real* modules provided by the project but it does not make sense for test modules.
Proposed resolution
Allow modules that are in the Testing package to default to the Drupal version under test.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/a - well we could do one but it doesn't feel that important.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3096609-4.patch | 2.67 KB | alexpott |
| #4 | 2-4-interdiff.txt | 1.46 KB | alexpott |
| #2 | 3096609-2.patch | 2.3 KB | alexpott |
Comments
Comment #2
alexpottComment #4
alexpottHere's a fix. \Drupal\Tests\system\Functional\Form\ModulesListFormWebTest::testModulesListFormWithInvalidInfoFile() creates an invalid info .yml file without a package key. Nice because it's not mandatory.
Comment #5
berdirIsn't this going to break on the lines below for modules that still do have a core: 8.x key, as would then result in getting an exception on incompatible core vs. core_version_requirement key?
What about only doing this if those testing modules do not yet have a core nor core_version_requirement key instead of forcing it? If we do force then we need to unset core too.
Comment #6
alexpott@Berdir context is everything :) this is inside another if...
Comment #7
berdirOh, I did look at the whole function to make sure it is above the other check, but didn't see that it is inside this condition.
I think this is fine then, not sure if it needs a change record or documentation updates?
Comment #8
alexpottI'll update https://www.drupal.org/node/3070687 once this has been committed.
Comment #11
catchCommitted/pushed to 9.0.x/8.9.x, moving to 8.8.x for backport once the freeze is over. I'm in favour of getting this into 8.8 to make contrib porting easier.
Comment #13
catchCherry-picked to 8.8.x, thanks! Also updated the change record and linked it to this issue.
Comment #14
heddnI'm not so sure this actually fixes anything. See #3101322: Error due to Drupal 9 support.
Comment #15
alexpott@heddn this change is not part of 8.8.x yet. It will be released in 8.8.2
Comment #16
heddnCR needs update. It says this made it into 8.8.1.
Comment #17
heddnCan someone review my updates to the CR and mark this fixed if they agree with them?
Comment #18
heddnIt is confusing though, because this was committed 8 days ago and 8.8.1 was released only 2 days ago. Or at least I'm confused.
Comment #19
heddnBerdir mentioned that 8.8.1 was a security only release, ergo it doesn't have anything but the security changes in it. That's the answer to #18.
Comment #20
alexpottUpdates to CR look good.
Comment #21
wim leersWoah, really good catch! 😊