Skip to content

Conversation

@polarG
Copy link
Contributor

@polarG polarG commented Jan 21, 2026

Description

  • Deprecated API arguments, 'interpolation', when numpy >v1.22.0. And it was removed since v2.4.0.
  • Pandas to_exel() failed in unit test.

Solution

  • Update the NumPy API usage to support NumPy 1.22.0+ while maintaining backward compatibility with earlier versions.
  • Fixed the pandas to_excel() API compatibility issue. In newer versions of pandas (2.0+), the 'sheet_name' parameter must be passed as a keyword argument rather than a positional argument

… backward compatibility with earlier versions
@polarG polarG requested a review from a team as a code owner January 21, 2026 23:14
@polarG polarG changed the title CICD - Update the NumPy API usage to support NumPy 1.22.0+ CI/CD - Update the NumPy API usage to support NumPy 1.22.0+ Jan 21, 2026
@polarG polarG requested review from abuccts and guoshzhao January 21, 2026 23:15
@abuccts abuccts requested a review from Copilot January 21, 2026 23:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the NumPy API usage to support NumPy 1.22.0+ while maintaining backward compatibility with earlier versions. The change addresses the deprecation and eventual removal of the interpolation parameter in np.percentile(), which was replaced with the method parameter.

Changes:

  • Updated _process_percentile_result method to use try-except pattern for NumPy API compatibility
  • Attempts to use the newer method parameter first, falling back to deprecated interpolation parameter for older NumPy versions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.70%. Comparing base (4d7d6c4) to head (8c5146a).
⚠️ Report is 2 commits behind head on hongtaozhang/fix-image-build.

Additional details and impacted files
@@                      Coverage Diff                      @@
##           hongtaozhang/fix-image-build     #774   +/-   ##
=============================================================
  Coverage                         85.69%   85.70%           
=============================================================
  Files                               102      102           
  Lines                              7699     7703    +4     
=============================================================
+ Hits                               6598     6602    +4     
  Misses                             1101     1101           
Flag Coverage Δ
cpu-python3.10-unit-test 70.96% <77.77%> (-0.02%) ⬇️
cpu-python3.12-unit-test 70.96% <77.77%> (-0.01%) ⬇️
cpu-python3.7-unit-test 70.43% <100.00%> (+0.01%) ⬆️
cuda-unit-test 83.59% <77.77%> (-0.02%) ⬇️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

polarG and others added 2 commits January 21, 2026 15:53
Update exception handler.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@polarG polarG changed the title CI/CD - Update the NumPy API usage to support NumPy 1.22.0+ CI/CD - Update the NumPy/Pandas API usage Jan 22, 2026
@polarG polarG requested a review from Copilot January 22, 2026 00:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Remove redundant logic.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

polarG and others added 2 commits January 21, 2026 17:03
Revert to previous version.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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