[Test][GCS FT] End-to-end test for cleanup_redis_storage (#1422)(#1459) #1466
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
After introducing the redis cleanup step as a finalizer of a fault-tolerant enable RayCluster in #1412, we still want to keep eyes on the effectiveness of the cleanup step by an E2E test.
Therefore, in this PR, I made the following changes to the
clean_up
phase of the E2E test for RayCluster:kubectl delete -f
first, we only delete the target RayCluster first to leave the redis alive.ray.io/node-type=redis-cleanup
.redis-cli DBSIZE
to test the redis is empty or not. If not, we throw an Exception.kubectl delete -f
to remove redis related resources.Also, #1459 will be fixed because of these changes.
Discussions
Currently, I have hard-coded the redis deployment name as
redis
and its secret name asredis-password-secret
since it seems there is no better choice without more code changes. So, I would like to discuss which direction we can make improvements.Hi @kevin85421, should we avoid these hard-coded names by querying the original yaml? Currently, the original yaml is not stored in the CREvent. Or should we create another pod with the same env during the E2E test to check if the redis has been cleaned?
Related issue number
#1412
#1422
#1459
Checks