#619 prunerepo does not prune src.rpm from failed builds
Closed: Fixed 4 years ago by frostyx. Opened 5 years ago by msuchy.

Originaly, failed builds contained only logs, so it was ok to skip them. However, nowadays it contains src.rpm and eg. kicad has 810 MB. It would be nice to wipe all but logs from old failed builds.
For example see
/var/lib/copr/public_html/results/@kicad/kicad/fedora-rawhide-x86_64/00819236-kicad
It is 808M and is from November 2018


This has been caused by 4c5a892
But we cannot simply revert it. Because we need to address when

1.rpm,1,src.rpm (one month old)
2.src.rpm (3 week old)
3.src.rpm (1 week old)

after revert prunerepo would keep 3.src.rpm and 1.rpm which is really incorrect.

Notes for myself - we can modify

rel_rpms_paths = [relpath.strip('"') for relpath in stdout if not is_srpm(relpath)]

to

rel_rpms_paths = [relpath.strip('"') for relpath in stdout if not is_srpm(relpath) and is_rpm_that_dir(relpath)]

or have

rel_rpms_paths = [relpath.strip('"') for relpath in stdout]

and apply dirname on each item and remove srpm files which has more than one unique dirname.

Metadata Update from @praiskup:
- Issue assigned to frostyx

5 years ago

Per discussion, prunerepo would be nice to have --dry-run option.

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

4 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #679 Closed 5 years ago