Event information model for Toaster: Difference between revisions
From Yocto Project
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
: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> : # OneToMany to the targets table | :target : <span style="color: red">N/A</span> : # OneToMany to the targets table | ||
:machine : <span style="color: | :machine : <span style="color: green">DONE</span> : # index into all the machines that we support ? # we can ask bitbake for the machine variable | ||
:distro : <span style="color: | :distro : <span style="color: green">DONE</span> : # we can ask bitbake for the distro variable | ||
:distro_version : <span style="color: | :distro_version : <span style="color: green">DONE</span> : # we can ask bitbake for the distro version variable | ||
:host_system : <span style="color: red">N/A</span> | :host_system : <span style="color: red">N/A</span> | ||
:host_distribution : <span style="color: red">N/A</span> | :host_distribution : <span style="color: red">N/A</span> | ||
:target_system : <span style="color: red">N/A</span> | :target_system : <span style="color: red">N/A</span> | ||
:layers : : <span style="color: | :layers : : <span style="color: green">DONE</span> # index into the layer table ? # we can ask bitbake for the list (BBLAYERS) | ||
:started_on | :started_on : <span style="color: red">N/A</span> # Is there a build started event we can use ? | ||
:completed_on | :completed_on <span style="color: red">N/A</span> # Is there a build success event or should we grab this when events processing has ended ? | ||
:number_of_errors | :outcome : <span style="color: green">DONE</span> # We can grab this at the end of all commands by checking the errors number or the return value. | ||
:number_of_warnings | :number_of_errors <span style="color: red">N/A</span> | ||
:cpu_usage : # it's in the build stats; we don't have a meaning | :number_of_warnings <span style="color: red">N/A</span> | ||
:disk_io : # 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 | ||
:log : # main cooker log | :disk_io : <span style="color: red">N/A</span> # it's in the build stats; we don't have a meaning | ||
:output : # list of generated files; downloads | :log : <span style="color: red">N/A</span> # main cooker log | ||
:build_name : # bitbake generates a name | :output : <span style="color: red">N/A</span> # list of generated files; downloads | ||
:build_name : <span style="color: red">N/A</span> # bitbake generates a name | |||
:bitbake_version : <span style="color: red">N/A</span> | |||
==== 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"> | :task_id :<span style="color: red">N/A</span> | ||
:order : <span style="color: green">DONE</span> -> counted on each TaskStarted event | :order : <span style="color: green">DONE</span> -> counted on each TaskStarted event | ||
:task_executed : <span style="color: green">DONE</span> -> set to True for each TaskStarted event | :task_executed : <span style="color: green">DONE</span> -> set to True for each TaskStarted event | ||
:outcome : <span style="color: green">DONE</span>? -> retrieved from event.getDisplayName() # is this OK ? | :outcome : <span style="color: green">DONE</span>? -> retrieved from event.getDisplayName() # is this OK ? | ||
:sstate_checksum : <span style="color: red"> | :sstate_checksum : <span style="color: red">N/A</span> | ||
:path_to_sstate_obj : <span style="color: red"> | :path_to_sstate_obj : <span style="color: red">N/A</span> | ||
:recipe : <span style="color: green">DONE</span> -> retrieved from event._package | :recipe : <span style="color: green">DONE</span> -> retrieved from event._package | ||
:task_name : <span style="color: green">DONE</span> -> retrieved from event._task | :task_name : <span style="color: green">DONE</span> -> retrieved from event._task | ||
*index on recipe / task_name | *index on recipe / task_name | ||
:source_url : <span style="color: red"> | :source_url : <span style="color: red">N/A</span> | ||
:log_file: <span style="color: red"> | :log_file: <span style="color: red">N/A</span> | ||
:work_directory : <span style="color: red"> | :work_directory : <span style="color: red">N/A</span> | ||
:script_type : <span style="color: red"> | :script_type : <span style="color: red">N/A</span> | ||
:file_path : <span style="color: red"> | :file_path : <span style="color: red">N/A</span> | ||
:line_number : <span style="color: red"> | :line_number : <span style="color: red">N/A</span> | ||
:py_stack_trace : <span style="color: red"> | :py_stack_trace : <span style="color: red">N/A</span> | ||
:disk_io : <span style="color: red"> | :disk_io : <span style="color: red">N/A</span> | ||
:cpu_usage : <span style="color: red"> | :cpu_usage : <span style="color: red">N/A</span> | ||
:elapsed_time : <span style="color: green">DONE</span> -> difference between started and finished time | :elapsed_time : <span style="color: green">DONE</span> -> difference between started and finished time | ||
:errors_no : <span style="color: red"> | :errors_no : <span style="color: red">N/A</span> | ||
:warnings_no : <span style="color: red"> | :warnings_no : <span style="color: red">N/A</span> | ||
:error : <span style="color: red"> | :error : <span style="color: red">N/A</span> | ||
:warning : <span style="color: red"> | :warning : <span style="color: red">N/A</span> | ||
:sstate_result : <span style="color: red"> | :sstate_result : <span style="color: red">N/A</span> | ||
:diffsigs : <span style="color: red">N/A</span> | |||
==== TASK DEPENDENCY ==== | ==== TASK DEPENDENCY ==== | ||
:task_id | :task_id : <span style="color: red">N/A</span> | ||
:depends_on | :depends_on : <span style="color: red">N/A</span> # still a task_id | ||
==== TARGETS ==== | ==== TARGETS ==== | ||
:uuid | :uuid : <span style="color: red">N/A</span> # of build that generated the image | ||
:is_image | :is_image : <span style="color: red">N/A</span> | ||
# TBC | # TBC | ||
==== ARTIFACTS ==== | ==== ARTIFACTS ==== | ||
:uuid | :uuid : <span style="color: red">N/A</span> | ||
:target_id | :target_id : <span style="color: red">N/A</span> | ||
:file_name | :file_name : <span style="color: red">N/A</span> | ||
:file_size | :file_size : <span style="color: red">N/A</span> | ||
==== PACKAGES IN IMAGES ==== | ==== PACKAGES IN IMAGES ==== | ||
:package_id | :package_id : <span style="color: red">N/A</span> | ||
:target_id | :target_id : <span style="color: red">N/A</span> | ||
==== PACKAGES ==== | ==== PACKAGES ==== | ||
:package_id | :package_id : <span style="color: red">N/A</span> | ||
:recipe | :recipe : <span style="color: red">N/A</span> # recipe that generated this package | ||
:name | :name : <span style="color: red">N/A</span> | ||
:version | :version : <span style="color: red">N/A</span> | ||
:size | :size : <span style="color: red">N/A</span> | ||
==== PACKAGE DEPENDENCIES ==== | ==== PACKAGE DEPENDENCIES ==== | ||
:package_id | :package_id : <span style="color: red">N/A</span> | ||
:depends_on | :depends_on : <span style="color: red">N/A</span> | ||
==== FILELIST ==== | ==== FILELIST ==== | ||
:package_id | :package_id : <span style="color: red">N/A</span> # id in the list of packages | ||
:complete file path | :complete file path : <span style="color: red">N/A</span> | ||
:file size | :file size : <span style="color: red">N/A</span> | ||
==== RECIPES ==== | ==== RECIPES ==== | ||
:name | :name : <span style="color: red">N/A</span> | ||
:version | :version : <span style="color: red">N/A</span> | ||
:layer # point to a layer index | :layer : <span style="color: red">N/A</span> # point to a layer index | ||
:summary | :summary : <span style="color: red">N/A</span> | ||
:description | :description : <span style="color: red">N/A</span> | ||
:section ? | :section : <span style="color: red">N/A</span> ? | ||
:license | :license : <span style="color: red">N/A</span> | ||
:licensing info ? | :licensing info: <span style="color: red">N/A</span> ? | ||
:homepage ? | :homepage : <span style="color: red">N/A</span> ? | ||
:bugtracker ? | :bugtracker : <span style="color: red">N/A</span> ? | ||
:author ? | :author : <span style="color: red">N/A</span> ? | ||
:file_path ? | :file_path : <span style="color: red">N/A</span> ? | ||
==== RECIPE DEPENDENCY ==== | ==== RECIPE DEPENDENCY ==== | ||
:recipe_id | :recipe_id : <span style="color: red">N/A</span> | ||
:depends_on | :depends_on : <span style="color: red">N/A</span> # also a recipe id | ||
==== LAYERS ==== | ==== LAYERS ==== | ||
:name | :name : <span style="color: red">N/A</span> | ||
:branch | :branch : <span style="color: red">N/A</span> | ||
:commit | :commit : <span style="color: red">N/A</span> | ||
:priority | :priority : <span style="color: red">N/A</span> | ||
:link to oecore layer index ? | :link to oecore layer index: <span style="color: red">N/A</span> ? | ||
# TBC | # TBC | ||
==== VARIABLES ==== | ==== VARIABLES ==== | ||
:uuid | :uuid : <span style="color: red">N/A</span> | ||
:variable_name # a list of `bitbake -e` | :variable_name : <span style="color: red">N/A</span> # a list of `bitbake -e` | ||
:variable_value | :variable_value : <span style="color: red">N/A</span> | ||
:file : # a single file name where the variable is set | :file : <span style="color: red">N/A</span> # a single file name where the variable is set | ||
:human_readable_name | :changed : <span style="color: red">N/A</span> | ||
:description | :human_readable_name : <span style="color: red">N/A</span> | ||
:description : <span style="color: red">N/A</span> | |||
==== MACHINES ==== | ==== MACHINES ==== | ||
:name | :name : <span style="color: red">N/A</span> | ||
:description | :description : <span style="color: red">N/A</span> |
Revision as of 16:22, 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 : DONE : # index into all the machines that we support ? # we can ask bitbake for the machine variable
- distro : DONE : # we can ask bitbake for the distro variable
- distro_version : DONE : # we can ask bitbake for the distro version variable
- host_system : N/A
- host_distribution : N/A
- target_system : N/A
- layers : : DONE # index into the layer table ? # we can ask bitbake for the list (BBLAYERS)
- started_on : N/A # Is there a build started event we can use ?
- completed_on N/A # Is there a build success event or should we grab this when events processing has ended ?
- outcome : DONE # We can grab this at the end of all commands by checking the errors number or the return value.
- number_of_errors N/A
- number_of_warnings N/A
- 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
- log : N/A # main cooker log
- output : N/A # list of generated files; downloads
- build_name : N/A # bitbake generates a name
- bitbake_version : N/A
TASKS
- 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_id : N/A
- depends_on : N/A # still a task_id
TARGETS
- uuid : N/A # of build that generated the image
- is_image : N/A
- TBC
ARTIFACTS
- uuid : N/A
- target_id : N/A
- file_name : N/A
- file_size : N/A
PACKAGES IN IMAGES
- package_id : N/A
- target_id : N/A
PACKAGES
- package_id : N/A
- recipe : N/A # recipe that generated this package
- name : N/A
- version : N/A
- size : N/A
PACKAGE DEPENDENCIES
- package_id : N/A
- depends_on : N/A
FILELIST
- package_id : N/A # id in the list of packages
- complete file path : N/A
- file size : N/A
RECIPES
- 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_id : N/A
- depends_on : N/A # also a recipe id
LAYERS
- name : N/A
- branch : N/A
- commit : N/A
- priority : N/A
- link to oecore layer index: N/A ?
- TBC
VARIABLES
- uuid : 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
MACHINES
- name : N/A
- description : N/A