Bug 14055

Summary: [QA 3.2 M3 RC1] failure in oe-core manual test: test_dependency_explorer_is_launched
Product: [QA/Testing] Manual Testing Reporter: Sangeeta Jain <sangeeta.jain>
Component: manual-testingAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact: Sangeeta Jain <sangeeta.jain>
Severity: normal    
Priority: Medium+ CC: akuster808, anuj.mittal, randy.macleod, richard.purdie, ross.burton, sangeeta.jain, steve
Version: 3.2   
Target Milestone: 3.2 M4   
Hardware: NUC   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Sangeeta Jain 2020-09-22 01:38:21 UTC
Following failure is observed in OE-core manual testcase.

Test steps:

1.	Clone poky (commit id: c6bc20857cd1bdfd25dfc50e413be84d1d12b189)
2.	cd poky 
3.	source oe-init-build-env
4.	(prerequisite: machine is executing an X11 server ) run command “bitbake -u taskexp -g core-image-full-cmdline” 

Expected output: dependency explorer is opened, and file dependencies are listed

Actual output:

Traceback (most recent call last):
  File ../poky/bitbake/bin/bitbake", line 35, in <module>
    sys.exit(bitbake_main(BitBakeConfigParameters(sys.argv),
  File ../poky/bitbake/lib/bb/main.py", line 382, in bitbake_main
    return ui_module.main(server_connection.connection, server_connection.events,
  File ../poky/bitbake/lib/bb/ui/taskexp.py", line 221, in main
    dep = DepExplorer()
  File ../poky/bitbake/lib/bb/ui/taskexp.py", line 127, in __init__
    self.revdep_treeview = PackageReverseDepView(self.depends_model, "Dependent Tasks")
  File ../poky/bitbake/lib/bb/ui/taskexp.py", line 61, in __init__
    self.sort_model = self.filter_model.sort_new_with_model()
AttributeError: 'TreeModelFilter' object has no attribute 'sort_new_with_model'

Gcc version: 9.3.0

QA analysis: Wrong version of x11-libs/gtk+ is picked in build.
Comment 1 Ross Burton 2020-09-22 03:24:00 UTC
What host distro was this on?
Comment 2 Sangeeta Jain 2020-09-22 17:07:41 UTC
(In reply to comment #1)
> What host distro was this on?

ubuntu 20.04
Comment 3 Richard Purdie 2020-09-23 10:26:56 UTC
This worked ok on my ubuntu 18.04 system so it looks like it may be changes in 20.04?
Comment 4 Ross Burton 2020-09-24 07:26:41 UTC
Patch on the list. 

Would be much appreciated if QA could validate that it solves the problem, as I don't have a Ubuntu 20.04 to hand.
Comment 5 Randy MacLeod 2020-09-24 09:51:19 UTC
I was able to reproduce the problem on the second attempt. The first attempt timed out after 60 seconds:

$ bitbake -u taskexp -g core-image-full-cmdline
Timeout while waiting for a reply from the bitbake server (60s)


I applied your patch on;
$ git log --oneline -3
e163dfecb3 (HEAD -> ross-taskexp) taskexp: update for GTK API changes
c6bc20857c build-appliance-image: Update to master head revision
e9f2c01157 ref-manual: examples: libxpm: add relative path to .inc

and the taskexp feature works now on my ubu-20.04 laptop.
Comment 6 Sangeeta Jain 2020-09-24 21:21:54 UTC
verified by applying following patch:

https://lists.openembedded.org/g/openembedded-core/message/142756

on following commits:

yocto-3.2_M3.rc1- c6bc20857c 
yocto-3.2_M3.rc2 - 0a243cd212

taskexp feature works now works on ubuntu-20.04 .
Comment 7 Ross Burton 2020-09-25 01:19:35 UTC
Merged in bitbake ac7d1114a7e99e6efd6a37b03d170faf678513fb.
Comment 8 Sangeeta Jain 2020-12-01 08:16:21 UTC
Same issue is observed in yocto-3.1.4.rc1. 
Applying same patch works  Patch needs to be backported to dunfell as well.
Comment 9 Steve Sakoman 2020-12-01 22:25:46 UTC
Patched merged in dunfell 0d4f80535e7ebb799a70761e83a40905f2c14535