<div dir="ltr"><div>On Mon, Jan 16, 2017 at 12:18 PM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br></div><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
My cdash database is getting quite big (43 GB)... presumably because of old submissions staying around forever? I tried 'Maintenance > Cleanup Database', but that didn't save anything. In the project settings my 'AutoRemove Timeframe' is 60 days.<br>
<br>
What can I do to prune things?<br></blockquote><div><br></div><div><br></div>Hi Sean,<div><br></div><div>Do you know if old builds are being deleted or not? You can check with the following SQL query:</div><div><br></div><div><font face="monospace, monospace">select starttime from build order by starttime limit 1;</font><br></div><div><br></div><div>If not, you can run this deletion process manually from a shell on your server.</div><div><br></div><div><font face="monospace, monospace">cd /path/to/CDash</font></div><div><font face="monospace, monospace">php scripts/autoRemoveBuilds.php <project-name></font></div><div>(this will probably take a long time to run if you have old builds to prune)<br></div><div><br></div><div>The removal of old builds should be happening automatically when the first build of the day is submitted. CDash uses cURL to connect to itself and start this process. The relevant code is here:</div><div><a href="https://github.com/Kitware/CDash/blob/master/include/do_submit.php#L115-L120">https://github.com/Kitware/CDash/blob/master/include/do_submit.php#L115-L120</a><br></div><div><br></div><div>One possible solution is setting <font face="monospace, monospace">$CDASH_BASE_URL</font> in your config.local.php.</div><div><br></div><div>HTH!</div></div></div></div></div>