| Summary: | When a build fails, some tasks come without order number and with outcome 'not available' | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Toaster | Reporter: | Belen Barros Pena <belen.barros.pena> |
| Component: | toaster | Assignee: | David Reyna <david.reyna> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | alexandru.damian, belen.barros.pena, cristiana.voicu, jessica.zhang, Yuan.Sun2 |
| Version: | unspecified | ||
| Target Milestone: | 1.6 M5 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Belen Barros Pena
2014-03-27 17:08:27 UTC
This is normal and expected. All the tasks are created when the task dependency tree is generated and submitted. The tasks are assigned order numbers and outcomes when they are executed. When a build fails or is stopped, tasks not yet evaluated will show outcome NA and no order number. (In reply to comment #1) > This is normal and expected. > > All the tasks are created when the task dependency tree is generated and > submitted. > > The tasks are assigned order numbers and outcomes when they are executed. > When a build fails or is stopped, tasks not yet evaluated will show outcome > NA and no order number. Fair enough, but if they never got to run, Toaster should not show them. David: ping Alex if you have any questions. I think he knows how to go about fixing this one. Thanks! I think that the simple resolution is in the view class to filter out any tasks with no order numbers. That would be easier and safer at this point than making a backend change. The solution is to copy the filter for 'order' from the All Tasks view class and applied it to this task table within the Recipe view class.
tasks = Task.objects.filter(recipe_id = recipe_id).filter(build_id = build_id).exclude(task_name__endswith='_setscene').filter(order__gte=0)
BTW, the example database mentioned above is actually a ".tar.gz" formatted file, so be forewarned:
https://wiki.yoctoproject.org/wiki/images/d/d1/Toaster.sqlite
commit dc7d3d29108d63eb5ecf276769f0099a5bc3ab86 Verified in 046a9ea30356daf4f3f8f4ddfc5b57fcfd85a27f. |