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

[e2e][flexible-ipam] Fix TestPrometheus failed #3868

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

gran-vmv
Copy link
Contributor

@gran-vmv gran-vmv commented Jun 7, 2022

Add retry to TestPrometheus to solve intermittent failure.

Signed-off-by: gran gran@vmware.com

@gran-vmv gran-vmv self-assigned this Jun 7, 2022
@gran-vmv
Copy link
Contributor Author

gran-vmv commented Jun 7, 2022

/test-all
/test-flexible-ipam-e2e

@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2022

Codecov Report

Merging #3868 (0dbc9ba) into main (3e1b254) will decrease coverage by 19.57%.
The diff coverage is 11.87%.

❗ Current head 0dbc9ba differs from pull request most recent head 9622c26. Consider uploading reports for the commit 9622c26 to get more accurate results

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #3868       +/-   ##
===========================================
- Coverage   64.30%   44.73%   -19.58%     
===========================================
  Files         288      255       -33     
  Lines       41252    37810     -3442     
===========================================
- Hits        26527    16914     -9613     
- Misses      12596    19180     +6584     
+ Partials     2129     1716      -413     
Flag Coverage Δ
e2e-tests 44.73% <11.87%> (?)
kind-e2e-tests ?
unit-tests ?

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

Impacted Files Coverage Δ
pkg/agent/multicast/mcast_controller.go 0.00% <0.00%> (-61.64%) ⬇️
pkg/agent/multicast/mcast_discovery.go 0.00% <0.00%> (-61.91%) ⬇️
pkg/agent/multicluster/mc_route_controller.go 0.00% <0.00%> (ø)
pkg/agent/openflow/cookie/allocator.go 39.53% <0.00%> (-40.96%) ⬇️
pkg/agent/openflow/multicast.go 0.00% <0.00%> (ø)
pkg/agent/openflow/multicluster.go 0.00% <0.00%> (ø)
pkg/agent/route/route_linux.go 29.49% <0.00%> (-20.16%) ⬇️
pkg/agent/types/networkpolicy.go 81.08% <ø> (ø)
pkg/apis/controlplane/types.go 0.00% <ø> (ø)
pkg/apiserver/handlers/featuregates/handler.go 1.63% <ø> (-73.78%) ⬇️
... and 199 more

@gran-vmv
Copy link
Contributor Author

gran-vmv commented Jun 8, 2022

/test-flexible-ipam-e2e

@gran-vmv
Copy link
Contributor Author

gran-vmv commented Jun 8, 2022

/test-flexible-ipam-e2e

}
defer resp.Body.Close()
var body []byte
err = wait.PollImmediate(defaultInterval, defaultTimeout, func() (bool, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

How long is defaultTimeout? Does the transient failure happen only in flexible IPAM tests? Do we know why?

Copy link
Contributor

Choose a reason for hiding this comment

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

Please add some comments to explain why we do retry here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

defaultTimeout is 90s, but actually 10s is enough for this case. Just use the default value as other cases.
This failure appears in flexible-ipam-e2e two weeks ago. Still not located the changes caused this issue since this issue occurs intermittently.

Added comment for 3 cases I want to fix in this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you believe we should root cause the failure? If so, please add comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added comments.

Signed-off-by: gran <gran@vmware.com>
@jianjuns
Copy link
Contributor

jianjuns commented Jun 9, 2022

/test-all

@jianjuns
Copy link
Contributor

jianjuns commented Jun 9, 2022

/test-flexible-ipam-e2e
/test-ipv6-e2e
/test-ipv6-only-e2e

@jianjuns
Copy link
Contributor

jianjuns commented Jun 9, 2022

/test-e2e

@jianjuns jianjuns merged commit dcd1019 into antrea-io:main Jun 9, 2022
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.

3 participants