Skip to contentSkip to conversation

toaster: resolve missing 'native[sdk]:' prefixes

PATCH In review David Reyna 2 participants 6 messages Mar 2, 2017 – Mar 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: resolve missing 'native[sdk]:' prefixes

From: David Reyna <[email protected]>

Some task events are missing the 'virtual:native[sdk]:' prefixes. The Toaster has code to help match missing prefixes, but needs additional help resolving between 'native:' and 'nativesdk:', by way of the '_package' event field.

[YOCTO #10849]

---
 bitbake/lib/bb/ui/buildinfohelper.py | 8 ++++++++
 1 file changed, 8 insertions(+)
bitbake/lib/bb/ui/buildinfohelper.py +8 -0
index 5ed150d..92d1a1c 100644
@@ -1258,6 +1258,14 @@ class BuildInfoHelper(object):
                 candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
                 if len(candidates) == 1:
                     identifier = candidates[0]
+                elif len(candidates) > 1 and hasattr(event,'_package'):
+                    if 'native-' in event._package:
+                        identifier = 'native:' + identifier
+                    if 'nativesdk-' in event._package:
+                        identifier = 'nativesdk:' + identifier
+                    candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
+                    if len(candidates) == 1:
+                        identifier = candidates[0]
 
         assert identifier in self.internal_state['taskdata']
         identifierlist = identifier.split(":")
Signature · 1 line
1.9.1
#1 lore raw

submitted to bitbakehttps://patchwork.openembedded.org/patch/137831/

-bavery
an intel employee

Quoted 45 lines · David Reyna

From: David Reyna <[email protected]>

Some task events are missing the 'virtual:native[sdk]:' prefixes. The Toaster has code to help match missing prefixes, but needs additional help resolving between 'native:' and 'nativesdk:', by way of the '_package' event field.

[YOCTO #10849]

---
 bitbake/lib/bb/ui/buildinfohelper.py | 8 ++++++++
 1 file changed, 8 insertions(+)
bitbake/lib/bb/ui/ renamed from bitbake/lib/bb/ui/buildinfohelper.py +0 -0

buildinfohelper.py
index 5ed150d..92d1a1c 100644

bitbake/lib/bb/ui/buildinfohelper.py +0 -0
@@ -1258,6 +1258,14 @@ class BuildInfoHelper(object):
                 candidates = [x for x in self.internal_state['taskdata'].keys()

if x.endswith(identifier)]
if len(candidates) == 1:
identifier = candidates[0]

bitbake/lib/bb/ui/buildinfohelper.py +6 -0
+                elif len(candidates) > 1 and hasattr(event,'_package'):
+                    if 'native-' in event._package:
+                        identifier = 'native:' + identifier
+                    if 'nativesdk-' in event._package:
+                        identifier = 'nativesdk:' + identifier
+                    candidates = [x for x in

self.internal_state['taskdata'].keys() if x.endswith(identifier)]

bitbake/lib/bb/ui/buildinfohelper.py +2 -1
+                    if len(candidates) == 1:
+                        identifier = candidates[0]
 
         assert identifier in self.internal_state['taskdata']
         identifierlist = identifier.split(":")
--

1.9.1

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

#2 lore raw

Thanks! So you updated process seems to work?

- David

From: Brian Avery [mailto:[email protected]]
Sent: Monday, March 06, 2017 2:05 PM
To: Reyna, David
Cc: [email protected]
Subject: Re: [Toaster] [PATCH] toaster: resolve missing 'native[sdk]:' prefixes

submitted to bitbake

https://patchwork.openembedded.org/patch/137831/
-bavery
an intel employee

On Wed, Mar 1, 2017 at 4:24 PM, David Reyna <[email protected]<mailto:[email protected]>> wrote:
From: David Reyna <[email protected]<mailto:[email protected]>>

Some task events are missing the 'virtual:native[sdk]:' prefixes. The Toaster has code to help match missing prefixes, but needs additional help resolving between 'native:' and 'nativesdk:', by way of the '_package' event field.

[YOCTO #10849]

---
 bitbake/lib/bb/ui/buildinfohelper.py | 8 ++++++++
 1 file changed, 8 insertions(+)
bitbake/lib/bb/ui/buildinfohelper.py +8 -0
index 5ed150d..92d1a1c 100644
@@ -1258,6 +1258,14 @@ class BuildInfoHelper(object):
                 candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
                 if len(candidates) == 1:
                     identifier = candidates[0]
+                elif len(candidates) > 1 and hasattr(event,'_package'):
+                    if 'native-' in event._package:
+                        identifier = 'native:' + identifier
+                    if 'nativesdk-' in event._package:
+                        identifier = 'nativesdk:' + identifier
+                    candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
+                    if len(candidates) == 1:
+                        identifier = candidates[0]
 
         assert identifier in self.internal_state['taskdata']
         identifierlist = identifier.split(":")

--
1.9.1

--
_______________________________________________
toaster mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/toaster

#3 lore raw

yes. I fixed some of the stuff on the Contribute to Toaster page. Seemed to work :).
-brian
an intel employee

Quoted 78 lines · David

Thanks! So you updated process seems to work?

- David

*From:* Brian Avery [mailto:[email protected]]
*Sent:* Monday, March 06, 2017 2:05 PM
*To:* Reyna, David
*Cc:* [email protected]
*Subject:* Re: [Toaster] [PATCH] toaster: resolve missing 'native[sdk]:' prefixes

submitted to bitbake

https://patchwork.openembedded.org/patch/137831/

-bavery

an intel employee

On Wed, Mar 1, 2017 at 4:24 PM, David Reyna <[email protected]> wrote:

From: David Reyna <[email protected]>

Some task events are missing the 'virtual:native[sdk]:' prefixes. The Toaster has code to help match missing prefixes, but needs additional help resolving between 'native:' and 'nativesdk:', by way of the '_package' event field.

[YOCTO #10849]

---
 bitbake/lib/bb/ui/buildinfohelper.py | 8 ++++++++
 1 file changed, 8 insertions(+)
bitbake/lib/bb/ui/ renamed from bitbake/lib/bb/ui/buildinfohelper.py +0 -0

buildinfohelper.py
index 5ed150d..92d1a1c 100644

bitbake/lib/bb/ui/buildinfohelper.py +0 -0
@@ -1258,6 +1258,14 @@ class BuildInfoHelper(object):
                 candidates = [x for x in self.internal_state['taskdata'].keys()

if x.endswith(identifier)]
if len(candidates) == 1:
identifier = candidates[0]

bitbake/lib/bb/ui/buildinfohelper.py +6 -0
+                elif len(candidates) > 1 and hasattr(event,'_package'):
+                    if 'native-' in event._package:
+                        identifier = 'native:' + identifier
+                    if 'nativesdk-' in event._package:
+                        identifier = 'nativesdk:' + identifier
+                    candidates = [x for x in

self.internal_state['taskdata'].keys() if x.endswith(identifier)]

bitbake/lib/bb/ui/buildinfohelper.py +2 -1
+                    if len(candidates) == 1:
+                        identifier = candidates[0]
 
         assert identifier in self.internal_state['taskdata']
         identifierlist = identifier.split(":")
--

1.9.1

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

#4 lore raw
In reply to Brian Avery

Unfortunately, https://bugzilla.yoctoproject.org/show_bug.cgi?id=11132 is preventing a full end to end test, so we should reverify this bug fix once the above is fixed.
-bavery
an intel employee

Quoted 55 lines · Brian Avery

submitted to bitbakehttps://patchwork.openembedded.org/patch/137831/

-bavery
an intel employee

Quoted 45 lines · David Reyna

From: David Reyna <[email protected]>

Some task events are missing the 'virtual:native[sdk]:' prefixes. The Toaster has code to help match missing prefixes, but needs additional help resolving between 'native:' and 'nativesdk:', by way of the '_package' event field.

[YOCTO #10849]

---
 bitbake/lib/bb/ui/buildinfohelper.py | 8 ++++++++
 1 file changed, 8 insertions(+)
bitbake/lib/bb/ui/buildinfohelper.py +0 -0
index 5ed150d..92d1a1c 100644
@@ -1258,6 +1258,14 @@ class BuildInfoHelper(object):
                 candidates = [x for x in self.internal_state['taskdata'].keys()

if x.endswith(identifier)]
if len(candidates) == 1:
identifier = candidates[0]

bitbake/lib/bb/ui/buildinfohelper.py +6 -0
+                elif len(candidates) > 1 and hasattr(event,'_package'):
+                    if 'native-' in event._package:
+                        identifier = 'native:' + identifier
+                    if 'nativesdk-' in event._package:
+                        identifier = 'nativesdk:' + identifier
+                    candidates = [x for x in

self.internal_state['taskdata'].keys() if x.endswith(identifier)]

bitbake/lib/bb/ui/buildinfohelper.py +2 -1
+                    if len(candidates) == 1:
+                        identifier = candidates[0]
 
         assert identifier in self.internal_state['taskdata']
         identifierlist = identifier.split(":")
--

1.9.1

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

#5 lore raw

I have replicated this error with 10849 fix in my tree, so this is something new. I am working on it.

- David

From: Brian Avery [mailto:[email protected]]
Sent: Monday, March 06, 2017 2:07 PM
To: Reyna, David
Cc: [email protected]
Subject: Re: [Toaster] [PATCH] toaster: resolve missing 'native[sdk]:' prefixes

Unfortunately, https://bugzilla.yoctoproject.org/show_bug.cgi?id=11132 is preventing a full end to end test, so we should reverify this bug fix once the above is fixed. -bavery
an intel employee

On Mon, Mar 6, 2017 at 2:05 PM, Brian Avery <[email protected]<mailto:[email protected]>> wrote:

submitted to bitbake

https://patchwork.openembedded.org/patch/137831/
-bavery
an intel employee

On Wed, Mar 1, 2017 at 4:24 PM, David Reyna <[email protected]<mailto:[email protected]>> wrote:
From: David Reyna <[email protected]<mailto:[email protected]>>

Some task events are missing the 'virtual:native[sdk]:' prefixes. The Toaster has code to help match missing prefixes, but needs additional help resolving between 'native:' and 'nativesdk:', by way of the '_package' event field.

[YOCTO #10849]

---
 bitbake/lib/bb/ui/buildinfohelper.py | 8 ++++++++
 1 file changed, 8 insertions(+)
bitbake/lib/bb/ui/buildinfohelper.py +8 -0
index 5ed150d..92d1a1c 100644
@@ -1258,6 +1258,14 @@ class BuildInfoHelper(object):
                 candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
                 if len(candidates) == 1:
                     identifier = candidates[0]
+                elif len(candidates) > 1 and hasattr(event,'_package'):
+                    if 'native-' in event._package:
+                        identifier = 'native:' + identifier
+                    if 'nativesdk-' in event._package:
+                        identifier = 'nativesdk:' + identifier
+                    candidates = [x for x in self.internal_state['taskdata'].keys() if x.endswith(identifier)]
+                    if len(candidates) == 1:
+                        identifier = candidates[0]
 
         assert identifier in self.internal_state['taskdata']
         identifierlist = identifier.split(":")

--
1.9.1

--
_______________________________________________
toaster mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/toaster