I was thinking where to reclaim storage space so we can add Fedora 30 and I checked the srpm-builds directory, which Dominik mentioned during last meeting and the total sum is:
[root@copr-be results][PROD]# du -shc */*/srpm-builds 697G total
and it contains very old build - so current prunerepo definitely skips it.
Unless you raise your voice by end of week, I will run on Monday:
rm -rf /var/lib/copr/public_html/results/*/*/srpm-builds/*
The only cons I see is that links from build page to builder-live.log will be broken. ... hmm, they are already broken - likely some other bug. So I see no cons :)
Miroslav
On Friday, March 8, 2019 12:47:29 AM CET Miroslav Suchý wrote:
I was thinking where to reclaim storage space so we can add Fedora 30 and I checked the srpm-builds directory, which Dominik mentioned during last meeting and the total sum is:
[root@copr-be results][PROD]# du -shc */*/srpm-builds 697G total
Good catch!
and it contains very old build - so current prunerepo definitely skips it.
Unless you raise your voice by end of week, I will run on Monday:
rm -rf /var/lib/copr/public_html/results/*/*/srpm-builds/*
Will the limit for command-line lenght suffice (execve)? :-)
The only cons I see is that links from build page to builder-live.log will be broken. ... hmm, they are already broken - likely some other bug. So I see no cons :)
This is actually not truth, at least not for builds I tried. Worth submitting a bug report...
Pavel
Dne 08. 03. 19 v 9:21 Pavel Raiskup napsal(a):
Will the limit for command-line lenght suffice (execve)? :-)
It worked for 'du' - yes, it will be sufficient.
The only cons I see is that links from build page to builder-live.log will be broken. ... hmm, they are already broken - likely some other bug. So I see no cons :)
This is actually not truth, at least not for builds I tried. Worth submitting a bug report...
It is broken for build from October. Hmm. I can only limit the deletion to build older than few weeks.
Miroslav
On Friday, March 8, 2019 10:21:06 AM CET Miroslav Suchý wrote:
Dne 08. 03. 19 v 9:21 Pavel Raiskup napsal(a):
Will the limit for command-line lenght suffice (execve)? :-)
It worked for 'du' - yes, it will be sufficient.
In the 'rm -rf' is one star sign more...
It is broken for build from October. Hmm. I can only limit the deletion to build older than few weeks.
+1, sounds good. It can live in cron I guess..
Pavel
For the record - I executed:
# cat /tmp/p set -e cd /var/lib/copr/public_html/results for i in */*/srpm-builds/; do pushd "$i" >/dev/null echo "Purging $PWD" find ./ -mtime +14 -type f| xargs --no-run-if-empty rm cd .. find srpm-builds/ -empty -type d |xargs --no-run-if-empty rmdir popd >/dev/null done
Free disk space went up from 225G to 909G .
Miroslav
copr-devel@lists.fedorahosted.org