Closed Bug 1198265 Opened 9 years ago Closed 9 years ago

Duplicate hashed files created after each collectstatic run when using `ManifestStaticFilesStorage`

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1124382

People

(Reporter: emorley, Unassigned)

Details

One half of bug 1197796, requires using WhiteNoise's custom storage backend, which wraps Django's ManifestStaticFilesStorage. However when using this custom backend, and also when using the stock ManifestStaticFilesStorage backend, I'm hitting a bug where duplicate assets are created after each collectstatic run. eg after running collectstatic 3 times, I get: vagrant ~/treeherder/treeherder/webapp/static $ ls -w 1 staticfiles* admin/css/forms* admin/css/forms.4d10ed9b5ee5.1c5b92c26fe2.css admin/css/forms.4d10ed9b5ee5.1c5b92c26fe2.fb27ed5dfa1f.css admin/css/forms.4d10ed9b5ee5.css admin/css/forms.css staticfiles.1fefa8124fac.1fefa8124fac.json staticfiles.1fefa8124fac.json staticfiles.5e1be2eb39bc.json staticfiles.json I'll file a bug against Django.
So this is fixed by bug 1124382. (At the moment collectstatic is seeing the static folder as if it were the static files of the treeherder.webapp application, and so is collecting them recusively. With the static directory moved outside of treeherder.webapp, this does not occur.)
Assignee: emorley → nobody
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
No longer blocks: 1197796
You need to log in before you can comment on or make changes to this bug.