Bug 14921

Summary: devtool failure: No such file or directory: '/tmp/devtoolqambdi_6eh/singletask.lock'
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alexandre Belloni <alexandre.belloni>
Component: devtools / tool chainAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandre.belloni, luca.ceresoli, meta.mr.watcher, meta.watcher, randy.macleod
Version: unspecified   
Target Milestone: 5.0 M3   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2022-09-29 01:37:10 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/153/steps/14/logs/stdio

2022-09-21 13:57:16,346 - oe-selftest - INFO - devtool.DevtoolExtractTests.test_devtool_build_image (subunit.RemotedTestCase)
2022-09-21 13:57:16,347 - oe-selftest - INFO -  ... FAIL

[...]

ERROR: mdadm-4.2-r0 do_unpack: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:create_source_date_epoch_stamp(d)
     0003:
File: '/tmp/devtoolqaxurh6fwd/core-copy/meta/classes-global/base.bbclass', lineno: 219, function: create_source_date_epoch_stamp
     0215:addtask do_deploy_source_date_epoch before do_configure after do_patch
     0216:
     0217:python create_source_date_epoch_stamp() {
     0218:    # Version: 1
 *** 0219:    source_date_epoch = oe.reproducible.get_source_date_epoch(d, d.getVar('S'))
     0220:    oe.reproducible.epochfile_write(source_date_epoch, d.getVar('SDE_FILE'), d)
     0221:}
     0222:do_unpack[postfuncs] += "create_source_date_epoch_stamp"
     0223:
File: '/tmp/devtoolqaxurh6fwd/core-copy/meta/lib/oe/reproducible.py', lineno: 157, function: get_source_date_epoch
     0153:
     0154:def get_source_date_epoch(d, sourcedir):
     0155:    return (
     0156:        get_source_date_epoch_from_git(d, sourcedir) or
 *** 0157:        get_source_date_epoch_from_youngest_file(d, sourcedir) or
     0158:        fixed_source_date_epoch(d)       # Last resort
     0159:    )
     0160:
     0161:def epochfile_read(epochfile, d):
File: '/tmp/devtoolqaxurh6fwd/core-copy/meta/lib/oe/reproducible.py', lineno: 135, function: get_source_date_epoch_from_youngest_file
     0131:
     0132:        for fname in files:
     0133:            filename = os.path.join(root, fname)
     0134:            try:
 *** 0135:                mtime = int(os.lstat(filename).st_mtime)
     0136:            except ValueError:
     0137:                mtime = 0
     0138:            if not source_date_epoch or mtime > source_date_epoch:
     0139:                source_date_epoch = mtime
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/devtoolqambdi_6eh/singletask.lock'
Comment 1 Luca Ceresoli 2022-10-04 21:55:13 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/217/steps/14/logs/stdio

oe-selftest-armhost on ubuntu2204-arm-1
Comment 2 Alexandre Belloni 2022-11-22 15:14:42 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/4420/steps/15/logs/stdio

oe-selftest-centos stream8-ty-1
Comment 3 Alexandre Belloni 2022-12-08 10:43:19 UTC
https://autobuilder.yoctoproject.org/typhoon/#builders/127/builds/559/steps/14/logs/stdio
oe-selftest-armhost ubuntu2204-arm-1
Comment 4 Alexandre Belloni 2023-01-11 16:06:37 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/697/steps/14/logs/stdio
oe-selftest-armhost ubuntu2204-arm-1