Skip to content

Commit

Permalink
modify boot_test schema
Browse files Browse the repository at this point in the history
This patch modifies types of some properties.
Moreover, additional properties are addded namely:
* boot_partition_hash
* boot_partition_branch
* is_boot_partition_release
  • Loading branch information
kimpaller committed Sep 28, 2021
1 parent 8e14372 commit 6d13e05
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
3 changes: 3 additions & 0 deletions telemetry/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ def log_boot_logs(server, in_args):
"boot_folder_name": "NA",
"hdl_hash": "NA",
"linux_hash": "NA",
"boot_partition_hash": "NA",
"hdl_branch": "NA",
"linux_branch": "NA",
"boot_partition_branch": "NA",
"is_hdl_release": False,
"is_linux_release": False,
"is_boot_partition_release" : False,
"uboot_reached": False,
"linux_prompt_reached": False,
"drivers_enumerated": False,
Expand Down
6 changes: 6 additions & 0 deletions telemetry/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ def log_boot_tests(
boot_folder_name,
hdl_hash,
linux_hash,
boot_partition_hash,
hdl_branch,
linux_branch,
boot_partition_branch,
is_hdl_release,
is_linux_release,
is_boot_partition_release,
uboot_reached,
linux_prompt_reached,
drivers_enumerated,
Expand Down Expand Up @@ -83,10 +86,13 @@ def log_boot_tests(
"boot_folder_name": boot_folder_name,
"hdl_hash": hdl_hash,
"linux_hash": linux_hash,
"boot_partition_hash": boot_partition_hash,
"hdl_branch": hdl_branch,
"linux_branch": linux_branch,
"boot_partition_branch": boot_partition_branch,
"is_hdl_release": is_hdl_release,
"is_linux_release": is_linux_release,
"is_boot_partition_release": is_boot_partition_release,
"uboot_reached": uboot_reached,
"linux_prompt_reached": linux_prompt_reached,
"drivers_enumerated": drivers_enumerated,
Expand Down
20 changes: 14 additions & 6 deletions telemetry/resources/boot_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,35 @@
"mappings": {
"properties": {
"boot_folder_name": {
"type": "text"
"type": "keyword"
},
"hdl_hash": {
"type": "text"
},
"linux_hash": {
"type": "text"
},
"hdl_branch": {
"boot_partition_hash": {
"type": "text"
},
"hdl_branch": {
"type": "keyword"
},
"linux_branch": {
"type": "text"
"type": "keyword"
},
"boot_partition_branch": {
"type": "keyword"
},

"is_hdl_release": {
"type": "boolean"
},
"is_linux_release": {
"type": "boolean"
},
"is_boot_partition_release": {
"type": "boolean"
},
"uboot_reached": {
"type": "boolean"
},
Expand All @@ -49,10 +57,10 @@
"type": "integer"
},
"jenkins_project_name": {
"type": "text"
"type": "keyword"
},
"jenkins_agent": {
"type": "text"
"type": "keyword"
}
}
}
Expand Down

0 comments on commit 6d13e05

Please sign in to comment.