-
Notifications
You must be signed in to change notification settings - Fork 332
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
Move e2e tests for metrics export to integration status to reduce crosstalk flakiness #1782
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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
metrics/exporter.go
Outdated
if newConfig.backendDestination == prometheus { | ||
return newConfig.prometheusPort != cc.prometheusPort | ||
} | ||
|
||
return newConfig.backendDestination == stackdriver && newConfig.stackdriverClientConfig != cc.stackdriverClientConfig | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return dest=promo && nc.pp != cc.pp || des == stack && nc.sCC != cc.sCC?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. 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. |
/close Fixed this with #1957 |
@evankanderson: Closed this PR. In 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