[Bug 232350] ports-mgmt/pkg: periodic pkg-checksum and pkg-backup interfere with 'overnight' port builds

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 8 20:31:56 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232350

Ian Lepore <ian at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at FreeBSD.org

--- Comment #3 from Ian Lepore <ian at FreeBSD.org> ---
IMO, the fix for this should strive to reduce failures due to concurrent access
by the nightly periodic jobs to nearly zero, then ensure that if there is a
failure, it is in the periodic jobs, not in the ports build process.

A way to accomplish that would be to change the behavior of the periodic jobs
to be something like:

  set a retry counter and retry limit
  do
    copy all files needed by the periodic job to a dir in /tmp
    run the statistics/validation/whatever on the temp files
  while validation is not-successful and retry count < limit  
  clean up temp files

With that logic it's possible for the validation to fail if the copy happened
to grab a file that was being updated at the instant of the copy, but a retry
loop will reduce the chances of that happening again to almost nothing. Even if
it does fail, what fails is the lower-priorty periodic work, not the expensive
and more-important ports building work.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-pkg mailing list