Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalGovUpdateTest::testUpdate test failure #738

Open
millnut opened this issue Jul 3, 2024 · 2 comments
Open

LocalGovUpdateTest::testUpdate test failure #738

millnut opened this issue Jul 3, 2024 · 2 comments

Comments

@millnut
Copy link
Member

millnut commented Jul 3, 2024

When the test for LocalGovUpdateTest::testUpdate runs it terminates unexpectedly with the following error:

PHPUnit 9.6.19 by Sebastian Bergmann and contributors.

Testing /app/web/profiles/contrib/localgov
F                                                                   1 / 1 (100%)

Time: 00:28.755, Memory: 10.00 MB

There was 1 failure:

1) Drupal\Tests\localgov\Functional\LocalGovUpdateTest::testUpdate
Test was run in child process and ended unexpectedly

/app/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/app/vendor/phpunit/phpunit/src/Framework/TestSuite.php:685
/app/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651
/app/vendor/phpunit/phpunit/src/TextUI/Command.php:146
/app/vendor/phpunit/phpunit/src/TextUI/Command.php:99

Pulling the error.log from the test has this in

[02-Jul-2024 01:12:58 Australia/Sydney] PHP Fatal error:  Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached during compilation. Try splitting expression in /app/web/profiles/contrib/localgov/tests/fixtures/localgov-2.3.20.php.gz on line 159086

I haven't had the time to look into this in much more detail, but this is what I've found so far

@millnut
Copy link
Member Author

millnut commented Jul 5, 2024

@stephen-cox just tagging you in this as from the history of the file/test you may have the most context

@millnut
Copy link
Member Author

millnut commented Jul 13, 2024

Hi @stephen-cox @finnlewis I've been looking at this in some more detail and it appears the process to import the dump file localgov-2.3.20.php.gz is overflowing the PHP engine max allowed stack size. This is a new feature of PHP to help reduce segmentation faults, even setting this to -1 to turn it off or setting it to a high value still fails with a Segmentation fault.

The description of this test is Tests LocalGov updates from 2.3.18 to current. given that 2.x is no longer supported and Drupal's plans to move away from profiles to recipes, shall we remove the test LocalGovUpdateTest::testUpdate?

I believe this is the last test failure to get the project running all tests green again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant