fix(pegboard): validate drain_grace_period < request_lifespan#4998
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
🚅 Deployed to the rivet-pr-4998 environment in rivet-frontend
|
Code ReviewOverviewThis PR adds a validation guard in What's Good
Issues / SuggestionsMissing test coverage No test is added for this new validation path. This is the most significant gap. The PR description checklist item for tests is unchecked. Suggested: add a test that calls Edge case: If a caller passes PR is still a draft The description template is unfilled and all checklist items are unchecked. Nothing blocking from a code standpoint, but worth completing before requesting review. SummaryThe logic is correct and well-placed. Main asks before merging: add a test covering the new validation branch, and consider an explicit |
9b5f655 to
56af1d1
Compare

when drain_grace_period >= request_life_span, we get undefined behaviour. This enforces this on the server side befoe pool config is upserted