Problem/Motivation
Attempting to add 11.4 support.
During Functional Test setup Drupal the Drupal Kernel is attempting to register the streamWrapper, however the 's3fs' service does not yet appear to exist in the container, this throws a service not found exception.
https://www.drupal.org/project/drupal/issues/3453216 appears to be a likely cause as one of its line is directly in the execution path.
bissect on core 11.x shows
8799b9=bad
1) Drupal\Tests\s3fs\Functional\S3fsConfigFormTest::testS3fsConfigurationForm
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "s3fs".
/var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php:153
/var/www/html/web/core/lib/Drupal.php:203
/var/www/html/web/modules/custom/s3fs/src/StreamWrapper/S3fsStream.php:181
/var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php:262
/var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php:173
/var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php:453
/var/www/html/vendor/symfony/service-contracts/ServiceLocatorTrait.php:61
/var/www/html/vendor/symfony/dependency-injection/ServiceLocator.php:43
/var/www/html/web/core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php:110
/var/www/html/web/core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php:143
/var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php:1073
/var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php:881
/var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:722
/var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:320
/var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:229
/var/www/html/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:516
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:548
/var/www/html/web/core/tests/Drupal/Tests/BrowserTestBase.php:335
/var/www/html/web/modules/custom/s3fs/tests/src/Functional/S3fsTestBase.php:106
/var/www/html/web/modules/custom/s3fs/tests/src/Functional/S3fsConfigFormTest.php:37
I did see some oddity at first in a full install lab, though I'm not reproducing it at the moment. Possibility this is just a test fault, however the fact it potentially originates from the Drupal Kernel is concerning that it could happen in production.
Steps to reproduce
Patch module to 11.4 ( see https://www.drupal.org/project/s3fs/issues/3601065 and children) and execute tests.
Comments
Comment #2
cmlaraLooked closer at the bisect and realized the 25 commits unconfirmed were likely #3592887: AttributeRouteDiscovery does not cleanly handle invalid classes
Applied related core patch to the test runs and confirmed core commit 8799b9 is first bad in bisect for s3fs service missing errors.
Comment #3
cmlaraConfirmed breaking on clean install.
End of day here, will raise a formal core issue in morning/afternoon.
Stack Trace trying to enable the module from the Drupal Extension UI:
Comment #4
cmlaraPostponed on Core #3603333: Errors when stream wrappers instantiate services in constructors because register() is called before container is built
Comment #5
cmlaraCore has fixed #3603333.
No changes required from up on this issue. should be in next non-security release of Drupal Core.