Skip to content

Add a Retrying modifier for spoof.ResponseChecker#1528

Closed
jonjohnsonjr wants to merge 5 commits intoknative:masterfrom
jonjohnsonjr:jon/1298
Closed

Add a Retrying modifier for spoof.ResponseChecker#1528
jonjohnsonjr wants to merge 5 commits intoknative:masterfrom
jonjohnsonjr:jon/1298

Conversation

@jonjohnsonjr
Copy link
Copy Markdown
Contributor

@jonjohnsonjr jonjohnsonjr commented Jul 9, 2018

This is a strawman for the alternative to #1298 I had in mind.

Notably, this adds 503 retries to the first leg of polling in the blue/green test here:
https://github.com/jonjohnsonjr/elafros/blob/8444482c147a55e5fc3ed49166166eb9194be32c/test/conformance/blue_green_test.go#L57

I've also lost logging of retried status codes, not sure how people feel about that 😅

@google-prow-robot google-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 9, 2018
@jonjohnsonjr jonjohnsonjr force-pushed the jon/1298 branch 2 times, most recently from 159a5c7 to 4d455e2 Compare July 9, 2018 16:59
Comment thread test/conformance/blue_green_test.go Outdated
@@ -74,7 +76,7 @@ func sendRequests(client spoof.Interface, domain string, num int) ([]string, err

// TODO(tcnghia): The ingress endpoint tends to return 404. Ideally we can instead do:
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.

File a bug and assign to me?

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.

Done

logger,
domain,
test.EventuallyMatchesBody(autoscaleExpectedOutput),
test.Retrying(test.EventuallyMatchesBody(autoscaleExpectedOutput), http.StatusNotFound, http.StatusServiceUnavailable),
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.

add comment why we allow 503 here?

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.

I don't know why we allow 503 here :)

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.

I think you can link to istio/istio#6082 and istio/istio#882 about lack of Status from Istio network programming, and may be TODO(tcnghia): remove this when istio/istio#882 is fixed?

@jonjohnsonjr
Copy link
Copy Markdown
Contributor Author

/assign @bsnchan @bobcatfish

@mattmoor
Copy link
Copy Markdown
Member

/hold

Wait until after we cut first release.

@google-prow-robot google-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 12, 2018
@google-prow-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jonjohnsonjr
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: jessiezcc

If they are not already assigned, you can assign the PR to them by writing /assign @jessiezcc in a comment when ready.

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

@jonjohnsonjr
Copy link
Copy Markdown
Contributor Author

/assign @tcnghia

@jonjohnsonjr
Copy link
Copy Markdown
Contributor Author

/retest

@google-prow-robot
Copy link
Copy Markdown

@jonjohnsonjr: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-knative-serving-unit-tests b4893cb link /test pull-knative-serving-unit-tests

Full PR test history. Your PR dashboard.

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.

@jonjohnsonjr
Copy link
Copy Markdown
Contributor Author

This PR is super broken, going to try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants