Repository navigation
chore: Remove unused UI wrapper app from the Python SDK - #7184
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7184 +/- ##
=======================================
Coverage 53.67% 53.67%
=======================================
Files 462 462
Lines 58549 58549
Branches 8634 8634
=======================================
Hits 31424 31424
Misses 24988 24988
Partials 2137 2137
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
haoxu0
left a comment
There was a problem hiding this comment.
LGTM. The unused wrapper removal and updated UI build path look sound. Unit, integration, Docker smoke, and packaging checks provide good coverage for the change.
The files in sdk/python/feast/ui (package.json, yarn.lock, .yarnrc, src/, public/, README.md) were a small React wrapper around the published @feast-dev/feast-ui package. `feast ui` never reads them: it only serves sdk/python/feast/ui/build, which `make build-ui` produces from the root ui/ folder. The wrapper still pinned old npm packages, which security scanners flag as CVEs in the shipped package. Dockerfile.dev was the only thing still using the wrapper (through yalc). Switch it to `make build-ui`, the same step the wheel build uses, and drop the wrapper files from the release commit assets. Dockerfile.dev now installs Node 22 from the UBI nodejs:22 module stream to match ui/.nvmrc, because yarn rejects the default Node 16. Also update ui/CONTRIBUTING.md, which still pointed at the wrapper. Signed-off-by: Chaitany Patel <patelchaitany93@gmail.com>
6f22d23 to
95fc98b
Compare
What this PR does / why we need it:
Removes the unused React wrapper app from
sdk/python/feast/uiand switchesDockerfile.devtomake build-ui.sdk/python/feast/uiheld a small wrapper app (package.json,yarn.lock,.yarnrc,src/,public/,README.md) around the published@feast-dev/feast-uipackage.feast uinever reads these files. It only servessdk/python/feast/ui/build, whichmake build-uibuilds from the rootui/folder. The wrapper still pins old npm packages (@feast-dev/feast-ui0.57.0,react-scripts5 and their lockfile), and security scanners flag them as CVEs in the shipped Python package.Changes:
sdk/python/feast/ui/__init__.pystays.build/is still created bymake build-uiand shipped throughMANIFEST.in, as before.Dockerfile.dev: this was the only thing still using the wrapper (throughyalc). It now runsmake build-ui, the same step the wheel build uses.yalcis dropped andmakeis added. It also installs Node 22 from the UBInodejs:22module stream to matchui/.nvmrc. UBI9's defaultnpmpackage brings Node 16, whichyarnrejects for the rootui/dependencies. The old flow got past that only becausenpm installwarns on engine mismatches instead of failing..releaserc.js: remove the deletedpackage.jsonandyarn.lockfrom the release commit assets.ui/CONTRIBUTING.md: stop pointing at the wrapper folder and describe themake build-uiflow.The regular
multicloud/Dockerfileneeds no change. It installsfeastfrom PyPI, and that wheel already ships the built UI.Which issue(s) this PR fixes:
N/A
Checks
git commit -s)Testing Strategy
Manual tests:
make build-uifrom a clean UI build, then built the wheel from a clean clone. The wheel'sfeast/ui/contains only__init__.pyandbuild/(1,041 files). Installed it in a fresh venv and ranfeast init,feast applyandfeast ui. The UI loaded the demo project and listed its feature views from the registry, with no console errors.Dockerfile.dev: built the image (linux/arm64) from a clean clone, so no local build output could leak into the context. Inside the image,feast/ui/contains only__init__.pyandbuild/, and nonode_modulesis left behind. Ranfeast uiin the container against a demo repo. The UI loaded with the same data and no console errors.Misc
Downstream forks that carry their own edits to
Dockerfile.devwill get a small merge conflict when they sync this change. To resolve it, keep both sets of lines.