#27741: staticfiles_tests test_corrupt_intermediate_files fails in source
distribution
-------------------------------------+------------------------------------
Reporter: Chris Lamb | Owner: nobody
Type: Bug | Status: new
Component: contrib.staticfiles | Version: 1.11
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Comment (by David Sanders):
Thanks Tim, that script helps me quickly reproduce on my setup.
I've further narrowed it and confirmed what Chris said about parallelism
being a factor. If you use `--parallel 1` to disable parallelism it won't
reproduce.
I've narrowed it down to the parallel interaction between two test cases.
It makes sense, the latter is also dealing with `window.png` and changes
the modification timestamp on it which changes the hash.
{{{
for i in {1..500};
do
python tests/runtests.py
staticfiles_tests.test_storage.TestCollectionCachedStorage
staticfiles_tests.test_storage.TestCollectionHashedFilesCache
retcode=$?
if [ $retcode = 1 ]; then
echo $i;
echo 'failed';
break;
fi
done
}}}
That's all the digging I've got time for tonight. I'll start to look into
a fix tomorrow, unless someone wants to pounce on it before me now that
it's narrowed down.
--
Ticket URL: <https://code.djangoproject.com/ticket/27741#comment:17>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.f06beee9a212e06a7ca066f655a08368%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.