-
Notifications
You must be signed in to change notification settings - Fork 109
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
WIP Refactor (breaking?): replace Express with Fastify and other #559
Conversation
Hi @ozonep how are you? I checked out to your branch and it seems that there is much more work to do, so I was wondering if you were aware of it/are running predator locally while working on the feature to see this? Also you can run the tests locally to see the passing/failing ones. As I said from my perspective I feel like the work left to do on this MR is substantial and just wanted to know if you had a specific motive of upgrading express to fastify or just for the overall improvement of predator? Thanks again! |
Hello! ) I guess this should be released as v2.0.0 because of all the changes... |
@NivLipetz any ideas why test "call kafka produce with StreamingMessage when streaming manager initialized as kafka manager" fails sometimes because of date not being equal? This happens ~1 time out of 10... |
yea it's an unstable test, i stubbed the prototype of Date constructor in order for it to always equal in the expectation but i guess it didn't work as i expected it to, I would ignore that failure in the unit-tests. You can also fix the assertion to check a delta in the timerange where a 10ms difference can be "acceptable" and pass in order to make the test more stable. Here i see the idfference is 1ms |
Closes #528
Further information:
Tried to "modernize" back-end part to use actively maintained & faster alternatives for some frameworks/libraries.
The biggest change - move from almost dead "Express.js" to modern alternative "Fastify". Replaced all Express plugins with Fastify alternatives (except one - for zip creation, see below)
NOTES: Need some help with these issues: