#2345 Do not store DNF logs into result directories for successful builds
Closed: MIGRATED 2 years ago by nikromen. Opened 3 years ago by praiskup.

The log files like dnf.librepo.log are often very useful for build failure debugging. For successful builds these files are very rarely useful, and they probably waste a large chunk of the inode count.

We should also compress these files:
- teach Mock to do this?
- create a script to traverse the directories ...


There is backend/run/copr-compress-live-logs but I am not sure if it is being used.
Or we can possibly edit BuildBackgroundWorker._compress_live_logs to compress it.

But I guess it makes the most sense to do it in Mock?

I meant that we could tar and compress the whole chroot_scan directory structure.

copr-compress-live-logs is a probably a single-purpose script, from the commit message:

I'm adding single-shot script which will traverse the build directory and (a)
remove the stub logs we created before, and (b) compress the non-stub
uncompressed builder-live.log files (from the times we did not compress at
all).

I meant that we could tar and compress the whole chroot_scan directory structure.

In that case, I think we should do it in BuildBackgroundWorker._compress_live_logs or in a separate function, that would be called from the same place.

Metadata Update from @nikromen:
- Issue close_status updated to: MIGRATED
- Issue status updated to: Closed (was: Open)

2 years ago

Log in to comment on this ticket.

Metadata