Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559094 - leftover metadata files for removed ebuilds in Gentoo git user-sync mirror
Summary: leftover metadata files for removed ebuilds in Gentoo git user-sync mirror
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL: https://github.com/gentoo-mirror/gentoo
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-29 14:10 UTC by Denis Lisov
Modified: 2015-09-11 15:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Lisov 2015-08-29 14:10:06 UTC
The metadata cache regen for the Gentoo user-sync git mirror at https://github.com/gentoo-mirror/gentoo does not remove the metadata files for ebuilds removed from tree. This can be easily seen from the history by using

git log --diff-filter=D --stat metadata/

from the git repo root and observing no file deletions since the 15th of August.

Reproducible: Always

Actual Results:  
Stale metadata files accumulate, for example,

$ ls app-vim/vim-misc/*.ebuild metadata/md5-cache/app-vim/vim-misc-* | cat                                                                                                                                                               
app-vim/vim-misc/vim-misc-1.17.1.ebuild
app-vim/vim-misc/vim-misc-1.17.6.ebuild
metadata/md5-cache/app-vim/vim-misc-1.11
metadata/md5-cache/app-vim/vim-misc-1.13.1
metadata/md5-cache/app-vim/vim-misc-1.16.1
metadata/md5-cache/app-vim/vim-misc-1.17
metadata/md5-cache/app-vim/vim-misc-1.17.1
metadata/md5-cache/app-vim/vim-misc-1.17.6
metadata/md5-cache/app-vim/vim-misc-1.8.5
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-08-31 16:16:12 UTC
Did I fail at rsync/git somewhere or does pmaint regen leave old metadata entries? :)
Comment 2 Tim Harder gentoo-dev 2015-08-31 16:22:55 UTC
(In reply to Michał Górny from comment #1)
> Did I fail at rsync/git somewhere or does pmaint regen leave old metadata
> entries? :)

pmaint regen never has had support to remove old entries.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-09-04 20:46:26 UTC
As an interim solution, I have manually wiped the caches right now. Hopefully the repos will shrink a bit on next sync.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-09-11 15:02:36 UTC
Should be fixed now.