Bug 13196

Summary: Send QA Email failed
Product: [QA/Testing] Build Testing Reporter: Amanda Brindle <amanda.r.brindle>
Component: generalAssignee: Scott Rifenbark <srifenbark>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: richard.purdie, srifenbark
Version: unspecified   
Target Milestone: 2.7 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: 16 April 2019: RESOLVED
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Done (doc changes complete)
Attachments:
Description Flags
log file none

Description Amanda Brindle 2019-02-22 18:48:25 UTC
Created attachment 4443 [details]
log file

Send QA Email fails when running resulttool


Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/a-quick/build/scripts/resulttool", line 93, in <module>
    sys.exit(main())
  File "/home/pokybuild/yocto-worker/a-quick/build/scripts/resulttool", line 87, in main
    ret = args.func(args, logger)
  File "/home/pokybuild/yocto-worker/a-quick/build/scripts/lib/resulttool/report.py", line 122, in report
    report.view_test_report(logger, args.source_dir, args.tag)
  File "/home/pokybuild/yocto-worker/a-quick/build/scripts/lib/resulttool/report.py", line 118, in view_test_report
    self.print_test_report('test_report_full_text.txt', test_count_reports)
  File "/home/pokybuild/yocto-worker/a-quick/build/scripts/lib/resulttool/report.py", line 69, in print_test_report
    from jinja2 import Environment, FileSystemLoader
ImportError: No module named 'jinja2'
Working off git://git.yoctoproject.org/poky:master
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/a-quick/yocto-autobuilder-helper/scripts/send-qa-email", line 56, in <module>
    report = subprocess.check_output([resulttool, "report", args.results_dir])
  File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 398, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/home/pokybuild/yocto-worker/a-quick/build/scripts/resulttool', 'report', '/srv/autobuilder/autobuilder.yoctoproject.org/pub/non-release/20190222-2/testresults']' returned non-zero exit status 1


https://autobuilder.yoctoproject.org/typhoon/#/builders/85/builds/254
Comment 1 Richard Purdie 2019-02-28 13:53:38 UTC
I've installed jinja2 on all the workers and emailed Scott about fixing the documentation for this. Assign to Scott for the docs part.
Comment 2 Scott Rifenbark 2019-03-01 23:14:58 UTC
Working on this... 

Thanks
Comment 3 Scott Rifenbark 2019-03-04 21:32:21 UTC
Hi, 

Please look at the following two sections for the changes.  Let me know if we are okay.

 * https://yoctoproject.org/docs/2.7/brief-yoctoprojectqs/brief-yoctoprojectqs.html#brief-build-system-packages

 * https://yoctoproject.org/docs/2.7/ref-manual/ref-manual.html#required-packages-for-the-build-host

Thanks,
Scott
Comment 4 Scott Rifenbark 2019-04-16 23:40:13 UTC
No feedback on this fix for over a month. I am marking as RESOLVED and setting the docs flag to "done."

Scott