Event information model for Toaster: Difference between revisions

From Yocto Project
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
This is the information we need for completing the tables of the WebHOB database.
This is the information we need for completing the tables of the WebHOB database.


==== BUILDS ====
==== BUILD ====


:uuid : <span style="color: green">DONE</span> : unique task id
:uuid : <span style="color: green">DONE</span> : unique task id
Line 10: Line 10:
:distro : <span style="color: green">DONE</span> : # variable - DISTRO
:distro : <span style="color: green">DONE</span> : # variable - DISTRO
:distro_version : <span style="color: green">DONE</span> : # variable - DISTRO_VERSION
:distro_version : <span style="color: green">DONE</span> : # variable - DISTRO_VERSION
:host_system : <span style="color: green">DONE</span> : # variable - BUILD_SYS
:host_distribution : <span style="color: green">DONE</span> # variable - NATIVELSBSTRING
:target_system : <span style="color: green">DONE</span> # variable - TARGET_SYS
:layers :  :  <span style="color: green">DONE</span> # index into the layer table ? # we can ask bitbake for the list (BBLAYERS)
:started_on : <span style="color: green">DONE</span> # use BuildStarted event
:started_on : <span style="color: green">DONE</span> # use BuildStarted event
:completed_on <span style="color: green">DONE</span> # use BuildCompleted event
:completed_on <span style="color: green">DONE</span> # use BuildCompleted event
Line 21: Line 17:
:cpu_usage : <span style="color: red">N/A</span>  # it's in the build stats; we don't have a meaning
:cpu_usage : <span style="color: red">N/A</span>  # it's in the build stats; we don't have a meaning
:disk_io : <span style="color: red">N/A</span>  # it's in the build stats; we don't have a meaning
:disk_io : <span style="color: red">N/A</span>  # it's in the build stats; we don't have a meaning
:log : <span style="color: green">DONE</span>  # main cooker log - composed of all log events over the set log level (see knotty)
:cooker_log_path : <span style="color: green">DONE</span>  # main cooker log - composed of all log events over the set log level (see knotty)
:output : <span style="color: red">N/A</span>  # list of generated files; downloads - please check how Hob does this
:build_name : <span style="color: green">DONE</span>  # variable - BUILDNAME
:build_name : <span style="color: green">DONE</span>  # variable - BUILDNAME
:bitbake_version : <span style="color: green">DONE</span> # variable - BB_VERSION
:bitbake_version : <span style="color: green">DONE</span> # variable - BB_VERSION


: !This has been removed for the moment -> output : <span style="color: red">N/A</span>  # list of generated files; downloads - please check how Hob does this


==== TASKS ====
 
==== TASK ====
:uuid : <span style="color: green">DONE</span> -> generated at the beginning of each build.
:uuid : <span style="color: green">DONE</span> -> generated at the beginning of each build.
:task_id :<span style="color: red">N/A</span>  
:task_id :<span style="color: red">N/A</span>  
Line 56: Line 53:


==== TASK DEPENDENCY ====
==== TASK DEPENDENCY ====
:task_id : <span style="color: red">N/A</span>  
:task : <span style="color: red">N/A</span>  
:depends_on : <span style="color: red">N/A</span>  # still a task_id
:depends_on : <span style="color: red">N/A</span>  # still a task_id


==== TARGETS ====
==== TARGET ====
:uuid : <span style="color: red">N/A</span> # of build that generated the image
:build : <span style="color: red">N/A</span> # of build that generated the image
:is_image : <span style="color: red">N/A</span>  
:is_image : <span style="color: red">N/A</span>  
# TBC
! TBC


==== ARTIFACTS ====
==== ARTIFACT ====
:uuid : <span style="color: red">N/A</span>  
:build : <span style="color: red">N/A</span>  
:target_id : <span style="color: red">N/A</span>  
:target_id : <span style="color: red">N/A</span>  
:file_name : <span style="color: red">N/A</span>  
:file_name : <span style="color: red">N/A</span>  
:file_size : <span style="color: red">N/A</span>  
:file_size : <span style="color: red">N/A</span>  


==== PACKAGES IN IMAGES ====
==== PACKAGE IN IMAGE ====
:package_id : <span style="color: red">N/A</span>   
:package : <span style="color: red">N/A</span>   
:target_id : <span style="color: red">N/A</span>  
:target : <span style="color: red">N/A</span>  


==== PACKAGES ====
==== PACKAGE ====
:package_id : <span style="color: red">N/A</span>
:recipe : <span style="color: red">N/A</span>    # recipe that generated this package
:recipe : <span style="color: red">N/A</span>    # recipe that generated this package
:name : <span style="color: red">N/A</span>  
:name : <span style="color: red">N/A</span>  
Line 81: Line 77:
:size : <span style="color: red">N/A</span>  
:size : <span style="color: red">N/A</span>  


==== PACKAGE DEPENDENCIES ====
==== PACKAGE DEPENDENCY ====
:package_id : <span style="color: red">N/A</span>  
:package : <span style="color: red">N/A</span>  
:depends_on : <span style="color: red">N/A</span>  
:depends_on : <span style="color: red">N/A</span>  


==== FILELIST ====
==== FILELIST ====
:package_id : <span style="color: red">N/A</span> # id in the list of packages
:package : <span style="color: red">N/A</span> # id in the list of packages
:complete file path : <span style="color: red">N/A</span>  
:complete_file_path : <span style="color: red">N/A</span>  
:file size : <span style="color: red">N/A</span>  
:file_size : <span style="color: red">N/A</span>  


==== RECIPES ====
==== RECIPE ====
:name : <span style="color: red">N/A</span>  
:name : <span style="color: red">N/A</span>  
:version : <span style="color: red">N/A</span>  
:version : <span style="color: red">N/A</span>  
Line 105: Line 101:


==== RECIPE DEPENDENCY ====
==== RECIPE DEPENDENCY ====
:recipe_id : <span style="color: red">N/A</span>  
:recipe : <span style="color: red">N/A</span>  
:depends_on : <span style="color: red">N/A</span>  # also a recipe id
:depends_on : <span style="color: red">N/A</span>  # also a recipe id


==== LAYERS ====
==== LAYER ====
:name : <span style="color: red">N/A</span>  
:name : <span style="color: red">N/A</span>  
:local_path : <span style="color: red">N/A</span>
:layer_index_url: <span style="color: red">N/A</span>
!!TBC
==== BUILD_LAYER ====
:build : <span style="color: red">N/A</span>
:layer : <span style="color: red">N/A</span>
:branch : <span style="color: red">N/A</span>  
:branch : <span style="color: red">N/A</span>  
:commit : <span style="color: red">N/A</span>  
:commit : <span style="color: red">N/A</span>  
:priority : <span style="color: red">N/A</span>  
:priority : <span style="color: red">N/A</span>  
:link to oecore layer index: <span style="color: red">N/A</span>  ?
# TBC


==== VARIABLES ====
==== VARIABLE ====
:uuid : <span style="color: red">N/A</span>  
:build : <span style="color: red">N/A</span>  
:variable_name : <span style="color: red">N/A</span> # a list of `bitbake -e`
:variable_name : <span style="color: red">N/A</span> # a list of `bitbake -e`
:variable_value : <span style="color: red">N/A</span>  
:variable_value : <span style="color: red">N/A</span>  
Line 125: Line 126:
:description : <span style="color: red">N/A</span>  
:description : <span style="color: red">N/A</span>  


==== MACHINES ====
==== MACHINE ====
:name : <span style="color: red">N/A</span>  
:name : <span style="color: red">N/A</span>  
:description : <span style="color: red">N/A</span>
:description : <span style="color: red">N/A</span>

Revision as of 10:46, 20 June 2013


This is the information we need for completing the tables of the WebHOB database.

BUILD

uuid : DONE : unique task id
target : N/A : # OneToMany to the targets table
machine : DONE : # index into all the machines that we support ? # we can ask bitbake for the MACHINE variable
distro : DONE : # variable - DISTRO
distro_version : DONE : # variable - DISTRO_VERSION
started_on : DONE # use BuildStarted event
completed_on DONE # use BuildCompleted event
outcome : DONE # We can grab this at the end of all commands by checking the errors number or the return value.
number_of_errors DONE # total number of log events with level of ERROR (see knotty)
number_of_warnings DONE # total number of log events with level of WARNING (see knotty)
cpu_usage : N/A # it's in the build stats; we don't have a meaning
disk_io : N/A # it's in the build stats; we don't have a meaning
cooker_log_path : DONE # main cooker log - composed of all log events over the set log level (see knotty)
build_name : DONE # variable - BUILDNAME
bitbake_version : DONE # variable - BB_VERSION
!This has been removed for the moment -> output : N/A # list of generated files; downloads - please check how Hob does this


TASK

uuid : DONE -> generated at the beginning of each build.
task_id :N/A
order : DONE -> counted on each TaskStarted event
task_executed : DONE -> set to True for each TaskStarted event
outcome : DONE? -> retrieved from event.getDisplayName() # is this OK ?
sstate_checksum : N/A
path_to_sstate_obj : N/A
recipe : DONE -> retrieved from event._package
task_name : DONE -> retrieved from event._task
  • index on recipe / task_name
source_url : N/A
log_file: N/A
work_directory : N/A
script_type : N/A
file_path : N/A
line_number : N/A
py_stack_trace : N/A
disk_io : N/A
cpu_usage : N/A
elapsed_time : DONE -> difference between started and finished time
errors_no : N/A
warnings_no : N/A
error : N/A
warning : N/A
sstate_result : N/A
diffsigs : N/A

TASK DEPENDENCY

task : N/A
depends_on : N/A # still a task_id

TARGET

build : N/A # of build that generated the image
is_image : N/A

! TBC

ARTIFACT

build : N/A
target_id : N/A
file_name : N/A
file_size : N/A

PACKAGE IN IMAGE

package : N/A
target : N/A

PACKAGE

recipe : N/A # recipe that generated this package
name : N/A
version : N/A
size : N/A

PACKAGE DEPENDENCY

package : N/A
depends_on : N/A

FILELIST

package : N/A # id in the list of packages
complete_file_path : N/A
file_size : N/A

RECIPE

name : N/A
version : N/A
layer : N/A # point to a layer index
summary : N/A
description : N/A
section : N/A  ?
license : N/A
licensing info: N/A ?
homepage : N/A  ?
bugtracker : N/A  ?
author : N/A  ?
file_path : N/A  ?

RECIPE DEPENDENCY

recipe : N/A
depends_on : N/A # also a recipe id

LAYER

name : N/A
local_path : N/A
layer_index_url: N/A

!!TBC

BUILD_LAYER

build : N/A
layer : N/A
branch : N/A
commit : N/A
priority : N/A

VARIABLE

build : N/A
variable_name : N/A # a list of `bitbake -e`
variable_value : N/A
file : N/A # a single file name where the variable is set
changed : N/A
human_readable_name : N/A
description : N/A

MACHINE

name : N/A
description : N/A