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

test: make t/chaos/kill-chaos.t stable #4503

Merged
merged 4 commits into from
Jun 30, 2021

Conversation

Yiyiyimu
Copy link
Member

@Yiyiyimu Yiyiyimu commented Jun 29, 2021

Signed-off-by: yiyiyimu wosoyoung@gmail.com

What this PR does / why we need it:

fix #4437

Can not reproduce in the local environment. Try to make it stable by receiving more requests in a certain time period, to make bandwidth-per-second comparison more stable.

Also changed to egress bps comparison as measurement, since egress is what expected to be the same.

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

Signed-off-by: yiyiyimu <wosoyoung@gmail.com>
Signed-off-by: yiyiyimu <wosoyoung@gmail.com>
@Yiyiyimu Yiyiyimu marked this pull request as ready for review June 29, 2021 23:18
Signed-off-by: yiyiyimu <wosoyoung@gmail.com>
Signed-off-by: yiyiyimu <wosoyoung@gmail.com>
@@ -158,16 +158,16 @@ func getPrometheusMetric(e *httpexpect.Expect, g *WithT, key string) string {
return targetSlice[1]
}

func getIngressBandwidthPerSecond(e *httpexpect.Expect, g *WithT) (float64, float64) {
key := "apisix_bandwidth{type=\"ingress\","
func getEgressBandwidthPerSecond(e *httpexpect.Expect, g *WithT) (float64, float64) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why even the semantics of this function was changed?

Copy link
Member Author

Choose a reason for hiding this comment

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

changed to egress bps comparison as measurement, since egress is what expected to be the same

@tokers tokers merged commit d0bc723 into apache:master Jun 30, 2021
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.

test not stable: t/chaos/kill-etcd
3 participants