Skip to content

Add timeout to remote handler#9475

Merged
istio-testing merged 2 commits intoistio:release-1.1from
bianpengyuan:timeout
Dec 11, 2018
Merged

Add timeout to remote handler#9475
istio-testing merged 2 commits intoistio:release-1.1from
bianpengyuan:timeout

Conversation

@bianpengyuan
Copy link
Copy Markdown
Contributor

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.

non-blocking: should we have used a gogo annotation on this proto to automatically handle this conversion?

see: https://github.com/gogo/protobuf/blob/master/test/types/types.proto#L82

Copy link
Copy Markdown
Contributor Author

@bianpengyuan bianpengyuan Oct 23, 2018

Choose a reason for hiding this comment

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

Thanks for the link! Created istio/api#673 and we can wait for that to be checked in then update it here. master branch is locked anyway.

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.

we want this separation (between imports and istio-specific imports) still, right @mandarjog ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Recovered to what is was. IDE auto formatted it.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 23, 2018

Codecov Report

Merging #9475 into release-1.1 will increase coverage by 6%.
The diff coverage is 0%.

Impacted file tree graph

@@              Coverage Diff               @@
##           release-1.1   #9475      +/-   ##
==============================================
+ Coverage           63%     69%      +6%     
==============================================
  Files              559     442     -117     
  Lines            51528   41333   -10195     
==============================================
- Hits             32384   28176    -4208     
+ Misses           17285   11750    -5535     
+ Partials          1859    1407     -452
Impacted Files Coverage Δ
mixer/pkg/protobuf/yaml/dynamic/handler.go 0% <0%> (-73%) ⬇️
mixer/adapter/inventory.gen.go 0% <0%> (-100%) ⬇️
mixer/pkg/protobuf/yaml/dynamic/encoder.go 0% <0%> (-96%) ⬇️
...ixer/pkg/protobuf/yaml/dynamic/valueTypeEncoder.go 14% <0%> (-81%) ⬇️
mixer/pkg/protobuf/yaml/dynamic/encoderUtil.go 24% <0%> (-76%) ⬇️
mixer/pkg/protobuf/yaml/dynamic/primitive.go 38% <0%> (-60%) ⬇️
mixer/pkg/protobuf/yaml/dynamic/builder.go 44% <0%> (-55%) ⬇️
mixer/adapter/rbac/rbac.go 0% <0%> (-50%) ⬇️
mixer/pkg/protobuf/yaml/resolver.go 60% <0%> (-35%) ⬇️
... and 211 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a363120...2523da6. Read the comment docs.

@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Oct 30, 2018
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Oct 30, 2018
@bianpengyuan bianpengyuan force-pushed the timeout branch 2 times, most recently from 1611472 to ca471ac Compare October 31, 2018 04:13
@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Nov 10, 2018
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Nov 15, 2018
@bianpengyuan bianpengyuan changed the base branch from master to release-1.1 November 15, 2018 18:17
@googlebot
Copy link
Copy Markdown
Collaborator

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again. If the bot doesn't comment, it means it doesn't think anything has changed.

@googlebot googlebot added cla: no Set by the Google CLA bot to indicate the author of a PR has not signed the Google CLA. and removed cla: yes labels Nov 15, 2018
@stale
Copy link
Copy Markdown

stale bot commented Nov 29, 2018

This pull request has been automatically marked as stale because it has not had activity in the last 2 weeks. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@googlebot
Copy link
Copy Markdown
Collaborator

CLAs look good, thanks!

@googlebot googlebot added cla: yes and removed cla: no Set by the Google CLA bot to indicate the author of a PR has not signed the Google CLA. labels Dec 1, 2018
@bianpengyuan bianpengyuan force-pushed the timeout branch 2 times, most recently from b0446cf to 88781d1 Compare December 1, 2018 01:41
@bianpengyuan
Copy link
Copy Markdown
Contributor Author

/retest

@bianpengyuan
Copy link
Copy Markdown
Contributor Author

/retest

@bianpengyuan
Copy link
Copy Markdown
Contributor Author

/test e2e-dashboard
/test istio-pilot-e2e-envoyv2-v1alpha3

@bianpengyuan
Copy link
Copy Markdown
Contributor Author

/test e2e-dashboard

@istio-testing
Copy link
Copy Markdown
Collaborator

istio-testing commented Dec 4, 2018

@bianpengyuan: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
prow/istio-integ-k8s-tests.sh 4285f7fb54ebf8d47f34b25c783139e9167e0b2f link /test istio-integ-k8s-tests
prow//e2e-simpleTests-minProfile.sh b6cb5a0b34e2bda51e11db013732e8e148ed14df link /test e2e-simpleTestsMinProfile
prow/e2e-mixer-no_auth-mcp.sh b6cb5a0b34e2bda51e11db013732e8e148ed14df link /test e2e-mixer-no_auth-mcp
Details

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. I understand the commands that are listed here.

@bianpengyuan
Copy link
Copy Markdown
Contributor Author

ptal? thanks!

@bianpengyuan
Copy link
Copy Markdown
Contributor Author

@douglas-reid all tests pass now, ptal? thanks!

}
elapse := time.Since(start)
if elapse > 20*time.Millisecond {
t.Errorf("want elapse time less than 20 milliseconds, got %v", elapse)
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.

This probably won't work in race test setting? Under race testing, an interrupt can be placed anywhere in the test. That would cause the elapsed time to exceed the limit for unrelated reasons.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing this out! I guess I should give some headroom here to accommodate race test interruption? I raised it to 300ms The test adapter will sleep for 1 sec. As long as the elapse time is less 1 sec, timeout should be functioning.

@bianpengyuan
Copy link
Copy Markdown
Contributor Author

@kyessenov @douglas-reid Can I get a lgtm? Thanks!

Copy link
Copy Markdown
Contributor

@douglas-reid douglas-reid left a comment

Choose a reason for hiding this comment

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

/lgtm

@istio-testing
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bianpengyuan, douglas-reid

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@istio-testing istio-testing merged commit 960fc43 into istio:release-1.1 Dec 11, 2018
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.

5 participants