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

Enhance Benchmark Report Generation #2248

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pvk-developer
Copy link
Member

@pvk-developer pvk-developer commented Oct 2, 2024

Resolves #2235

CU-86b2975ca

@pvk-developer pvk-developer force-pushed the issue-2235-enhance-benchmark-report-generation branch from 31f7d63 to 40a66fa Compare October 3, 2024 07:03
@pvk-developer pvk-developer marked this pull request as ready for review October 3, 2024 07:14
@pvk-developer pvk-developer requested a review from a team as a code owner October 3, 2024 07:14
@pvk-developer pvk-developer requested review from frances-h and removed request for a team October 3, 2024 07:14
@sdv-team
Copy link
Contributor

sdv-team commented Oct 3, 2024

@@ -39,6 +39,8 @@ jobs:
run: |
invoke benchmark-dtypes
continue-on-error: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add a timeout-minutes to the run_dtypes_benchmark job?

Copy link
Member Author

@pvk-developer pvk-developer Oct 4, 2024

Choose a reason for hiding this comment

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

We can set it up to 20 minutes. This are the actual times for it:
image

PS:
The reason of the continue-on-error is to continue and generate the report even if pytest fails. That way we can then send a message on slack and update the reports marking what failed during the execution.

Copy link
Contributor

@amontanez24 amontanez24 left a comment

Choose a reason for hiding this comment

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

This looks good! Some minor nitpicks but otherwise good job!

for key, value in comparison_results.items():
if not value.empty:
sorted_results[key] = value
if key == 'unsupported_dtypes':
slack_messages.append(':fire: New unsupported DTypes!')
mark_results['#EB9999'] = value
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: we should label the hex codes as constants like RED_HEX = ... or whatever it is

# Compute the summary
summary = pd.DataFrame()
for name, df in results.items():
df = calculate_support_percentage(df)
Copy link
Contributor

Choose a reason for hiding this comment

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

what does this df represent? Can we name it accordingly

@@ -117,6 +133,8 @@ def save_to_gdrive(output_folder, results, output_filename=None):
output_filename (str, optional):
String representing the filename to be used for the results spreadsheet. If None,
uses to the current date and commit as the name. Defaults to None.
mark_results (dict, optional):
A dict mapping to mark the results.
Copy link
Contributor

Choose a reason for hiding this comment

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

mapping what to the mark?

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.

Enhance Benchmark Report Generation
5 participants