Skip to content

Add one more case to cover @latest as part of the traffic split.#3104

Merged
knative-prow-robot merged 14 commits intoknative:masterfrom
vagababov:more-itests
Feb 8, 2019
Merged

Add one more case to cover @latest as part of the traffic split.#3104
knative-prow-robot merged 14 commits intoknative:masterfrom
vagababov:more-itests

Conversation

@vagababov
Copy link
Copy Markdown
Contributor

Followup to the main implementation of #2819.

Proposed Changes

  • fix the test comment, to reflect the reality
  • add a case where candidate is replaced with @latest
  • traffic distribution is validated.

/lint

/cc @dgerd

Followup to the main implementation of knative#2819.
- fix the test comment, to reflect the reality
- add a case where candidate is replaced with @latest
- traffic distribution is validated.
@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 6, 2019
Copy link
Copy Markdown
Contributor

@knative-prow-robot knative-prow-robot left a comment

Choose a reason for hiding this comment

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

@vagababov: 0 warnings.

Details

In response to this:

Followup to the main implementation of #2819.

Proposed Changes

  • fix the test comment, to reflect the reality
  • add a case where candidate is replaced with @latest
  • traffic distribution is validated.

/lint

/cc @dgerd

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.

Comment thread test/conformance/service_test.go Outdated

// Now update the service to use `@latest` as candidate.
revisions[1] = v1alpha1.ReleaseLatestRevisionKeyword
logger.Info("Updating Service to split traffic between two `current` and `@latest`")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your combining of traffic target names with revision keywords confuses me.

Suggested change
logger.Info("Updating Service to split traffic between two `current` and `@latest`")
logger.Info("Updating Service to split traffic between the second revision and `@latest`")

Comment thread test/conformance/service_test.go Outdated
// The domains should not change, since configuration was not changed.
validateDomains(t, logger, clients,
names.Domain,
[]string{expectedFirstRev, expectedSecondRev},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think this is right...

Your traffic should be split between the first and third revision. This is checking that the traffic is split between the first and second revision.

I think this is passing because the validation happens faster than our traffic adjustment.

@vagababov
Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-integration-tests

@vagababov
Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-unit-tests

@vagababov
Copy link
Copy Markdown
Contributor Author

/hold
testing in transit...

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 6, 2019
@vagababov
Copy link
Copy Markdown
Contributor Author

Yeah, we need to wait for the desired shape. Otherwise the test is too flakey.

@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 7, 2019
@vagababov
Copy link
Copy Markdown
Contributor Author

/retest

Comment thread test/conformance/service_test.go Outdated
Comment thread test/conformance/service_test.go Outdated
revisions = append(revisions, names.Revision)

// Also verify traffic is in the correct shape.
desiredTrafficShape["latest"] = v1alpha1.TrafficTarget{
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

For a different PR, but what do you think about making the latest, candidate, and current strings constants in service_types.go since they are part of the API spec.

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.

Sounds like a good idea. But this would change probably hundreds of files, so let's do it separately.

Comment thread test/conformance/util.go
Dan Gerdesmeier and others added 4 commits February 6, 2019 17:12
Co-Authored-By: vagababov <vagababov@users.noreply.github.com>
Co-Authored-By: vagababov <vagababov@users.noreply.github.com>
…itests

o explain why this merge is necessary,
@vagababov
Copy link
Copy Markdown
Contributor Author

/retest

@vagababov
Copy link
Copy Markdown
Contributor Author

/hold cancel

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 7, 2019
@dgerd
Copy link
Copy Markdown

dgerd commented Feb 7, 2019

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2019
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2019
@vagababov
Copy link
Copy Markdown
Contributor Author

/hold cancel

Copy link
Copy Markdown
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2019
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor, vagababov

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 8, 2019
@vagababov
Copy link
Copy Markdown
Contributor Author

/test pull-knative-serving-integration-tests

@knative-prow-robot knative-prow-robot merged commit 32e4672 into knative:master Feb 8, 2019
@vagababov vagababov deleted the more-itests branch February 13, 2019 17:54
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants