Skip to content

Commit

Permalink
add pytest_errors and pytest_failures to boot_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpaller committed Sep 28, 2021
1 parent c452111 commit bed955a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions telemetry/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def log_boot_logs(server, in_args):
"jenkins_build_number": 0,
"jenkins_project_name": 0,
"jenkins_agent": "NA",
"pytest_errors": 0,
"pytest_failures": 0
}
if len(in_args) == 0:
click.echo("Must have non-zero arguments for database entry")
Expand Down
6 changes: 5 additions & 1 deletion telemetry/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def log_boot_tests(
jenkins_build_number,
jenkins_project_name,
jenkins_agent,
pytest_errors,
pytest_failures
):
""" Upload boot test results to elasticsearch """
# Build will produce the following:
Expand Down Expand Up @@ -107,7 +109,9 @@ def log_boot_tests(
"jenkins_build_number": jenkins_build_number,
"jenkins_project_name": jenkins_project_name,
"jenkins_agent": jenkins_agent,
"source_adjacency_matrix" : self.get_adjacency_matrix(**args)
"source_adjacency_matrix" : self.get_adjacency_matrix(**args),
"pytest_errors": pytest_errors,
"pytest_failures": pytest_failures
}
# Setup index if necessary
self.db.index_name = "dummy" if self.use_test_index else "boot_tests"
Expand Down
6 changes: 6 additions & 0 deletions telemetry/resources/boot_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
},
"source_adjacency_matrix": {
"type": "keyword"
},
"pytest_errors": {
"type": "integer"
},
"pytest_failures": {
"type": "integer"
}
}
}
Expand Down

0 comments on commit bed955a

Please sign in to comment.