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

Analyzer - Generate baseline given results from multiple nodes. #573

Closed
wants to merge 13 commits into from

Conversation

guoshzhao
Copy link
Contributor

Description
Input is jsonline file with results from multiple nodes, generate baseline file according to customized rules.

@guoshzhao guoshzhao requested a review from a team as a code owner November 13, 2023 02:08
@@ -0,0 +1,248 @@
# Copyright (c) Microsoft Corporation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please add a document for this function?

folder = args.input_dir
if args.algo == 'mean':
# simply use mean, need result_summary rules to define how to aggregate the metrics.
print('Generate baseine using mean of the data.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to use logger?

logger.error('Analyzer: generate baseline failed, msg: {}'.format(str(e)))


if __name__ == '__main__':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please remove the main()? It should be the feature for sb command

@@ -0,0 +1,248 @@
# Copyright (c) Microsoft Corporation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please add test for this function

logger.error('Analyzer: generate statisitics failed, msg: {}'.format(str(e)))


if __name__ == '__main__':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the main as well. Shall we separate PR for these two functions? We can merge generate_baseline first.

Copy link

codecov bot commented Nov 19, 2023

Codecov Report

Attention: 220 lines in your changes are missing coverage. Please review.

Comparison is base (97c9a41) 87.33% compared to head (6ded588) 79.65%.
Report is 32 commits behind head on main.

Files Patch % Lines
superbench/analyzer/generate_baseline.py 0.00% 127 Missing ⚠️
superbench/analyzer/generate_statistic.py 0.00% 92 Missing ⚠️
superbench/analyzer/file_handler.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #573      +/-   ##
==========================================
- Coverage   87.33%   79.65%   -7.68%     
==========================================
  Files          89       95       +6     
  Lines        5946     7045    +1099     
==========================================
+ Hits         5193     5612     +419     
- Misses        753     1433     +680     
Flag Coverage Δ
directx-unit-test 34.40% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@guoshzhao
Copy link
Contributor Author

@cp5555 This branch is used by many teams, to make sure their migration be safe, will not submit commits anymore to this branch. Please review the new one: #575

@guoshzhao guoshzhao closed this Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants