Closed (outdated)
Project:
Drupal core
Version:
8.9.x-dev
Component:
file.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Sep 2015 at 12:21 UTC
Updated:
22 May 2021 at 02:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerLet's see what the bot thinks
Comment #3
phenaproximaIdeally we'd test this with vfsStream -- AFAIK there is no reason it will not work in SimpleTest -- but to me this looks good enough for now.
Comment #4
klausithe test needs to be updated to reference the new file name.
Comment #5
phenaproximaErp :) </embarrassed>
EntityFileTest needs a lot of work in general, but @klausi is correct.
Comment #6
neclimdulHow about this then.
Comment #7
neclimdulderp, to testbot.
Comment #8
dawehneryeah that is the much better approach here
Comment #11
phenaproximaI suspect that may have been one of the random fails this issue is meant to fix.
I forgot to copy the test failure output -- sorry! -- but I looked before re-queueing. It was, indeed, a "cannot copy file" failure of EntityFileTest, which is what this issue is intended to fix.
Comment #12
alexpottOkay according to @phenaproxima #6 failed in EntityFileTest - maybe this change has made it a consistent fail ... let's see.
Comment #13
alexpottSo it didn't fail :( that is a shame. The problem I have is that I don't understand how the random fail is caused - this seems to be the only test that accesses this file so I'm not sure how it is failing.
Comment #14
neclimdulThat's a good point, we don't have an unlink (its own problem that this test does fix) so it wouldn't be a race condition. I've not actually seen the failure yet so I don't actually know what the trace is I was just going with the IS. This is clearly an improvement either way but we should definitely narrow down the failure if possible.
Comment #15
neclimdulJust to clarify because dawehner asked about it IRC, we should have had an unlink before, we don't need one in this patch because we're using the simpletest site directory so its auto cleaned up for us in TestBase::restoreEnvironment().
Comment #17
joelpittetDid this just fail randomly?
Comment #26
quietone commentedEntityFileTest was moved in #2684141: Convert migrate kernel tests to KernelTestBaseTNG to core/modules/file/tests/src/Kernel/Migrate/EntityFileTest.php. Then in #2695297: Refactor EntityFile and use process plugins instead, it was deleted. The new tests for file migrations are not listed in the meta for random test failures, #2829040: [meta] Known intermittent, random, and environment-specific test failures. And FWIW I have no memory of random failures in the file migrations. Therefor closing as outdated.
Therefore, closing as outdated. If this is incorrect reopen the issue, by setting the status to 'Active', and add a comment explaining what still needs to be done.
Thanks!