Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We're currently getting a test failure, see https://www.drupal.org/pift-ci-job/83690:
Features.Drupal\Tests\features\Kernel\FeaturesGenerateTest
testExportWritefail: [Other] Line 71 of modules/features/tests/src/Kernel/FeaturesGenerateTest.php:
Failed asserting that false is true.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#4 | 2618390-4.patch | 4.65 KB | dawehner |
|
Comments
Comment #2
nedjoThe test passes for me locally.
Comment #3
mpotter CreditAttribution: mpotter commentedHmm, I wonder if it doesn't have permission to write to the /modules directory on the CI environment?
I looked at trying to export a Feature to /tmp programatically, but we won't have any way currently to override that. Even setting the $package['directory'] in the test doesn't work because the directory is regenerated by PrepareFiles.
So, we either need a global path override, or a package specific override for the path if that is the issue with the test.
I'm surprised it doesn't give us the custom messages for the failing tests though. I added those to determine exactly which assert is failing, but all the CI says is "Failed asserting that false is true." which is very annoying. So hard to determine what's actually failing.
Comment #4
dawehnerI'm curious whether this fixes the issue ...
Comment #5
dawehnerDo we have automatic testing enabled?
Comment #6
dawehnerOh right we have a failing branch test ...
Comment #8
nedjoFixed in #2636798: Fix the GenerateTest on the testbot..