Bug 14952 - Clobber build dir failure
Summary: Clobber build dir failure
Status: RESOLVED FIXED
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 4.3
Assignee: Trevor Gamblin
QA Contact:
URL:
Whiteboard: AB-INT AB-HAVE-PLAN
Depends on:
Blocks:
 
Reported: 2022-10-27 19:26 UTC by Alexandre Belloni
Modified: 2023-06-15 14:50 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.