Skip to content

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

Merged
tokers merged 4 commits into
apache:masterfrom
Yiyiyimu:test/chaos-unstatble
Jun 30, 2021
Merged

test: make t/chaos/kill-chaos.t stable#4503
tokers merged 4 commits into
apache:masterfrom
Yiyiyimu:test/chaos-unstatble

Conversation

@Yiyiyimu

@Yiyiyimu Yiyiyimu commented Jun 29, 2021

Copy link
Copy Markdown
Member

Signed-off-by: yiyiyimu [email protected]

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

@Yiyiyimu
Yiyiyimu marked this pull request as ready for review June 29, 2021 23:18
Comment thread t/chaos/utils.go

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
Copy Markdown
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
Copy Markdown
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