Skip to content

Commit

Permalink
Add branch field to submit to DB in MemCheck/TimeTests (openvinotoo…
Browse files Browse the repository at this point in the history
  • Loading branch information
just-sparta authored Jun 11, 2021
1 parent 167a551 commit 089f76c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/stress_tests/scripts/memcheck_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def metadata_from_manifest(manifest):
'commit_sha': repo_trigger['revision'],
'commit_date': repo_trigger['commit_time'],
'repo_url': repo_trigger['url'],
'branch': repo_trigger['branch'],
'target_branch': repo_trigger['target_branch'],
'event_type': manifest['components'][PRODUCT_NAME]['build_event'].lower(),
f'{PRODUCT_NAME}_version': manifest['components'][PRODUCT_NAME]['version'],
Expand Down
3 changes: 2 additions & 1 deletion tests/time_tests/test_runner/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,11 @@ def manifest_metadata(request):
"repo_url": {"type": "string"},
"commit_sha": {"type": "string"},
"commit_date": {"type": "string"},
"branch": {"type": "string"},
"target_branch": {"type": "string"},
"version": {"type": "string"}
},
"required": ["product_type", "repo_url", "commit_sha", "commit_date", "target_branch", "version"],
"required": ["product_type", "repo_url", "commit_sha", "commit_date", "branch", "target_branch", "version"],
"additionalProperties": false
}
"""
Expand Down
3 changes: 2 additions & 1 deletion tests/time_tests/test_runner/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def metadata_from_manifest(manifest: Path):
'commit_sha': repo_trigger['revision'],
'commit_date': repo_trigger['commit_time'],
'repo_url': repo_trigger['url'],
'target_branch': repo_trigger['branch'],
'branch': repo_trigger['branch'],
'target_branch': repo_trigger['target_branch'],
'version': manifest['components'][PRODUCT_NAME]['version']
}

Expand Down

0 comments on commit 089f76c

Please sign in to comment.