Move e2e tests for metrics export to integration status to reduce crosstalk flakiness#1782
Move e2e tests for metrics export to integration status to reduce crosstalk flakiness#1782evankanderson wants to merge 11 commits into
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: evankanderson The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
mattmoor
left a comment
There was a problem hiding this comment.
Produced via:
gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -name '*.pb.go' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v .pb.go | grep -v wire_gen.go)
Codecov Report
@@ Coverage Diff @@
## master #1782 +/- ##
==========================================
- Coverage 68.22% 68.11% -0.12%
==========================================
Files 222 222
Lines 9437 9442 +5
==========================================
- Hits 6438 6431 -7
- Misses 2678 2692 +14
+ Partials 321 319 -2
Continue to review full report at Codecov.
|
|
/test pull-knative-pkg-integration-tests |
Fix one bug where prometheus wouldn't work if only the port changed. Fix timeout to work correctly in the record_e2e_test. Fix one bug in the record_e2e_test when multiple measures came in for the same metric.
|
Looking into the new segv... |
So there's something that changes test execution order here that breaks existing tests. |
|
|
Something about how we setup globals? |
|
Yeah, I think I've figured it out finally and may have reduced flakiness in TestMetricsExport, too. |
| if newConfig.backendDestination == prometheus { | ||
| return newConfig.prometheusPort != cc.prometheusPort | ||
| } | ||
|
|
||
| return newConfig.backendDestination == stackdriver && newConfig.stackdriverClientConfig != cc.stackdriverClientConfig | ||
| } |
There was a problem hiding this comment.
return dest=promo && nc.pp != cc.pp || des == stack && nc.sCC != cc.sCC?
There was a problem hiding this comment.
I might make this a switch, I worry about having a conditional with 4 boolean expressions being hard to maintain.
…register(nil), but not to Register(nil).
|
This pull request introduces 1 alert when merging 67c9600 into 22e4e0a - view on LGTM.com new alerts:
|
67c9600 to
c7d694f
Compare
|
@evankanderson: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/close Fixed this with #1957 |
|
@evankanderson: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Maybe fixes #1672
Creating a PR to see what I need to change in Prow
/hold