Skip to content

[Antithesis] Configuration for 1 node cluster #20176

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

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

joshjms
Copy link
Member

@joshjms joshjms commented Jun 15, 2025

Ref: #20112

export CFG_NODE_COUNT=1
make antithesis-build-client-docker-image
make antithesis-docker-compose-up
make antithesis-run-container-traffic
make antithesis-run-container-validation

/cc @serathius @nwnt

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

@k8s-ci-robot k8s-ci-robot requested review from nwnt and serathius June 15, 2025 12:21
@joshjms joshjms force-pushed the antithesis-config-cluster-size-1 branch 2 times, most recently from 2166eba to 0536d03 Compare June 15, 2025 12:42
Copy link

codecov bot commented Jun 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.08%. Comparing base (cc29bc0) to head (d4a1798).
Report is 24 commits behind head on main.

Additional details and impacted files

see 162 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #20176      +/-   ##
==========================================
- Coverage   69.27%   60.08%   -9.19%     
==========================================
  Files         413      395      -18     
  Lines       34364    32458    -1906     
==========================================
- Hits        23805    19502    -4303     
- Misses       9160    11414    +2254     
- Partials     1399     1542     +143     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d37ff81...d4a1798. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joshjms joshjms force-pushed the antithesis-config-cluster-size-1 branch from 0536d03 to d5be61b Compare June 16, 2025 04:20
@joshjms joshjms changed the title antithesis: Configuration for 1 node cluster [Antithesis] Configuration for 1 node cluster Jun 16, 2025
@@ -105,6 +110,7 @@ func runTraffic(ctx context.Context, lg *zap.Logger, tf traffic.Traffic, hosts [
}
g := errgroup.Group{}
startTime := time.Since(baseTime)
fmt.Printf("%v\n", hosts)
Copy link
Member

Choose a reason for hiding this comment

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

Please remove or use zap.Logger to write logs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Noted, I missed this. Will remove!

// See the License for the specific language governing permissions and
// limitations under the License.

package config
Copy link
Member

Choose a reason for hiding this comment

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

Didn't expect config to be a Go package.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will it be better if it's in the commons package?

Copy link
Member

Choose a reason for hiding this comment

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

Yes.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah ok understand

Copy link
Member

Choose a reason for hiding this comment

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

But the Dockerfile and docker-compose files should be moved to config directory.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll handle that in the other PR, I think it will be easier once we finish this yup!

@joshjms joshjms force-pushed the antithesis-config-cluster-size-1 branch from d5be61b to 1541d60 Compare June 16, 2025 09:27
Signed-off-by: joshjms <joshjms1607@gmail.com>
@joshjms joshjms force-pushed the antithesis-config-cluster-size-1 branch from 1541d60 to d4a1798 Compare June 17, 2025 13:51
@serathius
Copy link
Member

This change looks good, great job!

However I started getting Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/etcddata0 error when I run make antithesis-docker-compose-up on a fresh machine or after make antithesis-clean.

This doesn't happen when do the same on master. @joshjms could you look why is so?

@joshjms
Copy link
Member Author

joshjms commented Jun 18, 2025

I'll take a look into it

@joshjms
Copy link
Member Author

joshjms commented Jun 19, 2025

I'm not sure how to reproduce that, can I ask for the exact commands used?

@serathius
Copy link
Member

make antithesis-clean
make antithesis-docker-compose-up

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: joshjms, serathius

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@serathius serathius merged commit 86fa2e0 into etcd-io:main Jun 19, 2025
31 of 32 checks passed
@joshjms joshjms deleted the antithesis-config-cluster-size-1 branch June 19, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants