Skip to content

Conversation

@CRZbulabula
Copy link
Contributor

@CRZbulabula CRZbulabula commented Dec 21, 2025

To verify the model management framework, we append corresponding correctness and error handling CI in this PR, employing the Chronos2 model as example.

@codecov
Copy link

codecov bot commented Dec 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.20%. Comparing base (340a860) to head (fef2e10).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #16938      +/-   ##
============================================
+ Coverage     39.18%   39.20%   +0.01%     
  Complexity      212      212              
============================================
  Files          5048     5050       +2     
  Lines        335053   335124      +71     
  Branches      42707    42720      +13     
============================================
+ Hits         131303   131369      +66     
- Misses       203750   203755       +5     

☔ 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.

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 PR adds integration tests for AINode model management and refines the model registration workflow, particularly for user-defined Transformers models.

Key Changes:

  • Enhanced error handling for Transformers model registration with explicit exception propagation
  • Refactored model storage to remove private field prefix (_transformers_registeredtransformers_registered)
  • Added comprehensive integration tests for user-defined model lifecycle (register, inference/forecast, drop)

Reviewed changes

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

Show a summary per file
File Description
ainode.thrift Reordered TRegisterModelReq parameters (modelId before uri) for better API consistency
model_storage.py Improved exception handling in model registration; refactored field naming; enhanced thread safety in registration flow
model_info.py Removed private field prefix for transformers_registered; updated Chronos2 config reference
model_manager.py Added generic exception handler for model registration; removed _refresh() call from show_models for performance
AINodeTestUtils.java Added reusable data preparation methods for tree and table dialects
AINodeModelManageIT.java Added comprehensive integration tests for user-defined model management in both dialects
AINodeForecastIT.java Refactored to use shared data preparation utility; made forecastTableFunctionTest static for reuse
AINodeCallInferenceIT.java Refactored to use shared data preparation utility; made callInferenceTest static for reuse
AINodeWrapper.java Updated CACHE_BUILT_IN_MODEL_PATH to use more general directory path

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

@RkGrit
Copy link
Contributor

RkGrit commented Dec 22, 2025

LGTM!

…deModelManageIT.java

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

LGTM!

@sonarqubecloud
Copy link

@CRZbulabula CRZbulabula merged commit 52002e8 into master Dec 23, 2025
31 of 32 checks passed
@CRZbulabula CRZbulabula deleted the create-model-CI branch December 23, 2025 04:24
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