#623 Leftovers when you de-select repository
Closed: Fixed 4 years ago by msuchy. Opened 5 years ago by msuchy.

Reproducer:

1) create a new project and select fedora-28-i386 and fedora-28-x86_64
2) build package
3) in project setting un-tick fedora-28-i386

fedora-28-i386 will stay forever on backend.

We should either remove it immediately (hmm, I do not like this one) or remove it on next prunerepo run or mark it as outdated and expunge it once the outdated period times up (I like this one) or we can move it to /repositories/.


Metadata Update from @msuchy:
- Issue tagged with: bug, meeting

5 years ago

Well, wouldn't the fedora-28-i386 be removed anyways once we remove also fedora-28-x86_64 (the machinery we implemented now which removes way too old chroots nobody is interested in).

Metadata Update from @praiskup:
- Issue untagged with: meeting

5 years ago

mark it as outdated and expunge it once the outdated period times up (I like this one) or we can move it to /repositories/.

IMHO this won't be possible to do because when we unselect a chroot in project settings, we don't set any 'active' attribute to False, we just remove the row from the database (from the copr_chroot table). Therefore we have no way to set the delete_after attributes ... or even print a list of unselected chroots for that matter. That could be done only by going through all builds and looking on their chroots.

Is this supposed to be resolved by the script copr_print_results_to_delete.py?

The actual issue causing the "Leftovers when you de-select repository" is fixed, so we maybe can close this issue.

To remove those leftovers, we need to run copr_print_results_to_delete.py and remove what it finds, yes.

This is resolved now.

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

4 years ago

Login to comment on this ticket.

Metadata