Commit bd2450a
committed
fix(feature-store): Fix FeatureGroupManager code issues and improve test coverage
- Use isinstance() for Unassigned checks instead of == Unassigned()
- Add class-level type annotation for _lf_client_cache
- Replace fragile docstring inheritance with proper docstring
- Fix create() to return FeatureGroupManager instead of FeatureGroup
by calling cls.get() after super().create()
- Update create() return type annotation to Optional[FeatureGroupManager]
- Add feature_group_arn validation before S3 policy generation
- Fix integ test logger name (feature_group -> feature_group_manager)
- Rename test_lakeformation.py to test_feature_group_manager.py
- Add unit tests for: return type verification, Iceberg table format
S3 path handling, missing ARN validation, happy-path return values,
session/region pass-through, and region inference from session
---
X-AI-Prompt: Review FeatureGroupManager class, fix identified issues, increase test coverage
X-AI-Tool: kiro-cli1 parent 77516d6 commit bd2450a
File tree
3 files changed
+384
-16
lines changed- sagemaker-mlops
- src/sagemaker/mlops/feature_store
- tests
- integ
- unit/sagemaker/mlops/feature_store
3 files changed
+384
-16
lines changedLines changed: 21 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 61 | + | |
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
| |||
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
224 | | - | |
225 | | - | |
| 223 | + | |
| 224 | + | |
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
| |||
470 | 469 | | |
471 | 470 | | |
472 | 471 | | |
473 | | - | |
| 472 | + | |
474 | 473 | | |
475 | 474 | | |
476 | 475 | | |
477 | 476 | | |
478 | 477 | | |
479 | 478 | | |
480 | | - | |
| 479 | + | |
481 | 480 | | |
482 | 481 | | |
483 | 482 | | |
| |||
493 | 492 | | |
494 | 493 | | |
495 | 494 | | |
496 | | - | |
| 495 | + | |
497 | 496 | | |
498 | 497 | | |
499 | 498 | | |
| |||
599 | 598 | | |
600 | 599 | | |
601 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
602 | 608 | | |
603 | 609 | | |
604 | 610 | | |
| |||
659 | 665 | | |
660 | 666 | | |
661 | 667 | | |
662 | | - | |
| 668 | + | |
663 | 669 | | |
664 | | - | |
| 670 | + | |
665 | 671 | | |
666 | 672 | | |
667 | 673 | | |
| |||
682 | 688 | | |
683 | 689 | | |
684 | 690 | | |
685 | | - | |
| 691 | + | |
686 | 692 | | |
687 | 693 | | |
688 | 694 | | |
| |||
744 | 750 | | |
745 | 751 | | |
746 | 752 | | |
747 | | - | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
748 | 757 | | |
749 | 758 | | |
750 | 759 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
501 | | - | |
| 501 | + | |
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
| 627 | + | |
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| |||
0 commit comments