Bug 4276

Summary: Distinguish between executed, existing, sstate and covered tasks
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: jessica.zhang
Version: unspecified   
Target Milestone: 1.5 M1   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 4650    

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