Skip to content

Create Check methods parallel to WaitFor methods. - #1188

Merged
google-prow-robot merged 1 commit into
knative:masterfrom
mattmoor:check-state
Jun 15, 2018
Merged

google-prow-robot merged 1 commit into
knative:masterfrom
mattmoor:check-state

Conversation

@mattmoor

Copy link
Copy Markdown
Contributor

Every check we perform shouldn't be a WaitFor; we should WaitFor readiness and then assert things work in-the-now. This creates parallel methods for checking things, which has the same signature as their WaitFor siblings.

This uses these methods for the recently sunk checks in the routing conformance test.

Related: #1178

@google-prow-robot google-prow-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 13, 2018
@mattmoor

Copy link
Copy Markdown
Contributor Author

@bobcatfish @adrcunha WDYT about this? I'd like to avoid (broadly) polling for correctness.

@bobcatfish

Copy link
Copy Markdown
Contributor

Nice, I like this a lot! Thanks @mattmoor :D Two things:

  • Do you think we should rename crd_polling.go now, since it does more than poll? crd_state.go crd_inspect.go...?
  • Could you update these docs?

<3

@adrcunha

Copy link
Copy Markdown
Contributor

/approve
/lgtm
/hold

Cancel the hold when you feel this is ready to be merged.

@google-prow-robot google-prow-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Jun 14, 2018
Every check we perform shouldn't be a WaitFor; we should WaitFor readiness and then assert things work in-the-now.  This creates parallel methods for checking things, which has the same signature as their `WaitFor` siblings.

This uses these methods for the recently sunk checks in the routing conformance test.

Related: knative/serving#1178
@google-prow-robot google-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Jun 15, 2018
@mattmoor

Copy link
Copy Markdown
Contributor Author

/hold cancel

@google-prow-robot google-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 15, 2018

@bobcatfish bobcatfish left a comment

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.

Thanks for updating the docs, looks great!

/lgtm
/approve
/meow space

return err
}

func getFirstRevisionName(clients *test.Clients, names test.ResourceNames) (string, error) {

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.

nice one!

@google-prow-robot

Copy link
Copy Markdown

@bobcatfish: cat image

Details

In response to this:

Thanks for updating the docs, looks great!

/lgtm
/approve
/meow space

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.

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 15, 2018
@google-prow-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adrcunha, bobcatfish, mattmoor

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

@google-prow-robot
google-prow-robot merged commit 34a7680 into knative:master Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. 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.

4 participants