Skip to content

Conversation

marun
Copy link
Contributor

@marun marun commented Aug 15, 2024

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

@marun marun added the testing This primarily focuses on testing label Aug 15, 2024
@marun marun self-assigned this Aug 15, 2024
if len(envChainIDs) > 0 {
// CSV.Set doesn't actually return an error
_ = uris.Set(envChainIDs)
_ = chainIDs.Set(envChainIDs)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops!

Copy link
Contributor

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 _.

Copy link
Contributor Author

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

Copy link
Contributor Author

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

@marun marun force-pushed the antithesis-fix-config branch from c070051 to bf7647b Compare August 15, 2024 06:38
@marun marun force-pushed the antithesis-fix-config branch 2 times, most recently from 43615c5 to d7389ec Compare August 15, 2024 07:47
if len(envChainIDs) > 0 {
// CSV.Set doesn't actually return an error
_ = uris.Set(envChainIDs)
_ = chainIDs.Set(envChainIDs)
Copy link
Contributor

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.
@marun marun force-pushed the antithesis-fix-config branch from d7389ec to f3134ef Compare August 15, 2024 15:28
@StephenButtolph StephenButtolph added this pull request to the merge queue Aug 15, 2024
@marun marun removed this pull request from the merge queue due to a manual request Aug 15, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Aug 15, 2024
Merged via the queue into master with commit aececb0 Aug 15, 2024
@StephenButtolph StephenButtolph deleted the antithesis-fix-config branch August 15, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing This primarily focuses on testing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants