Problem/Motivation

Follow-up to #2823400: Random fail in CopyFileTest.

Well only \Drupal\KernelTests\Core\File\DirectoryTest and \Drupal\KernelTests\Core\File\StreamWrapperTest fail if we remove FileTestBase::setUpFilesystem(). DirectoryTest fails because drupal_realpath() struggles with VFS here for some reason. The other test fails because of:

1) Drupal\KernelTests\Core\File\StreamWrapperTest::testFileFunctions
stream_select(): cannot represent a stream of type user-space as a
select()able descriptor

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

heddn created an issue. See original summary.

heddn’s picture

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jonathan1055’s picture

Having read #2823400: Random fail in CopyFileTest I have some recent random test failures which may be related to this, where we get mkdir() failing with "file exists"

28 Feb on 8.7 https://www.drupal.org/pift-ci-job/1214290
26 Feb on 8.6 https://www.drupal.org/pift-ci-job/1211494

It was different tests in which the failures happened. These appear to random, as the tests have not changed for months, and they should always run clean. They are tested daily and you can see the others are green.

Or is #2685957: Warning: mkdir(): File exists in Drupal\Component\PhpStorage\FileStorage->createDirectory a better place to re-open this problem?

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

moshe weitzman’s picture

Title: Fix FileTestBase so it is non-vulnerable to random tests » mkdir(): File exists in BrowserHtmlDebugTrait.php:141 during BrowserTestBase
moshe weitzman’s picture