Skip to content
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

Prove liveness for rabbitmq #173

Merged
merged 9 commits into from
Jul 12, 2023
Merged

Prove liveness for rabbitmq #173

merged 9 commits into from
Jul 12, 2023

Conversation

euclidgame
Copy link
Contributor

Because the rabbitmq controller doesn't support scaling down, the current liveness property we target is spec |= []cr_exists ~> [] config_map_exists.

} else {
s.network_state.in_flight.filter(sts_create_request_msg_since(key, rest_id)).len() == 0
}
s.network_state.in_flight.filter(sts_create_request_msg_since(key, rest_id)).len() > 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This refactoring is nice!

&&& sts_create_request_msg_since(key, rest_id)(msg)
}
}
forall |msg| {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This refactoring is nice, too!

true_pred().leads_to(lift_state(|s: ClusterState| !s.reconcile_state_contains(rabbitmq.object_ref())))
),
{
let reconcile_idle = |s: ClusterState| { !s.reconcile_state_contains(rabbitmq.object_ref()) };
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is better to use assert_by to explicitly show what the following lemmas are used for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like that, at least for termination. These lemmas are used very straightforwardly.

@marshtompsxd marshtompsxd merged commit 0c30688 into main Jul 12, 2023
1 check passed
@marshtompsxd marshtompsxd deleted the prove_liveness_for_rabbitmq branch August 1, 2023 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants