Skip to content
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

feat: improve network performance test to make it reusable and modifiable #2969

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ritwikranjan
Copy link

What type of PR is this?

/kind feature

What this PR does / why we need it:

This pull request includes significant updates to the network/benchmarks/netperf directory, focusing on improving the build process, enhancing test capabilities, and updating dependencies. The most important changes include modifying the Makefile to streamline Docker builds and test execution, updating the go.mod file with new dependencies, and adding new utility libraries for Kubernetes interactions.

Build and Test Improvements:

  • network/benchmarks/netperf/Makefile: Updated the Docker build process to use dynamic repository and image tags, added a test target for running Go tests, and introduced a localtest target for local test execution. [1] [2] [3]

Dependency Updates:

New Utility Libraries:

Which issue(s) this PR fixes:

Fixes #2876

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Oct 30, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @ritwikranjan. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 30, 2024
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 30, 2024
@ritwikranjan
Copy link
Author

Hey @aojea, Can you take a look and let me know if it can be improved in any way?

@aojea
Copy link
Member

aojea commented Nov 4, 2024

@wojtek-t do you know if this code is being used somewhere?
I honestly can't remember and I will not have time until December to check on this, sorry

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 12, 2024
@ritwikranjan ritwikranjan force-pushed the feat/network-perf-test branch from 9b044d0 to 3a15444 Compare November 18, 2024 16:23
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 18, 2024
@ritwikranjan
Copy link
Author

Hi @aojea, Would you be able to take a look at these changes now?

@aojea
Copy link
Member

aojea commented Jan 13, 2025

We need

  1. identify where are these tests running
  2. split the PR in independent commits, so it can be easy to review, the modification of the makefile should be independent of the commit that refactors the test code, ...
  3. explain how we probe these works (maybe we just need to know .1) and we merge and iterate, that is fine with me too

@ritwikranjan
Copy link
Author

Okay, sounds good to me, I'll go ahead and split into commits.

@ritwikranjan ritwikranjan force-pushed the feat/network-perf-test branch from cc3b8bf to 705b60a Compare January 13, 2025 15:43
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ritwikranjan
Once this PR has been reviewed and has the lgtm label, please assign aojea for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@ritwikranjan
Copy link
Author

Hi @aojea, is there anything else I can do to better this?

@aojea
Copy link
Member

aojea commented Jan 23, 2025

We need

  1. identify where are these tests running
  2. split the PR in independent commits, so it can be easy to review, the modification of the makefile should be independent of the commit that refactors the test code, ...
  3. explain how we probe these works (maybe we just need to know .1) and we merge and iterate, that is fine with me too

missing step .1 and 3. , how can we sure this does not break anything?

@ritwikranjan
Copy link
Author

@aojea For 1 & 3, I have not found any explicit place where these tests are used directly however I have made sure keep backward compatibility, all the targets in Makefile still give the same output and the older images of nptest also work in the same way. Whatever changes are made are either using extra flag (such as -json) or by keeping the api definitions intact. Now the proof that the changes work, we are currently using a fork Azure/perf-tests for testing an open source project Retina. Let me know if you want details of the implementations for the same. If you are aware of any other usage of this tool do let me know and i'll do test out those as well.

@aojea
Copy link
Member

aojea commented Jan 23, 2025

/ok-to-test

do you think you can add a manual job in https://github.com/kubernetes/test-infra so we can at least now if it works?

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 23, 2025
@ritwikranjan
Copy link
Author

/retest

@ritwikranjan
Copy link
Author

ritwikranjan commented Jan 24, 2025

@aojea I have addressed the failing linter tests.

I will add a couple of scripts in kubernetes/test-infra in experiment directory in order to verify both the cli as well the api. Thanks for taking the time to look into this.

@ritwikranjan
Copy link
Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature addition to network benchmark tests
3 participants