-
Notifications
You must be signed in to change notification settings - Fork 38
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
Integ test - creation/deletion of brupop and test pods improvement #217
Integ test - creation/deletion of brupop and test pods improvement #217
Conversation
integ/src/updater.rs
Outdated
//therefore, skips test pods creation if those pods already exist. | ||
// This wouldn't affect pods deletion. | ||
let error_content = String::from_utf8_lossy(&brupop_resource_output.stderr).to_string(); | ||
match error_content.contains("AlreadyExists") { |
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.
nit: IMO it's simpler to just use if
instead of match
on a boolean expression.
Integration test allows to launch multiple nodegroups on eks cluster, and it would be redundant to create test pods multiple times. Therefore this change make system to skip creating test pods if they already exist.
Integration test allows to launch multiple nodegroups on eks cluster, and it would be redundant to create brupop resources multiple times. Therefore this change make system to skip creating brupop resources if they already exist. Meanwhile, simplify the functionality of create and delete brupop resources.
095ea32
to
f3bcb51
Compare
Ideally, we have to clean up integration test when we need test a code change. However, during brupop release process, we need test arm and amd at same time (run Solution: run
Hence, more than once integration test at same time will not fail on resource |
let brupop_resource_status = Command::new(KUBECTL_BINARY) | ||
.args([ | ||
"apply", | ||
&action_string.to_lowercase(), |
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.
How do you plan to handle deletion failure? I know sometimes the deletion get stuck and need to manually patch the resource especially during the CRD update. Does it make sense to set up a timeout on deletion and print the manual patch command?
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.
Can you share what situations you had met?
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.
We had a discussion offline and decided to open an new issue if the above situation happens.
Issue number:
#216
#208
Description of changes:
Testing done:
Method: Launch multiple nodegroup and check if brupop resources and test pods are created only once (first nodegroup)
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.