Bug 12745

Summary: [yocto-autobuilder-helper]: config.json property name expected enclosed double quotes
Product: [Infrastructure] AutoBuilder Reporter: Aaron Chan <aaron.chun.yew.chan>
Component: autobuilderAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact: Aaron Chan <aaron.chun.yew.chan>
Severity: major    
Priority: Undecided CC: apoorv.sangal, bluelightning, infras.ab.watcher, Infras.watcher, pidge, ross.burton
Version: 5.99   
Target Milestone: ---   
Hardware: x86   
OS: x86_64   
Whiteboard:
OS type for building Yocto: CentOS Type of Regression: ---
Verified: Documentation change: Don't know
Deadline: 2018-05-18   

Description Aaron Chan 2018-05-10 23:28:28 UTC
http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder-helper/commit/?id=5a74feb9c56e70d62dbe76b171578e13117418da

Based on upstream commits: 5a74feb9c56e70d62dbe76b171578e13117418da

All Buildbot workers found to be failed at steps

+ Unpack shared repositories
+ run-config

Traceback (most recent call last):
  File "/home/ab/yocto-worker/nightly-oe-selftest/yocto-autobuilder-helper/scripts/shared-repo-unpack", line 36, in <module>
    ourconfig = utils.loadconfig(__file__)
  File "/home/ab/yocto-worker/nightly-oe-selftest/yocto-autobuilder-helper/scripts/utils.py", line 79, in loadconfig
    ourconfig = json.load(f)
  File "/usr/lib/python3.5/json/__init__.py", line 268, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.5/json/decoder.py", line 355, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 501 column 13 (char 22321)

reverting the back ported changes and worked with http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder-helper/commit/?id=8c7892e3426e10768188af027f38525d0b414ec2
Comment 1 Ross Burton 2018-05-11 05:46:58 UTC
Fixed, and I also added a commit hook to validate the JSON...