-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync storage with make up flow #22805
Conversation
ce0f6b8
to
6d2fdaf
Compare
6d2fdaf
to
9d5252a
Compare
9d5252a
to
fbad271
Compare
Saw that |
You mean |
Interesting issue I ran into:
Digging into it, this appears to be because we're using cached db session engine and Django is using "new" cache with "old" data, so that doesn't quite work properly. Indeed, doing a Since this PR is about syncing up storage with the db, maybe it makes sense to address this here as well - That error can manifest in other ways, and it's a very similar underlying problem of cache not being consistent with the db backup we just loaded. I assume we should just clear the cache after a |
I can still see files from my second add-on in the storage directory (even though it doesn't exist in the db anymore) |
fbad271
to
4121c42
Compare
|
be4a889
to
574e14c
Compare
574e14c
to
57fdc76
Compare
Relates to: mozilla/addons#15066
Child of: #22781
Description
Sync the
storage
director with make initialize command. 1) when you dump/load a db backup it will store/load the storage directory as well (correctly) 2) when seeding the db it will sync the storage directory as well 3) when syncing the storage directory it will clear the directory first to ensure pristine backups 4) remove the storage volume and just mount the repo and map the files correctly to static or storage directories.Context
Currently
data_seed
is semi broken as it does not sync the storage directory when creating a snapshot.Testing
run a clean init
Expect the storage directory to be cleared and populated with the data from addons created during the seed.
run a backup and restore.
make data_dump
make data_load
Checklist
#ISSUENUM
at the top of your PR to an existing open issue in the mozilla/addons repository.