- Issue created by @andypost
- π«π·France andypost
Very probably this is a cause of CI which is unable to return results (I bet parsing fails for the same reason)
Ref https://dispatcher.drupalci.org/job/drupal_patches/187212
05:25:02 Drupal\Tests\system\FunctionalJavascript\ModuleFilterTest 1 passes 05:25:11 Drupal\Tests\media\FunctionalJavascript\MediaEmbedFilterConf 22 passes 05:25:32 Build timed out (after 110 minutes). Marking the build as aborted. 05:25:53 Build was aborted 06:40:22 Archiving artifacts 06:40:22 /opt/drupalci/testrunner/jenkins.sh: line 36: 32704 Terminated
- π«π·France andypost
New failures from https://www.drupal.org/pift-ci-job/2693255 β
Testing Drupal\Tests\migrate_drupal_ui\Functional\d6\Upgrade6TestWithContentModeration E 1 / 1 (100%) Time: 00:19.494, Memory: 4.00 MB There was 1 error: 1) Drupal\Tests\migrate_drupal_ui\Functional\d6\Upgrade6TestWithContentModeration::testUpgradeAndIncremental LogicException: Missing bundle entity, entity type node_type, entity id forum. /var/www/html/core/lib/Drupal/Core/Entity/EntityType.php:877 /var/www/html/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php:241 /var/www/html/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:71 /var/www/html/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:89 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:381 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:321 /var/www/html/core/modules/workflows/src/Entity/Workflow.php:114 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php:528 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php:483 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:257 /var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php:339 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:609 /var/www/html/core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6TestWithContentModeration.php:48 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 ERRORS! Tests: 1, Assertions: 8, Errors: 1. ....... Testing Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7TestWithContentModeration E 1 / 1 (100%) Time: 00:21.898, Memory: 4.00 MB There was 1 error: 1) Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7TestWithContentModeration::testUpgradeAndIncremental LogicException: Missing bundle entity, entity type node_type, entity id forum. /var/www/html/core/lib/Drupal/Core/Entity/EntityType.php:877 /var/www/html/core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php:241 /var/www/html/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:71 /var/www/html/core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php:89 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:381 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:321 /var/www/html/core/modules/workflows/src/Entity/Workflow.php:114 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php:528 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php:483 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:257 /var/www/html/core/lib/Drupal/Core/Entity/EntityBase.php:339 /var/www/html/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php:609 /var/www/html/core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7TestWithContentModeration.php:48 /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 ERRORS! Tests: 1, Assertions: 7, Errors: 1.
- π¬π§United Kingdom longwave UK
@andypost #4 was caused by β¨ Mark an entity as 'syncing' during a migration update Needs work , this is now reverted.
- π«π·France andypost
Reported upstream with simplified script https://github.com/php/php-src/issues/11469
- π«π·France andypost
- π«π·France andypost
The commit was reverted, waiting for next alpha https://github.com/php/php-src/commit/ad5ee8a2b7ad960ba8286d11ff98d53098...
- π«π·France andypost
The proposed BC code is https://github.com/php/php-src/issues/11469#issuecomment-1597866217
function setNodeValue($attrNode, $value) { $attrNode->nodeValue = ''; $attrNode->appendChild(new \DOMText($value)); }
- First commit to issue fork.
- π¦πΊAustralia tstarling
I added a a more specific workaround to the issue fork.
- π«π·France andypost
@tstarling please create a MR from the issue fork, I did approve your account
- last update
over 1 year ago 29,499 pass - @andypost opened merge request.
- Status changed to Needs review
over 1 year ago 12:33am 20 June 2023 12:28 11:45 Running12:10 9:41 Running- π«π·France andypost
Queued suggested fix
- mysql https://www.drupal.org/pift-ci-job/2696385 β
- sqlite https://www.drupal.org/pift-ci-job/2696386 β - π«π·France andypost
Tests are passed now but parsing artifacts fails, so this fix is not enough to allow CI to complete
03:09:24 Drupal\Tests\media\FunctionalJavascript\MediaEmbedFilterConf 22 passes 03:10:06 Build timed out (after 110 minutes). Marking the build as aborted. 03:10:09 Build was aborted 04:26:16 Archiving artifacts 04:26:16 /opt/drupalci/testrunner/jenkins.sh: line 36: 3720 Terminated ./drupalci run /var/lib/drupalci/workspace/builds/build.yml
This log means tests are stuck on parsing results
- Status changed to Needs work
over 1 year ago 3:07pm 20 June 2023 - last update
over 1 year ago 29,505 pass - last update
over 1 year ago CI aborted - last update
over 1 year ago CI aborted - π«π·France andypost
Looking at logs I see that parser fails on new tests that were not executed, ref #[3346765]
PHP Notice: Undefined index: Drupal\Tests\system\FunctionalJavaScript\NoJavaScriptAnonymousTest in /opt/drupalci/testrunner/src/DrupalCI/Build/Artifact/Junit/JunitXmlBuilder.php on line 82
- last update
over 1 year ago CI aborted - last update
over 1 year ago CI aborted - last update
over 1 year ago 29,508 pass - π«π·France andypost
Locally unable to reproduce but on runner it hangs finishing
simpletest_script_execute_batch()
probably some process hangs 47:03 46:47 Running46:57 44:26 Running46:47 43:46 Running46:42 42:56 Running42:59 42:46 Running- Open on Drupal.org βEnvironment: php8.3_sqlite3.34
42:38 42:38 Queueing - last update
over 1 year ago CI aborted - last update
over 1 year ago CI aborted - last update
over 1 year ago CI aborted - π«π·France andypost
still hangs, probably some test result parsing stucks
- last update
over 1 year ago 260 pass - π«π·France andypost
The test
Drupal\Tests\file\FunctionalJavascript\MaximumFileSizeExceededUploadTest
is missing in ci-run - last update
over 1 year ago CI aborted - last update
over 1 year ago 29,508 pass - last update
over 1 year ago 29,508 pass - last update
over 1 year ago 29,508 pass - π¨π¦Canada joseph.olstad
@andypost, have you been able to run these tests locally with PHP 8.3-alpha2 and compared the results vs the d.o ci ?
- π«π·France andypost
@joseph.olstad yes, the same test hangs even after replacing Apache with nginx-unit
- π¬π§United Kingdom longwave UK
@andypost does that trace happen before or during the file upload, ie. in
$page->attachFileToField("files[field_file_0]", $this->fileSystem->realpath($invalid_file));
Maybe there is a new bug in PHP 8.3 when post_max_size is exceeded? There are some changes around stack overflow handling and perhaps some changes around out of memory conditions as well: https://stitcher.io/blog/new-in-php-83#stack-overflow-detection-pr
- π«π·France andypost
It's caused by
generateFile()
which is very slow with each iteration but no before https://3v4l.org/WciJK#v8.2.7 - π«π·France andypost
Reported upstream https://github.com/php/php-src/issues/11507
- π«π·France andypost
Filed child to improve the test π Fix MaximumFileSizeExceededUploadTest test for PHP 8.3 Fixed
As of my last update in September 2021, PHP 8.3 has not been released yet. However, I can provide you with some general guidelines to fix tests that may break when moving from PHP 8.2 (or an earlier version) to PHP 8.3. Keep in mind that these are speculative, and you should consult the official PHP documentation and release notes for PHP 8.3 for accurate information when it becomes available.
Update Dependencies: Make sure all your dependencies, including testing frameworks and libraries, are compatible with PHP 8.3. Check for updates on their respective GitHub repositories or websites.
Check for Deprecated Features: PHP 8.3 might deprecate certain functions or features that were available in earlier versions. Search for deprecated features in your codebase and replace them with recommended alternatives.
Review Error Reporting: PHP 8.3 may introduce stricter error reporting settings. Ensure that your tests handle errors and exceptions correctly. Avoid relying on outdated error suppression techniques like the @ symbol.
Type Declarations: PHP 8.3 could introduce new type declarations or modify existing ones. Review all type declarations in your tests and ensure they align with the changes in PHP 8.3.
Static Analysis: Use static analysis tools like PHPStan or Psalm to identify potential issues and bugs in your code. These tools can catch errors that might not be apparent during normal testing.
Test Case Assertions: Review all your test case assertions to ensure they remain valid in PHP 8.3. Certain edge cases or changes in internal behaviors could lead to test failures.
Testing Extensions: If your tests rely on PHP extensions, verify that these extensions are compatible with PHP 8.3. Some extensions might need updates to work correctly.
Array Syntax: PHP 8.3 might introduce changes to array syntax or array functions. Review your codebase for any array-related issues.
Regex Changes: If your tests utilize regular expressions, be aware of any regex changes in PHP 8.3. Adjust your patterns as needed.
Build a Testing Matrix: Set up a testing matrix with various PHP versions, including PHP 8.3, to run your tests. This way, you can quickly identify issues that are specific to PHP 8.3.
Always remember to test your code thoroughly after making any changes. Automated tests, continuous integration, and good test coverage are essential for detecting issues early in the development process. Additionally, keep an eye on the official PHP releases and update your code accordingly when PHP 8.3 is officially released.
- π³π΄Norway gisle Norway
Deleted comment #40 by user shiv_tech β .
It was obviously AI generated content and served no useful purpose.
- π«π·France andypost
New failure on beta3 #3375693-27: Fix deprecated assert_options() function usage for PHP 8.3 β
- π«π·France andypost
Filed new issue for that π TextSummaryTest:testLength() fails on some libxml versions Closed: outdated
- last update
about 1 year ago 30,480 pass - Status changed to Closed: cannot reproduce
about 1 year ago 6:15pm 31 October 2023 - π«π·France andypost
As π Fix deprecated assert_options() function usage for PHP 8.3 Needs review commited, all tests are pass, any new regressions could use new issues with PHP 8.3 tag