Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Sep 15, 2024
1 parent d2344dc commit 32d3a30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions ci/cudf_pandas_scripts/pandas-tests/job-summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def emoji_failed(x):
pr_df['CPU Usage'] = ((pr_df['_slow_function_call']/(pr_df['_slow_function_call'] + pr_df['_fast_function_call']))*100.0).round(1)
pr_df['GPU Usage'] = ((pr_df['_fast_function_call']/(pr_df['_slow_function_call'] + pr_df['_fast_function_call']))*100.0).round(1)

cpu_usage_mean = pr_df['CPU Usage'].mean()
gpu_usage_mean = pr_df['GPU Usage'].mean()
cpu_usage_mean = pr_df['CPU Usage'].mean().round(2)
gpu_usage_mean = pr_df['GPU Usage'].mean().round(2)

# Add '%' suffix to 'CPU Usage' and 'GPU Usage' columns
pr_df['CPU Usage'] = pr_df['CPU Usage'].astype(str) + '%'
Expand Down Expand Up @@ -108,6 +108,7 @@ def emoji_failed(x):
print(comment)
print()
print(f"Average CPU and GPU usage for the tests: {cpu_usage_mean} % and {gpu_usage_mean} %")
print()
print("Here are the results of running the Pandas tests against this PR:")
print()
print(df.to_markdown())
5 changes: 2 additions & 3 deletions python/cudf/cudf/pandas/scripts/run-pandas-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,10 @@ TEST_THAT_CRASH_PYTEST_WORKERS="not test_bitmasks_pyarrow \
and not test_large_string_pyarrow \
and not test_interchange_from_corrected_buffer_dtypes \
and not test_eof_states \
and not test_array_tz \
and not test_groupby_raises_category"
and not test_array_tz"

# TODO: Remove "not db" once a postgres & mysql container is set up on the CI
PANDAS_CI="1" timeout 600m python -m pytest -p cudf.pandas \
PANDAS_CI="1" timeout 90m python -m pytest -p cudf.pandas \
-v -m "not single_cpu and not db" \
-k "$TEST_THAT_NEED_MOTO_SERVER and $TEST_THAT_CRASH_PYTEST_WORKERS and not test_groupby_raises_category_on_category and not test_constructor_no_pandas_array and not test_is_monotonic_na and not test_index_contains and not test_index_contains and not test_frame_op_subclass_nonclass_constructor and not test_round_trip_current" \
--import-mode=importlib \
Expand Down

0 comments on commit 32d3a30

Please sign in to comment.