On Wed, 13 Feb 2019, Miro Hrončok wrote:

Hi, I'm writing to devel to see if others would find this useful or not, before I dig into finding whether it is mock or rpkg to bother about this :D

I build packages with `fedpkg mockbuild -N`. i iterate with spec changes and try to build the package until it passes. I use the -N (reuse the same mock root) option to make it quicker.

Problem: The logs in results_.../ are appended with each build, hard to grep or "eyegrep" for stuff I'm looking for.

Workaround: Remove (or move) the logs before each `fedpkg mockbuild -N` run.

Request for enhancement: Automatic logrotate for those logs:

I'd use `fedpkg mockbuild -N --logrotate` and the existing logs would be renamed to have a number in their name before the next log files are created. I wouldn't even need garbage collection for them, yet optionaly, it could remove older logs (if you have more than N).

Sounds like a good idea to me, even for just the general 'fedpkg mockbuild' case. I usually have a habit of 'rm -rf'ing the results directory so I get a fresh set of logs each time.

Scott
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to