-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Packaging #65
Update Packaging #65
Conversation
cherbel
commented
Oct 24, 2023
•
edited
Loading
edited
- Updates to Javascript SDK for packaging (Now published on NPM)
- Removes old app directory (no longer used)
- Refactors Server
- Refactors server to use new rebuff NPM package
- General cleanup and consolidation of all dependencies into the server directory
- Updates server install steps in readme
- Removes mono-repo package files and artifacts that are no longer needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost LGTM, small issue with our admittedly convoluted test setup (will be improved near term)
|
||
init: init-python-sdk init-server | ||
npm install | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is called in our github workflow:
https://github.com/protectai/rebuff/blob/main/.github/workflows/python_tests.yaml#L27-L28
https://github.com/protectai/rebuff/blob/main/python-sdk/tests/conftest.py#L21-L58
Which stands up the server for python-sdk tests (and subsequently tests ingration with the server -- now pinned to a specific release). Ultimately we should replace this setup with unit testing individual TS functions but for the time being is there a need to remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added it back, although I removed the npm install
, because the init-server
step runs the install in the server directory, and there is no longer a package.json in the root directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks!