Bug 12975

Summary: 'bin/sh: 1: checkvnc:
Product: [Infrastructure] AutoBuilder Reporter: Armin Kuster <akuster>
Component: autobuilderAssignee: Armin Kuster <akuster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: infras.ab.watcher, Infras.watcher, pidge, richard.purdie
Version: unspecified   
Target Milestone: 2.7   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: Don't know

Description Armin Kuster 2018-11-01 14:29:28 UTC
build logs show this error
 'bin/sh: 1: checkvnc: not found'
Comment 1 Armin Kuster 2018-11-02 01:05:18 UTC
Step2b of nightly-oe-selftest
Comment 2 Armin Kuster 2018-11-02 01:54:15 UTC
This is confusing. The helper code has this:

   # Execute the sanity targets for this configuration
    sanitytargets = utils.getconfigvar("SANITYTARGETS", ourconfig, args.target, stepnum)
    if sanitytargets:
        utils.printheader("Step %s/%s: Running bitbake %s" % (stepnum, maxsteps, sanitytargets))
        bitbakecmd(args.builddir, "%s/checkvnc; DISPLAY=:1 bitbake %s" % (scriptsdir, sanitytargets), report, stepnum, 'c')

But I don't see any "Step" printout before the checkvnc. It happens before the code should be run.
Comment 3 Armin Kuster 2018-11-02 02:04:07 UTC
/scripts/run-config  is run twice. One is in "def create_builder_factory()" and the other is not.

The difference is the one in create_builder_factory() is passing ' "-b", util.Interpolate("%(prop:buildappsrcrev)s"),' .
Comment 4 Richard Purdie 2018-11-08 20:15:42 UTC
The problem is the other invocation:

config.json:                "EXTRACMDS" : ["checkvnc; DISPLAY=:1 oe-selftest --skip-tests distrodata.Distrodata.test_checkpkg"],

and the hard part is that we don't know scriptsdir here to be able to know where the script is...