Bug 14952

Summary: Clobber build dir failure
Product: [Infrastructure] AutoBuilder Reporter: Alexandre Belloni <alexandre.belloni>
Component: autobuilderAssignee: Trevor Gamblin <tgamblin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandre.belloni, infras.ab.watcher, Infras.watcher, pidge, randy.macleod, tgamblin
Version: unspecified   
Target Milestone: 4.3   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT AB-HAVE-PLAN
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2022-10-27 19:26:38 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/95/builds/3882/steps/17/logs/stdio

mv: cannot move '/home/pokybuild/yocto-worker/qemux86-64-ltp/' to '/home/pokybuild/git/trash/1665483347-9950/qemux86-64-ltp': No such file or directory
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder-helper/janitor/clobberdir", line 53, in <module>
    subprocess.check_call(['mv', x, trashdest])
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['mv', '/home/pokybuild/yocto-worker/qemux86-64-ltp/', '/home/pokybuild/git/trash/1665483347-9950']' returned non-zero exit status 1.


https://autobuilder.yoctoproject.org/typhoon/#builders/97/builds/5322/steps/1/logs/stdio

https://autobuilder.yoctoproject.org/typhoon/#builders/96/builds/3848/steps/1/logs/stdio
Comment 1 Randy MacLeod 2022-11-03 14:37:20 UTC
Add a condition to ignore things that are less than 60 seconds old to avoid contention.
Comment 2 Trevor Gamblin 2023-06-07 19:42:48 UTC
Patch submitted to only mv targets over 60 seconds old.
Comment 3 Trevor Gamblin 2023-06-13 17:06:38 UTC
Resubmitted after migrating the change to ab-janitor instead of clobberdir.
Comment 4 Trevor Gamblin 2023-06-15 13:52:50 UTC
https://git.yoctoproject.org/yocto-autobuilder-helper/commit/?id=1f059e36c0102161dfc551c5dd39d960726fe980

Will close once we're sure the change has helped.