Event information model for Toaster: Difference between revisions

From Yocto Project
Jump to navigationJump to search
No edit summary
No edit summary
Line 2: Line 2:


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 ====
==== BUILDS ====


:uuid : <span style="color: green">DONE</span> : unique task id
:uuid : <span style="color: green">DONE</span> : unique task id
:target : <span style="color: red">N/A</span> : #multiple targets possible on a single build; will need to separate machines images
:target : <span style="color: red">N/A</span> : # OneToMany to the targets table
:machine : <span style="color: red">N/A</span> : #index into all the machines that we support ?
:machine : <span style="color: red">N/A</span> : # index into all the machines that we support ?
:distro : <span style="color: red">N/A</span>
:distro : <span style="color: red">N/A</span>
:distro_version : <span style="color: red">N/A</span>
:distro_version : <span style="color: red">N/A</span>
Line 17: Line 18:
:number_of_errors
:number_of_errors
:number_of_warnings
:number_of_warnings
:cpu_usage : #it's in the build stats; we don't have a meaning
:cpu_usage : # it's in the build stats; we don't have a meaning
:disk_io : #it's in the build stats; we don't have a meaning
:disk_io : # it's in the build stats; we don't have a meaning
:log : #main cooker log
:log : # main cooker log
:output : #list of generated files; downloads
:output : # list of generated files; downloads
:build_name : #bitbake generates a name
:build_name : # bitbake generates a name
 


==== TASKS ====
==== TASKS ====
: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">NOT AVAILABLE</span>
:task_id : <span style="color: red">NOT AVAILABLE</span>
Line 52: Line 53:




==== IMAGES ====
==== TARGETS ====
:uuid          # of build that generated the image
:uuid          # of build that generated the image
:is_image
:packages      # list of packages in that image one to many
:packages      # list of packages in that image one to many
# TBC
# TBC
Line 84: Line 86:
==== VARIABLES ====
==== VARIABLES ====
:uuid
:uuid
:variable_name
:variable_name # a list of `bitbake -e`
:variable_value
:variable_value
:file : # a single file name where the variable is set
:human_readable_name
:description
==== MACHINES ====
:name
:description

Revision as of 10:01, 13 June 2013


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

BUILDS

uuid : DONE : unique task id
target : N/A : # OneToMany to the targets table
machine : N/A : # index into all the machines that we support ?
distro : N/A
distro_version : N/A
host_system : N/A
host_distribution : N/A
target_system : N/A
layers :  : N/A # index into the layer table
started_on
completed_on
number_of_errors
number_of_warnings
cpu_usage : # it's in the build stats; we don't have a meaning
disk_io : # it's in the build stats; we don't have a meaning
log : # main cooker log
output : # list of generated files; downloads
build_name : # bitbake generates a name


TASKS

uuid : DONE -> generated at the beginning of each build.
task_id : NOT AVAILABLE
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 : NOT AVAILABLE
path_to_sstate_obj : NOT AVAILABLE
recipe : DONE -> retrieved from event._package
task_name : DONE -> retrieved from event._task
source_url : NOT AVAILABLE
log_file: NOT AVAILABLE
work_directory : NOT AVAILABLE
script_type : NOT AVAILABLE
file_path : NOT AVAILABLE
line_number : NOT AVAILABLE
py_stack_trace : NOT AVAILABLE
disk_io : NOT AVAILABLE
cpu_usage : NOT AVAILABLE
elapsed_time : DONE -> difference between started and finished time
dependent_tasks : NOT AVAILABLE
errors_no : NOT AVAILABLE
warnings_no : NOT AVAILABLE
error : NOT AVAILABLE
warning : NOT AVAILABLE
sstate_result : NOT AVAILABLE


TARGETS

uuid # of build that generated the image
is_image
packages # list of packages in that image one to many
  1. TBC

PACKAGES

package_id
recipe # recipe that generated this package
  1. TBC

FILELIST

package # id in the list of packages
complete file path
file size
  1. TBC

RECIPES

name
layer # point to a layer index
depends
  1. TBC

LAYERS

name
branch
commit
priority
  1. TBC

VARIABLES

uuid
variable_name # a list of `bitbake -e`
variable_value
file : # a single file name where the variable is set
human_readable_name
description

MACHINES

name
description