More Projects design (YP6232)
I've added:
* Queued and cancelled builds (pages 10-11)
* Quick add option for targets (pages 27-29)
* Deleting layers and targets (page 30)
* Changing machine and distro (pages 31-38)
Design document attached to Bugzilla entry:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6232
Cheers
Belén
And still a bit more: how to change the "Project details" (the name, the owner, and that kind of thing).
Design document attached to Bugzilla entry:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6232
New stuff in pages 39 to 42.
Belén
Quoted 15 lines · Belen
I've added:
* Queued and cancelled builds (pages 10-11)
* Quick add option for targets (pages 27-29)
* Deleting layers and targets (page 30)
* Changing machine and distro (pages 31-38)Design document attached to Bugzilla entry:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6232
Cheers
Belén
Hi Belén,
I have done a pass at your updated design document. You seem to have fully addressed the edge cases and multiple workflow possibilities.
I have just a few comments.
1) Page 16
The term "Import Layers" implies to me a copy action (e.g. Word, web design programs, Photoshop, iMovie, ...). I wonder if an alternate phrase like "Register Layers" or "Include Layers" would be closer to the actual action?
2) Page 19
There is a state where you write "Toaster does not know which added layer provides the target."
Can I assume that this only occurs when the user manually adds a target but Toaster cannot find a layer that provides it?
If I understand correctly, when toaster cannot not find a parent layer it will initially leave the target in blue, and only move it to red if a build is attempted and it fails? In other words, even if Toaster cannot associate a target with a layer it will still treat it normally (albeit without pop-up parent layer information)?
I see that you cover the build-failure case on page 24, but I did not notice where you cover the layer-not-found-but-target-works case.
3) Page 21, et. al.
As a nit-pick, I would suggest the alternate wording "From the layer information that Toaster has currently, it thinks ...", to put the actor (Toaster) in the first part of the sentence fragment, and to also not end that fragment with a verb (I think that my mother frowns on that).
4) Page 24 and Page 25
Your design shows two places to list possible missing layers, once in the layer list hovers and once in the build results. Do you really want this duplication? I just wonder if it is worth considering a consolidation in order to not do the display and computation code twice, or if ease-of-use justifies this effort?
5) Page 32
You write "... since Toaster will not know about machines from imported layers that have not been parsed yet".
This is of course a general limitation of bitbake for the pre-configuration state. My general question is this then: should we and can we provide an action (perhaps a simple build target) that will trigger bitbake to do that initial parse, so that the user can directly and immediately improve the information available to them?
- David
Quoted 39 lines
-----Original Message-----
From: Barros Pena, Belen [mailto:[email protected]]
Sent: Tuesday, July 08, 2014 6:20 AM
To: Reyna, David; DAMIAN, ALEXANDRU; Lerner, Dave; Ravi Chintakunta ([email protected]); Amit Kumar Chaudhary; Wymore, Farrell
Cc: [email protected]
Subject: Re: More Projects design (YP6232)And still a bit more: how to change the "Project details" (the name, the owner, and that kind of thing).
Design document attached to Bugzilla entry:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6232
New stuff in pages 39 to 42.
Belén
Quoted 15 lines · Belen
I've added:
* Queued and cancelled builds (pages 10-11)
* Quick add option for targets (pages 27-29)
* Deleting layers and targets (page 30)
* Changing machine and distro (pages 31-38)Design document attached to Bugzilla entry:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6232
Cheers
Belén
Hi David,
Thanks for this. These reviews really help. I am going to explain the reasons behind the decisions we made in relation to your questions to give you some background, but everything is very much open to change, so feel free to press your case or suggest alternatives if you don't agree with the explanations :)
Quoted 5 lines · David
Hi Belén,
I have done a pass at your updated design document. You seem to have fully addressed the edge cases and multiple workflow possibilities.
Quoted 8 lines
I have just a few comments.
1) Page 16
The term "Import Layers" implies to me a copy action (e.g. Word, web design programs, Photoshop, iMovie, ...). I wonder if an alternate phrase like "Register Layers" or "Include Layers" would be closer to the actual action?
I agree the wording might not be the right one. I chose "Import" because effectively that imports the layer information to an "Imported" layer source that will behave in the same way as any other layer source (will give you suggestions for layers, targets, machines and distros it knows about, and allow you to browse and search the layers in that source). When it comes to filter all layers by layer source, "Imported" seemed to work best ("Registered" or "Included" seem a bit generic).
Quoted 8 lines
2) Page 19
There is a state where you write "Toaster does not know which added layer provides the target."
Can I assume that this only occurs when the user manually adds a target but Toaster cannot find a layer that provides it?
This happens when Toaster cannot find an "added" layer that provides the target. All target suggestions you get come from the targets provided by the added layers (not from the targets provided by all the layers known to Toaster). This is to make sure Toaster does not add layers "behind your back". For example, let's pretend that I just created a project and I have only the Yocto Project layers there: meta, meta-yocto and meta-yocto-bsp. If I want to build a target called gnuradio-dev-image, I will not get a suggestion for that target because that target is provided by the meta-sdr layer, which is not in my list of added layers. If I add gnuradio-dev-image to my list of targets, that is what I call in the design document an unknown target: Toaster will show me the warning icon, and when I hover over it will suggest adding meta-sdr because it knowns it provides that target (Toaster knows because meta-sdr is included in the OpenEmbedded layer source).
My initial design provided target suggestions from all the layers known to Toaster, and if you picked one that was not provided by one of your added layers, Toaster would add the layer (and all its dependencies) to the project. In the above case, if you selected gnuradio-dev-image it would add meta-sdr and meta-openemebedded. The problem with this is that it might not be what you want. I might have a layer called meta-myversionof-sdr that also includes a target called gnuradio-dev-image, but Toaster might not know yet because I have just imported the layer and it has never been built. You might want gnuradio-dev-image to be provided by meta-myversionof-sdr, not by meta-sdr. This was the problem that was raised by Paul and Alex, who were wary of Toaster being "too smart" and imposing options on you.
In the example above, Toaster going off and adding layers to the list becomes a hassle, because you will either have to undo what Toaster has done, or be subjected to modal messages of the type: "this target is provided by layer blah. Would you like to add this layer to your project?", which are quite intrusive and can get annoying.
Quoted 3 lines
If I understand correctly, when toaster cannot not find a parent layer it will initially leave the target in blue
It will leave it in black with the warning icon next to it: blue targets are links to a target details page that provides additional information about the target. But that information is only available when Toaster knows which layer provides the target, so when Toaster does not know that, target names cannot be links (i.e. blue), and they are just black.
Quoted 3 lines
, and only move it to red if a build is attempted and it fails? In other words, even if Toaster cannot associate a target with a layer it will still treat it normally (albeit without pop-up parent layer information)?
Almost normally: it will show the warning icon as a way to tell you that everything might not be quite right. As explained above, Toaster is trying to be helpful without being intrusive or imposing anything on you (that's the intention, in any case). If the build fails because a target is not provided, it will fail very quickly, and Toaster will tell you exactly what the issue is and which target is causing it.
Quoted 3 lines
I see that you cover the build-failure case on page 24, but I did not notice where you cover the layer-not-found-but-target-works case.
Nothing needs to be done in this case, I think. Toaster learns stuff as it builds, so once the build runs, chances are that Toaster will know which of the added layers provided the target, so it can remove the warning icon, turn the target into a link and give you the tooltip with parent layer information.
Quoted 7 lines
3) Page 21, et. al.
As a nit-pick, I would suggest the alternate wording "From the layer information that Toaster has currently, it thinks ...", to put the actor (Toaster) in the first part of the sentence fragment, and to also not end that fragment with a verb (I think that my mother frowns on that).
Will do. I don't want your mum to get upset when configuring her builds ;) All the copy has been written by me, which means it needs to be reviewed, so if you find that kind of stuff, please let me know so I can correct it.
Quoted 8 lines
4) Page 24 and Page 25
Your design shows two places to list possible missing layers, once in the layer list hovers and once in the build results. Do you really want this duplication? I just wonder if it is worth considering a consolidation in order to not do the display and computation code twice, or if ease-of-use justifies this effort?
I thought the error icon by itself might be too subtle, and the information too important to be hidden inside some message that only appears on hover. but I could be wrong. I do get the duplication bit, though. Maybe we could just keep the notification (and remove the message on hover)?
The notification should also show up in the build dashboard page, by the way, but I haven't had time to document this yet.
Quoted 11 lines
5) Page 32
You write "... since Toaster will not know about machines from imported layers that have not been parsed yet".
This is of course a general limitation of bitbake for the pre-configuration state. My general question is this then: should we and can we provide an action (perhaps a simple build target) that will trigger bitbake to do that initial parse, so that the user can directly and immediately improve the information available to them?
We did consider this at some point, but concluded that the parse would take too long to be useful, and that people would get tired of waiting and fire the build anyway. We also thought that, because builds fail so quickly when something is not provided, running a build might be actually a faster way of flagging the problem than triggering a bitbake parse. We could be wrong though: happy to discuss.
Quoted 44 lines
- David
Quoted 39 lines
-----Original Message-----
From: Barros Pena, Belen [mailto:[email protected]]
Sent: Tuesday, July 08, 2014 6:20 AM
To: Reyna, David; DAMIAN, ALEXANDRU; Lerner, Dave; Ravi Chintakunta ([email protected]); Amit Kumar Chaudhary; Wymore, Farrell
Cc: [email protected]
Subject: Re: More Projects design (YP6232)And still a bit more: how to change the "Project details" (the name, the owner, and that kind of thing).
Design document attached to Bugzilla entry:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6232
New stuff in pages 39 to 42.
Belén
Quoted 15 lines · Belen
I've added:
* Queued and cancelled builds (pages 10-11)
* Quick add option for targets (pages 27-29)
* Deleting layers and targets (page 30)
* Changing machine and distro (pages 31-38)Design document attached to Bugzilla entry:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6232
Cheers
Belén
Hi Belén,
My comments are in-line...
Quoted 32 lines
-----Original Message-----
From: Barros Pena, Belen [mailto:[email protected]]
Sent: Wednesday, July 09, 2014 11:48 AM
To: Reyna, David; DAMIAN, ALEXANDRU; Lerner, Dave; Ravi Chintakunta ([email protected]); Amit Kumar Chaudhary; Wymore, Farrell
Cc: [email protected]
Subject: Re: More Projects design (YP6232)Hi David,
Thanks for this. These reviews really help. I am going to explain the reasons behind the decisions we made in relation to your questions to give you some background, but everything is very much open to change, so feel free to press your case or suggest alternatives if you don't agree with the explanations :)
Quoted 5 lines · David
Hi Belén,
I have done a pass at your updated design document. You seem to have fully addressed the edge cases and multiple workflow possibilities.
Quoted 8 lines
I have just a few comments.
1) Page 16
The term "Import Layers" implies to me a copy action (e.g. Word, web design programs, Photoshop, iMovie, ...). I wonder if an alternate phrase like "Register Layers" or "Include Layers" would be closer to the actual action?
Quoted 7 lines
I agree the wording might not be the right one. I chose "Import" because effectively that imports the layer information to an "Imported" layer source that will behave in the same way as any other layer source (will give you suggestions for layers, targets, machines and distros it knows about, and allow you to browse and search the layers in that source). When it comes to filter all layers by layer source, "Imported" seemed to work best ("Registered" or "Included" seem a bit generic).
I am flexible about this wording - I just wanted to bring this question to your attention.
I am trying to fully understand your words and assumptions. What is your "Imported layer source"? Is that an object separate from the user's layer? When you write "effectively that imports the layer information" are you implying a physical copy or just a logical reference?
In the call you mentioned that you expected that the imported layers would be in a bare git clone format. While this is true for the distribution content, I want to mention again that we expect customers will have their custom layers in a normal directory format since they would be under active development and not compressed into a repo. We need to support both formats.
BTW, this brings to mind a related question. Is it the assumption that any imported layer must exist both on the host (so that it can be parsed) but also at the remote build machine (so that the builder can use it)? If not, does this indeed imply a copy action of the layer to that remote builder? What is our plan and guidance to the users here?
Quoted 37 lines
Quoted 8 lines
2) Page 19
There is a state where you write "Toaster does not know which added layer provides the target."
Can I assume that this only occurs when the user manually adds a target but Toaster cannot find a layer that provides it?
This happens when Toaster cannot find an "added" layer that provides the target. All target suggestions you get come from the targets provided by the added layers (not from the targets provided by all the layers known to Toaster). This is to make sure Toaster does not add layers "behind your back". For example, let's pretend that I just created a project and I have only the Yocto Project layers there: meta, meta-yocto and meta-yocto-bsp. If I want to build a target called gnuradio-dev-image, I will not get a suggestion for that target because that target is provided by the meta-sdr layer, which is not in my list of added layers. If I add gnuradio-dev-image to my list of targets, that is what I call in the design document an unknown target: Toaster will show me the warning icon, and when I hover over it will suggest adding meta-sdr because it knowns it provides that target (Toaster knows because meta-sdr is included in the OpenEmbedded layer source).
My initial design provided target suggestions from all the layers known to Toaster, and if you picked one that was not provided by one of your added layers, Toaster would add the layer (and all its dependencies) to the project. In the above case, if you selected gnuradio-dev-image it would add meta-sdr and meta-openemebedded. The problem with this is that it might not be what you want. I might have a layer called meta-myversionof-sdr that also includes a target called gnuradio-dev-image, but Toaster might not know yet because I have just imported the layer and it has never been built. You might want gnuradio-dev-image to be provided by meta-myversionof-sdr, not by meta-sdr. This was the problem that was raised by Paul and Alex, who were wary of Toaster being "too smart" and imposing options on you.
Quoted 5 lines
In the example above, Toaster going off and adding layers to the list becomes a hassle, because you will either have to undo what Toaster has done, or be subjected to modal messages of the type: "this target is provided by layer blah. Would you like to add this layer to your project?", which are quite intrusive and can get annoying.
Ok.
Quoted 9 lines
Quoted 3 lines
If I understand correctly, when toaster cannot not find a parent layer it will initially leave the target in blue
It will leave it in black with the warning icon next to it: blue targets are links to a target details page that provides additional information about the target. But that information is only available when Toaster knows which layer provides the target, so when Toaster does not know that, target names cannot be links (i.e. blue), and they are just black.
Ok.
Quoted 10 lines
Quoted 3 lines
, and only move it to red if a build is attempted and it fails? In other words, even if Toaster cannot associate a target with a layer it will still treat it normally (albeit without pop-up parent layer information)?
Almost normally: it will show the warning icon as a way to tell you that everything might not be quite right. As explained above, Toaster is trying to be helpful without being intrusive or imposing anything on you (that's the intention, in any case). If the build fails because a target is not provided, it will fail very quickly, and Toaster will tell you exactly what the issue is and which target is causing it.
Ok.
Quoted 9 lines
Quoted 3 lines
I see that you cover the build-failure case on page 24, but I did not notice where you cover the layer-not-found-but-target-works case.
Nothing needs to be done in this case, I think. Toaster learns stuff as it builds, so once the build runs, chances are that Toaster will know which of the added layers provided the target, so it can remove the warning icon, turn the target into a link and give you the tooltip with parent layer information.
Ok.
Quoted 11 lines
Quoted 7 lines
3) Page 21, et. al.
As a nit-pick, I would suggest the alternate wording "From the layer information that Toaster has currently, it thinks ...", to put the actor (Toaster) in the first part of the sentence fragment, and to also not end that fragment with a verb (I think that my mother frowns on that).
Will do. I don't want your mum to get upset when configuring her builds ;) All the copy has been written by me, which means it needs to be reviewed, so if you find that kind of stuff, please let me know so I can correct it.
My mum will be so happy :-)
Quoted 9 lines
Quoted 8 lines
4) Page 24 and Page 25
Your design shows two places to list possible missing layers, once in the layer list hovers and once in the build results. Do you really want this duplication? I just wonder if it is worth considering a consolidation in order to not do the display and computation code twice, or if ease-of-use justifies this effort?
Quoted 5 lines
I thought the error icon by itself might be too subtle, and the information too important to be hidden inside some message that only appears on hover. but I could be wrong. I do get the duplication bit, though. Maybe we could just keep the notification (and remove the message on hover)?
I will think about your question. I understand your point, and the duplication does help the developer at the (hopefully) small cost of code duplications.
Quoted 2 lines
The notification should also show up in the build dashboard page, by the way, but I haven't had time to document this yet.
Ok.
Quoted 12 lines
Quoted 11 lines
5) Page 32
You write "... since Toaster will not know about machines from imported layers that have not been parsed yet".
This is of course a general limitation of bitbake for the pre-configuration state. My general question is this then: should we and can we provide an action (perhaps a simple build target) that will trigger bitbake to do that initial parse, so that the user can directly and immediately improve the information available to them?
Quoted 6 lines
We did consider this at some point, but concluded that the parse would take too long to be useful, and that people would get tired of waiting and fire the build anyway. We also thought that, because builds fail so quickly when something is not provided, running a build might be actually a faster way of flagging the problem than triggering a bitbake parse. We could be wrong though: happy to discuss.
I am fine with your analysis.
- David
Quoted 46 lines
Quoted 45 lines
- David
Quoted 39 lines
-----Original Message-----
From: Barros Pena, Belen [mailto:[email protected]]
Sent: Tuesday, July 08, 2014 6:20 AM
To: Reyna, David; DAMIAN, ALEXANDRU; Lerner, Dave; Ravi Chintakunta ([email protected]); Amit Kumar Chaudhary; Wymore, Farrell
Cc: [email protected]
Subject: Re: More Projects design (YP6232)And still a bit more: how to change the "Project details" (the name, the owner, and that kind of thing).
Design document attached to Bugzilla entry:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6232
New stuff in pages 39 to 42.
Belén
Quoted 15 lines · Belen
I've added:
* Queued and cancelled builds (pages 10-11)
* Quick add option for targets (pages 27-29)
* Deleting layers and targets (page 30)
* Changing machine and distro (pages 31-38)Design document attached to Bugzilla entry:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6232
Cheers
Belén
Quoted 2 lines · David
I am flexible about this wording - I just wanted to bring this question to your attention.
Fair enough. If you can think of something better, do let me know. It can be tricky to get the labelling right
Quoted 3 lines
I am trying to fully understand your words and assumptions. What is your "Imported layer source"? Is that an object separate from the user's layer?
My explanation might not be technically accurate, but in my head a layer source is a collection of information about a set of layers, not the layers themselves. Because one of the pieces of information in the collection is the layer repository, once a layer from a collection is added to a project it can be cloned when you start a build. Now, this git repository I guess can live anywhere accessible to the build hardware: in a public server or service (e.g. Github) or in a server inside your organisation.
So the "Imported" layer source is the collection of information about the layers imported by users. Like other layer sources, it can be searched and filtered, and layers from it added to projects.
Quoted 2 lines
When you write "effectively that imports the layer information" are you implying a physical copy or just a logical reference?
I think it's a logical reference (i.e. a set of information about the layer that allows the build system to clone it). Looking at
http://layers.openembedded.org might give you an idea of what I mean.
Quoted 7 lines
In the call you mentioned that you expected that the imported layers would be in a bare git clone format. While this is true for the distribution content, I want to mention again that we expect customers will have their custom layers in a normal directory format since they would be under active development and not compressed into a repo. We need to support both formats.
This opens up all kinds of interesting questions regarding development workflow. In principle, when Toaster is running in the same machine that runs the builds, it seems simple to allow people to browse the directory structure when importing a layer and select a local layer directory. But this opens up other problems. For example, we will allow people to export projects to be shared with other people, but if you are using a layer that only exists locally in your computer, the sharing paradigm breaks.
If we assume that the main use case for Toaster is within an organisation where several people will work together and be jointly responsible for distro work, enforcing the use of repositories as a way to share layers might be a reasonable thing to do. I could be wrong though.
Quoted 6 lines
BTW, this brings to mind a related question. Is it the assumption that any imported layer must exist both on the host (so that it can be parsed) but also at the remote build machine (so that the builder can use it)? If not, does this indeed imply a copy action of the layer to that remote builder? What is our plan and guidance to the users here?
I believe the layers will just be cloned in the remote build machine as needed. Alex should be able to confirm this.
Cheers
Belén
Alex has some comments below,
Quoted 50 lines · Belen
Quoted 2 lines · David
I am flexible about this wording - I just wanted to bring this question to your attention.
Fair enough. If you can think of something better, do let me know. It can be tricky to get the labelling right
Quoted 3 lines
I am trying to fully understand your words and assumptions. What is your "Imported layer source"? Is that an object separate from the user's layer?
My explanation might not be technically accurate, but in my head a layer source is a collection of information about a set of layers, not the layers themselves. Because one of the pieces of information in the collection is the layer repository, once a layer from a collection is added to a project it can be cloned when you start a build. Now, this git repository I guess can live anywhere accessible to the build hardware: in a public server or service (e.g. Github) or in a server inside your organisation.
So the "Imported" layer source is the collection of information about the layers imported by users. Like other layer sources, it can be searched and filtered, and layers from it added to projects.
Quoted 2 lines
When you write "effectively that imports the layer information" are you implying a physical copy or just a logical reference?
I think it's a logical reference (i.e. a set of information about the layer that allows the build system to clone it). Looking at
http://layers.openembedded.org might give you an idea of what I mean.Quoted 7 lines
In the call you mentioned that you expected that the imported layers would be in a bare git clone format. While this is true for the distribution content, I want to mention again that we expect customers will have their custom layers in a normal directory format since they would be under active development and not compressed into a repo. We need to support both formats.
This opens up all kinds of interesting questions regarding development workflow. In principle, when Toaster is running in the same machine that runs the builds, it seems simple to allow people to browse the directory structure when importing a layer and select a local layer directory. But this opens up other problems. For example, we will allow people to export projects to be shared with other people, but if you are using a layer that only exists locally in your computer, the sharing paradigm breaks.
Quoted 5 lines
If we assume that the main use case for Toaster is within an organisation where several people will work together and be jointly responsible for distro work, enforcing the use of repositories as a way to share layers might be a reasonable thing to do. I could be wrong though.
I was talking in another thread about "*build repeatability",* which I think should be one of the basic principles of the build control system for Toaster - once you export a project and you import it in another Toaster instance, you will get the same output for the same project settings.
IMHO, my usage model for Toaster is to allow a user to *configure* a build that then will be shipped to a build farm somewhere, and not as a fully-fledged IDE since it can't do any edits in the web interface, it only can do build configuration.
Using local directories, as Belen pointed out, will break the repeatability principle. I think our options here are:
a). mark an "invalid" state for the project, which will prevent project exporting
b). do not allow local development directories;
I would favour b). because,
first, it's not clear to me how one would go from marking a project
from "invalid" to "valid", i.e. the offending layers would have to be deleted and then re-imported, and the project revalidated, offsetting any work already done; and,
second, if you're doing local hard-core development on your own
layers, probably you will not use the web interface anyway, since it's an awkward usage paradigm here: you use a terminal to edit local directories, and then switch to web interface to build something; why would you do that, when it's easier and faster to just run bitbake from the command line, and have Toaster running in interactive mode, like in 1.6 release
Does this make sense ?
Quoted 11 lines
Quoted 7 lines
BTW, this brings to mind a related question. Is it the assumption that any imported layer must exist both on the host (so that it can be parsed) but also at the remote build machine (so that the builder can use it)? If not, does this indeed imply a copy action of the layer to that remote builder? What is our plan and guidance to the users here?
I believe the layers will just be cloned in the remote build machine as needed. Alex should be able to confirm this.
The specified layers are cloned in the build environment before the bitbake server starts. There are no code differences between using your machine to build, or using a hosted infrastructure somewhere else.
In all respects, Toaster treats a remote machine just as a local machine, and viceversa. I'm beginning to understand that your vision is to use Toaster to do local layer development, but I think that we're not ready to tackle this aspect. I think that Toaster builder functionality should focus on configuring builds on already validated layers, and have our users use the Toaster running in 1.6 mode (interactive) to debug builds while creating own layers.
To use Toaster as an
IDE, we would need the ability to edit recipe sources, view detailed logs, and run advanced bitbake commands directly in the web interface, and I think this is well beyond 1.7
Quoted 5 lines
Cheers
Belén
Signature · 3 lines
Alex Damian Yocto Project SSG / OTC