-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[serve] Add tests for backend_state versioning #14748
Conversation
ab10e3f
to
bfaa76e
Compare
bfaa76e
to
ed7fa89
Compare
assert mock_replicas[0].started | ||
assert len(replicas(backend_state)) == 1 | ||
assert len(replicas(backend_state, states=[ReplicaState.STARTING])) == 1 | ||
assert replicas(backend_state)[0]._actor.started |
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.
Do we want to just keep a reference for all the tests?
starting_replica = replicas(backend_state)[0]
starting_replica._actor.started
...
starting_replica._actor.set_ready()
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.
yeah that's probably cleaner. the tests already passed here though so I'm going to merge to unblock my other PR
Why are these changes needed?
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.