#977 Delete build action had no effect, and the build stayed in repo
Closed: Fixed 3 years ago by praiskup. Opened 4 years ago by iucar.

This is ok:

$ repoclosure --check 'copr:copr.fedorainfracloud.org:iucar:cran' --refresh --newest
package: R-CRAN-Rmpi-0.6.9-1.fc30.x86_64 from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    libmpi.so.40()(64bit)
Error: Repoclosure ended with unresolved dependencies.

But the following is not, because I've bumped the release number of these packages (except for the one above), rebuilt them and removed the old builds:

$ repoclosure --check 'copr:copr.fedorainfracloud.org:iucar:cran' --refresh
package: R-CRAN-GetoptLong-0.1.7-1.fc30.noarch from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    perl(Getopt-Long)
package: R-CRAN-Rmpi-0.6.9-1.fc30.x86_64 from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    libmpi.so.40()(64bit)
package: R-CRAN-camtrapR-1.1-1.fc30.noarch from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    perl(Image-ExifTool)
package: R-CRAN-chebpol-2.1-1.fc30.x86_64 from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    fttw
package: R-CRAN-chebpol-2.1-1.fc30.x86_64 from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    fttw
package: R-CRAN-excerptr-2.0.0-1.fc30.noarch from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    /usr/bin/python3"
    /usr/bin/dash
package: R-CRAN-exifr-0.3.1-1.fc30.src from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    perl(Image-ExifTool)
package: R-CRAN-facerec-0.1.0-1.fc30.src from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    R-CRAN-magrittr >= 1.5.0
package: R-CRAN-funr-0.3.2-1.fc30.noarch from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    /usr/bin/lr
package: R-CRAN-getopt-1.20.3-1.fc30.noarch from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    /path/to/Rscript
package: R-CRAN-googleComputeEngineR-0.3.0-1.fc30.noarch from copr:copr.fedorainfracloud.org:iucar:cran
  unresolved deps:
    /usr/bin/with-contenv
Error: Repoclosure ended with unresolved dependencies.

I tried to regenerate the repos with no luck.


There seems to be whole bunch of issues:
- /usr/bin/python3" (the quote sign)
- /usr/bin/dash (doesn't exist, there's only /bin/dash)
- libmpi.so.40()(64bit) (dunno, what package should provide this?)

This seems like you need some package rebuilds, but I fail to interpret the guilty packages. How can I help?

  • perl(Getopt-Long) doesn't seem to be in fedora/updates either

I mean, there were a bunch of issues. I already fixed them (quote sign, dash, Perl packages with "::" instead of "-", etc.), rebuilt the packages (with a bump in the spec) and even removed the old ones. But still repoclosure shows these errors, and it shouldn't because the builds with the issues are no longer in the repos.

Aha, thanks, I see this in log:

[2019-08-30 08:09:27,894][  INFO][backend.actions][actions.py:run:448] Executing: <Action: {'action_type': 0, 'created_on': 1567152562, 'data': '{"ownername": "iucar", "projectname": "cran", "chroot_builddirs": {"srpm-builds": "01018236", "fedora-31-x86_64": "01018236-R-CRAN-GetoptLong", "fedora-rawhide-x86_64": "01018236-R-CRAN-GetoptLong", "fedora-30-x86_64": "01018236-R-CRAN-GetoptLong"}, "project_dirname": "cran"}', 'ended_on': None, 'id': 352566, 'message': None, 'new_value': None, 'object_id': 1018236, 'object_type': 'build', 'old_value': None, 'result': 0}>
[2019-08-30 08:09:27,895][  INFO][backend.actions][actions.py:handle_delete_build:229] Action delete build.
[2019-08-30 08:09:27,895][  INFO][backend.actions][actions.py:handle_delete_build:237] Going to delete: {'srpm-builds': '01018236', 'fedora-31-x86_64': '01018236-R-CRAN-GetoptLong', 'fedora-rawhide-x86_64': '01018236-R-CRAN-GetoptLong', 'fedora-30-x86_64': '01018236-R-CRAN-GetoptLong'}

But the directory still exists on backend:
https://copr-be.cloud.fedoraproject.org/results/iucar/cran/fedora-rawhide-x86_64/01018236-R-CRAN-GetoptLong/

Metadata Update from @praiskup:
- Issue tagged with: bug

4 years ago

Same as:

[2019-08-31 17:42:35,721][  INFO][backend.actions][actions.py:run:448] Executing: <Action: {'action_type': 0, 'created_on': 1567273350, 'data': '{"ownername": "iucar", "projectname": "cran", "chroot_builddirs": {"srpm-builds": "01025848", "fedora-rawhide-x86_64": "01025848-R-CRAN-GetoptLong", "fedora-30-x86_64": "01025848-R-CRAN-GetoptLong", "fedora-31-x86_64": "01025848-R-CRAN-GetoptLong"}, "project_dirname": "cran"}', 'ended_on': None, 'id': 352946, 'message': None, 'new_value': None, 'object_id': 1025848, 'object_type': 'build', 'old_value': None, 'result': 0}>
[2019-08-31 17:42:35,721][  INFO][backend.actions][actions.py:handle_delete_build:229] Action delete build.
[2019-08-31 17:42:35,722][  INFO][backend.actions][actions.py:handle_delete_build:237] Going to delete: {'srpm-builds': '01025848', 'fedora-rawhide-x86_64': '01025848-R-CRAN-GetoptLong', 'fedora-30-x86_64': '01025848-R-CRAN-GetoptLong', 'fedora-31-x86_64': '01025848-R-CRAN-GetoptLong'}
[2019-08-31 17:42:35,776][WARNING][backend.actions][actions.py:handle_delete_build:263] createrepo takes too long in cran, skipped

Yeap, there are like ~170 duplications for ~150 packages (some of them several times).

This is ugly, we need to debug this somehow.

As a remedy, prunerepo script should clean up all the builds except for the latest one with the latest ENVRA - but only after 14 days. If you want, I can run the script manually for you with lower, say --days 2 argument (so duplicates older than 2 days will be removed).

If you don't need those for debugging, that's fine for me, thanks.

The script is running now, it takes some time. F30 is already pruned.

The cause of this issue should be solved by #1007 hopefully, all the actions will be handled independently from backend daemon - and it should be more resilient against random failures.

I believe this is a long time fixed, and build removals just work. Thank you for filling the issue.

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

3 years ago

Login to comment on this ticket.

Metadata