-
Notifications
You must be signed in to change notification settings - Fork 106
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
[ASI-860] Enforce max wallet size in content-node batch_clock_status #2768
Conversation
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.
this looks great - nice work!!
one thing i just thought of - it would be nice to set a lower value for local dev to ensure that the batching is properly tested each time, maybe 3 or 4
let me or @dmanjunath know if want to talk through how to do that
also nice to see you added the test!
ps - there's a Monitoring / logging section in the PR description template we should not remove. mind filling that in?
@SidSethi not sure if we should diverge the batch size between local and other envs. might be easiest to override the value locally if you want to change it? |
i dont feel strongly about this but it seems like it would be pretty valuable to have the batching flow tested each time |
not really sure what having a lower threshold in dev does but i'll trust your call. we can move this to an env var and set non-dev default to 5000 and set a development env var override to 5 |
45d0261
to
09584ca
Compare
09584ca
to
73592c9
Compare
thanks for the feedback! I addressed all the comments, so please let me know if there are any other changes you want me to make @SidSethi |
yeah the main benefit would be to have each maddog run actually test this but since maddog base run only creates 2 users we would not get any benefit except for in manual testing at which point we could just manually override as 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.
looks great! one thing to change
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.
looks great!
couple things
- lets update the
Monitoring/logging
section to specify the exact error msg - lets make sure that the base maddog test passes locally still (it usually errors in CI, idk why)
updated the README and restarted mad dog in Circle (it passed in the 2nd-most-recent merge from master) |
Description
/users/batch_clock_status
routeTests
How will this change be monitored? Are there sufficient logs?
I'm not aware of any health checks for this endpoint. Consumers of the route would rely on the error message covered in a test:
Number of wallets must not exceed ${maxNumWallets} (reduce 'walletPublicKeys' field in request body).