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

Update documentation for e2e tests on kind cluster #1307

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

srikartati
Copy link
Member

Add details on running the e2e tests on a kind cluster
with the local Antrea image.

Felt these additional details in the documentation for dev process on kind cluster.

@antrea-bot
Copy link
Collaborator

Thanks for your PR.
Unit tests and code linters are run automatically every time the PR is updated.
E2e, conformance and network policy tests can only be triggered by a member of the vmware-tanzu organization. Regular contributors to the project should join the org.

The following commands are available:

  • /test-e2e: to trigger e2e tests.
  • /skip-e2e: to skip e2e tests.
  • /test-conformance: to trigger conformance tests.
  • /skip-conformance: to skip conformance tests.
  • /test-whole-conformance: to trigger all conformance tests on linux.
  • /skip-whole-conformance: to skip all conformance tests on linux.
  • /test-networkpolicy: to trigger networkpolicy tests.
  • /skip-networkpolicy: to skip networkpolicy tests.
  • /test-windows-conformance: to trigger windows conformance tests.
  • /skip-windows-conformance: to skip windows conformance tests.
  • /test-windows-networkpolicy: to trigger windows networkpolicy tests.
  • /skip-windows-networkpolicy: to skip windows networkpolicy tests.
  • /test-hw-offload: to trigger ovs hardware offload test.
  • /skip-hw-offload: to skip ovs hardware offload test.
  • /test-all: to trigger all tests (except whole conformance).
  • /skip-all: to skip all tests (except whole conformance).

@codecov-commenter
Copy link

codecov-commenter commented Sep 26, 2020

Codecov Report

Merging #1307 into master will decrease coverage by 9.18%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1307      +/-   ##
==========================================
- Coverage   63.63%   54.45%   -9.19%     
==========================================
  Files         157      119      -38     
  Lines       12626    11241    -1385     
==========================================
- Hits         8035     6121    -1914     
- Misses       3748     4528     +780     
+ Partials      843      592     -251     
Flag Coverage Δ
#integration-tests 44.75% <ø> (-0.04%) ⬇️
#kind-e2e-tests ?
#unit-tests 42.19% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/agent/agent_linux.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/controller/networkpolicy/tier.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/agent/proxy/types/groupcounter.go 0.00% <0.00%> (-95.00%) ⬇️
pkg/apis/controlplane/register.go 0.00% <0.00%> (-85.72%) ⬇️
pkg/apis/stats/register.go 0.00% <0.00%> (-81.82%) ⬇️
pkg/agent/client.go 0.00% <0.00%> (-77.42%) ⬇️
pkg/agent/util/ethtool/ethtool_linux.go 0.00% <0.00%> (-70.00%) ⬇️
...kg/apiserver/registry/system/supportbundle/rest.go 9.88% <0.00%> (-65.70%) ⬇️
pkg/querier/querier.go 0.00% <0.00%> (-57.15%) ⬇️
pkg/agent/util/iptables/iptables.go 6.25% <0.00%> (-56.25%) ⬇️
... and 91 more

@@ -149,6 +149,14 @@ manifest to the master Docker container:
go test -v github.com/vmware-tanzu/antrea/test/e2e -provider=kind
```

You can also run the e2e tests on an existing e2e cluster with the local Antrea
Copy link
Member

Choose a reason for hiding this comment

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

The first sentence sounds a little confusing as the above paragraph also says "You can also run the e2e tests with an existing Kind cluster.", this paragraph repeated it but changed "Kind cluster" to "e2e cluster". I feel perhaps adding the image load command to the above paragraph and instructions is more clear and fits for reading's order.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes that was a typo from my end. I will rephrase.

tnqn
tnqn previously approved these changes Nov 17, 2020
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM

@srikartati
Copy link
Member Author

/skip-all

Add details on running the e2e tests on a kind cluster
with the local Antrea image.
@antrea-bot
Copy link
Collaborator

Thanks for your PR.
Unit tests and code linters are run automatically every time the PR is updated.
E2e, conformance and network policy tests can only be triggered by a member of the vmware-tanzu organization. Regular contributors to the project should join the org.

The following commands are available:

  • /test-e2e: to trigger e2e tests.
  • /skip-e2e: to skip e2e tests.
  • /test-conformance: to trigger conformance tests.
  • /skip-conformance: to skip conformance tests.
  • /test-all-features-conformance: to trigger conformance tests with all alpha features enabled.
  • /skip-all-features-conformance: to skip conformance tests with all alpha features enabled.
  • /test-whole-conformance: to trigger all conformance tests on linux.
  • /skip-whole-conformance: to skip all conformance tests on linux.
  • /test-networkpolicy: to trigger networkpolicy tests.
  • /skip-networkpolicy: to skip networkpolicy tests.
  • /test-windows-conformance: to trigger windows conformance tests.
  • /skip-windows-conformance: to skip windows conformance tests.
  • /test-windows-networkpolicy: to trigger windows networkpolicy tests.
  • /skip-windows-networkpolicy: to skip windows networkpolicy tests.
  • /test-hw-offload: to trigger ovs hardware offload test.
  • /skip-hw-offload: to skip ovs hardware offload test.
  • /test-all: to trigger all tests (except whole conformance).
  • /skip-all: to skip all tests (except whole conformance).

@codecov-io
Copy link

Codecov Report

Merging #1307 (584ab29) into master (9d3d10b) will decrease coverage by 22.59%.
The diff coverage is 10.60%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1307       +/-   ##
===========================================
- Coverage   63.31%   40.72%   -22.60%     
===========================================
  Files         170      106       -64     
  Lines       14250    12747     -1503     
===========================================
- Hits         9023     5191     -3832     
- Misses       4292     7090     +2798     
+ Partials      935      466      -469     
Flag Coverage Δ
kind-e2e-tests ?
unit-tests 40.72% <10.60%> (-0.56%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/antrea-agent/agent.go 0.00% <0.00%> (ø)
cmd/antrea-agent/options.go 21.69% <0.00%> (+0.97%) ⬆️
pkg/agent/agent.go 12.05% <0.00%> (-36.67%) ⬇️
pkg/agent/agent_linux.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/agent/config/node_config.go 0.00% <ø> (-100.00%) ⬇️
.../agent/flowexporter/connections/conntrack_linux.go 28.37% <0.00%> (-0.79%) ⬇️
pkg/agent/openflow/pipeline.go 28.17% <0.00%> (-41.61%) ⬇️
pkg/agent/stats/collector.go 51.13% <ø> (-46.60%) ⬇️
pkg/apiserver/certificate/cacert_controller.go 10.81% <0.00%> (-45.58%) ⬇️
pkg/controller/networkpolicy/mutate.go 0.00% <0.00%> (ø)
... and 154 more

@srikartati srikartati requested a review from tnqn November 17, 2020 18:25
@srikartati
Copy link
Member Author

/skip-all

@srikartati
Copy link
Member Author

LGTM

I rebased the patch. Could you please reapprove?

@srikartati srikartati merged commit b1745fc into antrea-io:master Nov 18, 2020
@srikartati srikartati deleted the update_kind_doc branch November 18, 2020 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants