Re: RFE: logrotate for fedpkg mockbuild -N

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux