feat: Add StorageFactory and VariableFactory with service registration#13728
feat: Add StorageFactory and VariableFactory with service registration#13728dkaushik94 wants to merge 1 commit into
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughTwo new service factory classes, ChangesDefault Storage and Variable Factories
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 8 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (8 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
✅ Test Coverage AdvisorNo source changes detected without accompanying tests. Thanks for keeping coverage up! 🎉
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-1.11.0 #13728 +/- ##
==================================================
+ Coverage 58.71% 58.85% +0.14%
==================================================
Files 2309 2311 +2
Lines 220388 221161 +773
Branches 31204 34248 +3044
==================================================
+ Hits 129391 130164 +773
- Misses 89528 89529 +1
+ Partials 1469 1468 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Hey @dkaushik94, I think the Python 3.14 failure is a real regression, not a flake. Registering a default storage service flips the Repro on the branch: It only shows up on the full suite because something registers storage globally before the schema tests run, so running I think the fix belongs here, since the registration is what changes the contract. Could the file reading decide local vs storage by the shape of the path (an absolute local path vs a The same What do you think? |
Yeah, this is a failing test. I was looking into it. Thanks for the pointers, I'll fix and push a clean build. |
d8d9c93 to
eb61060
Compare
Jkavia
left a comment
There was a problem hiding this comment.
One small thing: the storage service has nice validation guards to block path traversal (like ../etc or null bytes in the flow_id). But the test suite doesn't actually verify those guards work when the factory creates the service.
Not a blocker at all, just a thought: a test like test_storage_rejects_traversal() that tries to write to ../etc and confirms it fails would be good insurance against future regressions. But if you want to keep this PR scoped to just factory registration, totally fine to punt on that.
…nd VariableService to LFX service discovery routine to return service objects, and not None. Internal method calls still call noop, but avoids disgraceful errors such as AttributeError(s).
ff0d340 to
f00016e
Compare
Added
StorageFactoryandVariableFactory. RegisteredStorageServiceandVariableServiceto the LFX service discovery routine to return service objects, and not None. Internal method calls still call noop, but avoid disgraceful errors such asAttributeError(s).Summary by CodeRabbit
Release Notes
New Features
Tests