#427: Purge unneeded files in autotest results dir
------------------------+--------------------------
Reporter: kparal | Owner:
Type: task | Status: new
Priority: minor | Milestone: Finger Food
Component: production | Resolution:
Keywords: | Blocked By:
Blocking: |
------------------------+--------------------------
Description changed by kparal:
Old description:
Currently we have a script that periodically traverses through
autotest
results dir and compresses too large files. Also we use tmpwatch to
remove too old results. But we still sometimes have problems with disk
space and number of inodes on our servers. Autotest stores large number
of files in each result directory. By cleaning those we don't want we can
save resources, speed up execution of maintenance scripts and potential
debugging (like grepping through results).
Let's create a script that would traverse the results directory
periodically and remove unneeded files. It would also compress large
files, so it would call or merge the existing script.
If we look into an example results dir:
http://autoqa-stg.fedoraproject.org/results/100310-autotest/qa07.qa/
I believe we need to keep:
{{{
/control
/debug/*.DEBUG
/host_keyvals
/keyval
/rpmguard/debug/*.DEBUG ("rpmguard" is a dynamic test name here)
/rpmguard/keyval
/rpmguard/results
/rpmguard/status
/status.log
/sysinfo/installed_packages
/sysinfo/uname
}}}
The rest of it can be deleted.
New description:
Currently we have a script that periodically traverses through autotest
results dir and compresses too large files. Also we use tmpwatch to remove
too old results. But we still sometimes have problems with disk space and
number of inodes on our servers. Autotest stores large number of files in
each result directory. By cleaning those we don't want we can save
resources, speed up execution of maintenance scripts and potential
debugging (like grepping through results).
Let's create a script that would traverse the results directory
periodically and remove unneeded files. It would also compress large
files, so it would call or merge the existing script.
If we look into an example results dir:
http://autoqa-stg.fedoraproject.org/results/100310-autotest/qa07.qa/
I believe we need to keep:
{{{
/control
/debug
/host_keyvals
/keyval
/<test_name>/debug/*.DEBUG
/<test_name>/keyval
/<test_name>/results
/<test_name>/status
/status.log
/sysinfo/installed_packages
/sysinfo/uname
}}}
The rest of it can be deleted.
--
--
Ticket URL: <
https://fedorahosted.org/autoqa/ticket/427#comment:1>
AutoQA <
http://autoqa.fedorahosted.org>
Automated QA project