-
Notifications
You must be signed in to change notification settings - Fork 807
[antithesis] Fix broken flag handling and improve image testing #3299
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
Conversation
tests/antithesis/config.go
Outdated
if len(envChainIDs) > 0 { | ||
// CSV.Set doesn't actually return an error | ||
_ = uris.Set(envChainIDs) | ||
_ = chainIDs.Set(envChainIDs) |
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.
Whoops!
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.
Is the _ just to keep the linter quiet? If so, I think it's better to be precise with //nolint:errcheck // CSV.Set doesn't actually...
and then drop the _.
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.
Done. Note it was necessary to disable 2 linters: //nolint:errcheck,revive
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.
DIsabled the revive unhandled-error check in favor of errcheck to avoid having to disable 2 linters
c070051
to
bf7647b
Compare
43615c5
to
d7389ec
Compare
tests/antithesis/config.go
Outdated
if len(envChainIDs) > 0 { | ||
// CSV.Set doesn't actually return an error | ||
_ = uris.Set(envChainIDs) | ||
_ = chainIDs.Set(envChainIDs) |
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.
Is the _ just to keep the linter quiet? If so, I think it's better to be precise with //nolint:errcheck // CSV.Set doesn't actually...
and then drop the _.
The recent addition of tmpnet support for antithesis workloads broke configuration in the actual antithesis environment due to deficiencies in the test of the image build. This change cleans up the flag configuration that caused the problem and updates the test of image build to directly check the output of the docker compose project for evidence that nodes have reported healthy rather than just waiting 30s for a non-zero exit.
d7389ec
to
f3134ef
Compare
Why this should be merged
The recent addition of tmpnet support for antithesis workloads broke configuration in the actual antithesis environment due to deficiencies in the test of the image build.
How this works
This change cleans up the flag configuration that caused the problem and updates the test of image build to directly check the output of the docker compose project for evidence that nodes have reported healthy rather than just waiting for 30s without a non-zero exit.
How this was tested