Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended db_collection help with available values in memcheck_upload.py #651

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions tests/stress_tests/scripts/memcheck_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ def query_timeline(records, db_url, db_collection, max_items=20, similarity=TIME
def create_memcheck_report(records, db_url, db_collection, output_path):
""" Create memcheck timeline HTML report for records.
"""
if db_collection == 'pre_commit':
db_collection = 'commit' # pre-commit jobs building report from past commits
records.sort(
key=lambda item: f"{item['status']}{item['device']}{item['model']}{item['test_name']}")
timelines = query_timeline(records, db_url, db_collection)
Expand Down Expand Up @@ -203,7 +201,8 @@ def main():
parser.add_argument('--db_url', required=not is_dryrun,
help='MongoDB URL in a for "mongodb://server:port".')
parser.add_argument('--db_collection', required=not is_dryrun,
help=f'Collection name in {DATABASE} database to upload')
help=f'Collection name in {DATABASE} database to upload.',
choices=["commit", "nightly", "weekly"])
parser.add_argument('--artifact_root', required=True,
help=f'A root directory to strip from log path before upload.')
parser.add_argument('--append', help='JSON to append to each item.')
Expand Down