Bug 12308

Summary: Need to set oe-core branch in branch population?
Product: [Infrastructure] AutoBuilder Reporter: Leonardo Sandoval Gonzalez <leonardo.sandoval.gonzalez>
Component: autobuilderAssignee: Joshua Lock <joshuagloe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, infras.ab.watcher, Infras.watcher, pidge, ross.burton
Version: 2.5   
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 Leonardo Sandoval Gonzalez 2017-11-06 16:28:42 UTC
The following issue is present:

--------
Detailed log of last build step: https://autobuilder.yocto.io/builders/nightly-oecore/builds/538/steps/BuildImages/logs/stdio
Last 60 lines of "BuildImages.stdio" Error log:

ERROR: Unable to parse /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oecore/build/bitbake/lib/bb/data_smart.py Detailed log of last build step: https://autobuilder.yocto.io/builders/nightly-oecore/builds/538/steps/Running Sanity Tests/logs/stdio
Last 60 lines of "Running Sanity Tests.stdio" Error log:

ERROR: Unable to parse /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oecore/build/bitbake/lib/bb/data_smart.py Detailed log of last build step: https://autobuilder.yocto.io/builders/nightly-oecore/builds/538/steps/Building Toolchain Images/logs/stdio
Last 60 lines of "Building Toolchain Images.stdio" Error log:

ERROR: Unable to parse /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oecore/build/bitbake/lib/bb/data_smart.py Detailed log of last build step: https://autobuilder.yocto.io/builders/nightly-oecore/builds/538/steps/Running SDK Sanity Tests/logs/stdio
Last 60 lines of "Running SDK Sanity Tests.stdio" Error log:

ERROR: Unable to parse /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oecore/build/bitbake/lib/bb/data_smart.py Detailed log of last build step: https://autobuilder.yocto.io/builders/nightly-oecore/builds/538/steps/Building Toolchain Images_1/logs/stdio
Last 60 lines of "Building Toolchain Images_1.stdio" Error log:

ERROR: Unable to parse /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oecore/build/bitbake/lib/bb/data_smart.py Detailed log of last build step: https://autobuilder.yocto.io/builders/nightly-oecore/builds/538/steps/BuildImages_1/logs/stdio
Last 60 lines of "BuildImages_1.stdio" Error log:

ERROR: Unable to parse /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oecore/build/bitbake/lib/bb/data_smart.py
--------------


Going into the AB log, this is the problem:

-----
### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
ERROR: Unable to parse /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oecore/build/bitbake/lib/bb/data_smart.py
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oecore/build/bitbake/lib/bb/data_smart.py", line 400, in DataSmart.expandWithRefs(s="${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}:${HOSTTOOLS_DIR}", varname='PATH[:=]'):
                 except Exception as exc:
    >                raise ExpansionError(varname, s, exc) from exc
     
bb.data_smart.ExpansionError: Failure expanding variable PATH[:=], expression was ${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}:${HOSTTOOLS_DIR} which triggered exception TypeError: getVar() missing 1 required positional argument: 'expand'

program finished with exit code 1
elapsedTime=0.858745
-----

AB build info:

-----
Build status: FAILURE Build worker for this Build: centos7.yocto.io
Complete logs for all build steps: https://autobuilder.yocto.io/builders/nightly-oecore/builds/538
Build Reason: Triggerable(trigger_main-build_nowait)
Build Properties:
• Contents of bblayers.conf (Note. LCONF_VERSION will not show up correctly)
LCONF_VERSION =
BBPATH = "${TOPDIR}"
BBFILES ?=""
BBLAYERS &#43;= " \
/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oecore/build/meta \
"

• BuildImages : -c populate_sdk_ext core-image-minimal
• DEST : /srv/autobuilder/autobuilder.yoctoproject.org/pub/nightly/20171105-1
• DISTRO : oecore
• Contents of auto.conf (local.conf for autobuilders)
INHERIT &#43;= "report-error"
PACKAGE_CLASSES = "package_rpm package_deb package_ipk"
BB_NUMBER_THREADS = "24"
PARALLEL_MAKE = "-j 28"
SDKMACHINE ?= "x86_64"
BB_TASK_NICE_LEVEL = "5"
BB_TASK_NICE_LEVEL_task-testimage = "0"
BB_TASK_IONICE_LEVEL = "2.7"
BB_TASK_IONICE_LEVEL_task-testimage = "2.1"
DL_DIR = "/srv/autobuilder/autobuilder.yoctoproject.org/current_sources"
SSTATE_DIR ?= "/srv/autobuilder/autobuilder.yoctoproject.org/pub/sstate/"
MACHINE = "qemuarm"
PREMIRRORS = ""
BB_GENERATE_MIRROR_TARBALLS = "1"
INHERIT &#43;= "uninative"
require conf/distro/include/yocto-uninative.inc
PRSERV_HOST = "localhost:0"
ADTREPO = "http://adtrepo.yoctoproject.org//DISTRO_VERSION ??= nodistro.0"
QEMU_USE_KVM = "True"
SDK_EXT_TYPE = "minimal"
SDK_INCLUDE_TOOLCHAIN = "1"
SANITY_TESTED_DISTROS = ""
Comment 1 Paul Eggleton 2017-11-08 23:09:37 UTC
This is strange, it's almost as if the wrong bitbake version is being used here (one prior to when we made the expand option to getVar() optional).
Comment 2 Ross Burton 2017-11-09 16:04:32 UTC
Looking at the build log that's exactly what happened: oe-core master against bitbake 1.34.
Comment 3 Ross Burton 2017-11-09 16:05:13 UTC
*** Bug 12309 has been marked as a duplicate of this bug. ***
Comment 4 Ross Burton 2017-11-09 16:08:05 UTC
This is a bug in the autobuilder configuration.
Comment 5 Joshua Lock 2017-11-09 16:29:52 UTC
The cronjob triggering our idlebuild jobs on the weekend wasn't setting the branch_oecore property correctly. I've edited the cronjob, this should be fixed on the next run.