Skip to content

Commit

Permalink
add jenkins_trigger field
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpaller committed Sep 28, 2021
1 parent a8a311c commit 443aaa7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions telemetry/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def log_boot_logs(server, in_args):
"jenkins_build_number": 0,
"jenkins_project_name": 0,
"jenkins_agent": "NA",
"jenkins_trigger": "NA",
"pytest_errors": 0,
"pytest_failures": 0,
"pytest_skipped": 0,
Expand Down
2 changes: 2 additions & 0 deletions telemetry/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def log_boot_tests(
jenkins_build_number,
jenkins_project_name,
jenkins_agent,
jenkins_trigger,
pytest_errors,
pytest_failures,
pytest_skipped,
Expand Down Expand Up @@ -115,6 +116,7 @@ def log_boot_tests(
"jenkins_build_number": jenkins_build_number,
"jenkins_project_name": jenkins_project_name,
"jenkins_agent": jenkins_agent,
"jenkins_trigger": jenkins_trigger,
"source_adjacency_matrix" : self.get_adjacency_matrix(**args),
"pytest_errors": pytest_errors,
"pytest_failures": pytest_failures,
Expand Down
3 changes: 3 additions & 0 deletions telemetry/resources/boot_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
"jenkins_agent": {
"type": "keyword"
},
"jenkins_trigger": {
"type": "keyword"
},
"source_adjacency_matrix": {
"type": "keyword"
},
Expand Down
1 change: 1 addition & 0 deletions telemetry/searches.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def boot_tests(self, boot_folder_name=None):
# "jenkins_build_number",
# "jenkins_project_name",
# "jenkins_agent",
# "jenkins_trigger",
# "source_adjacency_matrix",
# "pytest_errors",
# "pytest_failures",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def test_ingest_boot_tests_stats():
"jenkins_build_number": 34,
"jenkins_project_name": "pyadi-iio-hw",
"jenkins_agent": "master",
"jenkins_trigger": "manual"
}

tel.log_boot_tests(**inputs)
Expand Down Expand Up @@ -268,6 +269,7 @@ def test_search_boot_tests():
"jenkins_build_number": 34,
"jenkins_project_name": "pyadi-iio-hw",
"jenkins_agent": "master",
"jenkins_trigger": "manual"
}

tel.log_boot_tests(**inputs)
Expand Down

0 comments on commit 443aaa7

Please sign in to comment.