Bug 4276 - Distinguish between executed, existing, sstate and covered tasks
Summary: Distinguish between executed, existing, sstate and covered tasks
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium+ enhancement
Target Milestone: 1.5 M1
Assignee: Alexandru Damian
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 4650
  Show dependency tree
 
Reported: 2013-04-12 11:19 UTC by Belen Barros Pena
Modified: 2013-10-29 13:37 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Belen Barros Pena 2013-04-12 11:19:13 UTC
Web Hob will classify tasks into 2 categories:

* sstate tasks
* built tasks

Tasks will also report a 'status'. 

sstate tasks can have the following status:

* Missed
* Completed
* Failed

Built tasks can have the following status:

* Previously built
* Completed
* Failed

Task type and status should be included in the tasks table (see bug 4275).
Comment 1 Belen Barros Pena 2013-04-12 11:33:54 UTC
Question about this classification: isn't a missed task a built task? Basically, for a given task the checksum changed, so it was rebuilt. If we apply this classification, wouldn't we end up with 2 entries for the same task in the tasks table (one missed, one rebuilt)?

We should clear this up with RP, Ross and Paul E, who came up with the task classification.
Comment 2 Belen Barros Pena 2013-06-12 09:36:27 UTC
We have decided to classify tasks into 2 main types:

1. Executed: tasks that build something
2. Prebuilt: tasks that don't built anything

The above tasks types can have the following outcomes:

1. Executed tasks:

1.1 Succeeded: executed tasks that complete
1.2 Failed: executed tasks that don't complete

2. Prebuilt tasks:

2.1 Existing: prebuilt tasks for which BitBake finds a stamp file
2.2 Sstate: prebuilt tasks that complete reusing sstate objects 
2.3 Covered: prebuilt tasks brought in by sstate tasks

For more details see the Django db tasks model at: 

https://wiki.yoctoproject.org/wiki/Django_models

And bug 4275
Comment 3 Alexandru Damian 2013-10-21 09:40:42 UTC
Merged in origin/master and origin/dora-toaster.
Comment 4 Belen Barros Pena 2013-10-29 13:37:22 UTC
Verified fixed in: 

master: 76751a03b1475f22499c488395274453096b9c38
dora-toaster: 4b64eb444ab065915267d8040bf878ecae9b00c4