-
Notifications
You must be signed in to change notification settings - Fork 547
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
base: master
Are you sure you want to change the base?
feat: improve network performance test to make it reusable and modifiable #2969
Conversation
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 Once the patch is verified, the new status will be reflected by the 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. |
Hey @aojea, Can you take a look and let me know if it can be improved in any way? |
@wojtek-t do you know if this code is being used somewhere? |
9b044d0
to
3a15444
Compare
Hi @aojea, Would you be able to take a look at these changes now? |
We need
|
Okay, sounds good to me, I'll go ahead and split into commits. |
…t; modify .gitignore for JSON and config files
cc3b8bf
to
705b60a
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ritwikranjan 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 |
Hi @aojea, is there anything else I can do to better this? |
missing step .1 and 3. , how can we sure this does not break anything? |
@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. |
/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? |
/retest |
@aojea I have addressed the failing linter tests. I will add a couple of scripts in |
/retest |
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 theMakefile
to streamline Docker builds and test execution, updating thego.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 atest
target for running Go tests, and introduced alocaltest
target for local test execution. [1] [2] [3]Dependency Updates:
network/benchmarks/netperf/go.mod
: Updated module path and dependencies to more recent versions, includingk8s.io/api
,k8s.io/apimachinery
, andk8s.io/client-go
.New Utility Libraries:
network/benchmarks/netperf/lib/outputlib.go
: Added functions for retrieving logs and data from Kubernetes pods and processing raw data into output files.network/benchmarks/netperf/lib/testlib.go
: Introduced a new library for handling test parameters, performing tests, and managing Kubernetes resources.network/benchmarks/netperf/lib/utilslib.go
: Added utility functions for setting up Kubernetes clients, creating services, and managing replication controllers.Which issue(s) this PR fixes:
Fixes #2876