Fix TslibDataModule setup re-entrancy guards#2245
Fix TslibDataModule setup re-entrancy guards#2245Ajeem-git wants to merge 3 commits intosktime:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2245 +/- ##
=======================================
Coverage ? 86.53%
=======================================
Files ? 166
Lines ? 9784
Branches ? 0
=======================================
Hits ? 8467
Misses ? 1317
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Nice work ! One question: Should Otherwise LGTM. |
|
Good catch. test was already guarded with a check that only creates the dataset once, but predict was not consistent with that yet. I pushed a small follow-up to make predict re-entrant as well, and added a regression test for repeated setup(stage="predict") calls. |
|
Cool! The predict stage guard and regression test look correct. LGTM One small note for future consistency: the test stage still uses the old _test_dataset guard (if not hasattr(self, "_test_dataset"):). Since _test_dataset is never assigned, this guard doesn’t actually prevent re-creation. Might be worth a follow-up PR to align it with the fit/predict pattern. Not a blocker for this PR though. |
Summary
Testing
Closes #2218