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

ci: Add k8s network conformance tests to makefile #2086

Merged
merged 4 commits into from
Jul 28, 2023

Conversation

jpayne3506
Copy link
Contributor

@jpayne3506 jpayne3506 commented Jul 27, 2023

Reason for Change:

Allows for users to test cluster network conformance from the command line and give a single command to test network conformance in future CI.

Issue Fixed:

Requirements:

Notes:
Example commands:

  • make test-k8se2e CLUSTER=yourClusterName GROUP=resourceGroup OS=windows TYPE=basic
  • make test-k8se2e CLUSTER=yourClusterName GROUP=resourceGroup

@jpayne3506 jpayne3506 requested review from rbtr, vipul-21 and camrynl July 27, 2023 17:23
@jpayne3506 jpayne3506 requested a review from a team as a code owner July 27, 2023 17:23
@camrynl
Copy link
Contributor

camrynl commented Jul 27, 2023

it might be better to add the k8s tests to the main makefile where other test targets live since we primarily use the hackfile for provisioning clusters

@jpayne3506 jpayne3506 force-pushed the jpayne3506/e2emake branch from 76238aa to f4f9a8c Compare July 27, 2023 18:33
@vipul-21 vipul-21 added the ci Infra or tooling. label Jul 27, 2023
test-k8se2e: test-k8se2e-build test-k8se2e-only ## Alias to run build and test

test-k8se2e-build: ## Build k8s e2e test suite
cd hack/scripts && bash ./k8se2e.sh $(GROUP) $(CLUSTER)
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this work? Given we don't have variables Group or Cluster in the file ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, these scripts were heavily reliant on those arguments being present in command to begin with. Having a default did not provide any additional benefit.

@jpayne3506 jpayne3506 removed the request for review from rbtr July 27, 2023 21:51
@jpayne3506 jpayne3506 force-pushed the jpayne3506/e2emake branch from f4f9a8c to 5c72f9a Compare July 27, 2023 21:53
@jpayne3506 jpayne3506 enabled auto-merge (squash) July 27, 2023 21:53
@jpayne3506 jpayne3506 merged commit 02311fd into Azure:master Jul 28, 2023
@jpayne3506 jpayne3506 deleted the jpayne3506/e2emake branch July 28, 2023 16:47
jpayne3506 added a commit to jpayne3506/azure-container-networking that referenced this pull request Jul 28, 2023
* Add k8s Network Conformance tests command to makefile

* Add lines to README

* Allow numbers to show in make help call

* Addressing Comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Infra or tooling.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants