Bug 11948

Summary: devtool upgrade walks the file tree and execs a git add for each file
Product: [Build System, Metadata & Runtime] OE-Core Reporter: brian avery <brian.avery>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: alex.kanavin, meta.mr.watcher, meta.watcher
Version: 2.4   
Target Milestone: 2.5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description brian avery 2017-08-18 01:01:17 UTC
In a complex upgrade like qemu 2.8.1.1 -> 2.10.o-rc2, this can take ~ 10 minutes.  Right now, there is no user feedback that progress is being made unless devtool is run with -d. Instead, it looks like devtool upgrade has hung.

We should probably do a progress bar regardless since even if we speed it up a huge (webkit?) upgrade may still be slow. We may also want to look at other ways to do this like using the python git library instead of system calls, or doing some batching of our own, ...
The "culprit" is in scripts/lib/devtool/upgrade.py:
        (stdout,_) = __run('git ls-files --modified --others --exclude-standard')   
        for f in stdout.splitlines():                                                                                                
           __run('git add "%s"' % f)
Comment 1 Alexander Kanavin 2017-10-09 11:04:39 UTC
*** Bug 12198 has been marked as a duplicate of this bug. ***