Skip to content

Review feedback#1225

Merged
google-prow-robot merged 7 commits intoknative:masterfrom
mattmoor:review-feedback
Jun 15, 2018
Merged

Review feedback#1225
google-prow-robot merged 7 commits intoknative:masterfrom
mattmoor:review-feedback

Conversation

@mattmoor
Copy link
Copy Markdown
Member

Incorporate the review feedback from @grantr and @dprotaso on #1208

mattmoor added 7 commits June 15, 2018 15:26
This wraps the slice literals so a single element per-line:
```
[]FooConditionType{
    FooType,
    BarType,
    BazType,
}
```

It also inlines the literal into the `for x, y := range ...` unless it is dynamically constructed (`if foo { append }`) and needs the variable.
This changes the comparison used in the Service controller's `reconcileFoo` methods to use `equality.Semantic.DeepEqual`.

Although it has slightly different semantics (stricter) I left the use of `cmp.Diff` in what we log as the difference when reconciliation is to be performed, since I think this will really help give visibility into the changes we see triggering reconciliation.
@google-prow-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 15, 2018
@knative-metrics-robot
Copy link
Copy Markdown

The following is the coverage report on pkg/. Say /test pull-knative-serving-go-coverage to run the coverage report again

File Old Coverage New Coverage Delta
pkg/apis/serving/v1alpha1/configuration_types.go 97.7% 97.7% -0.1
pkg/apis/serving/v1alpha1/revision_types.go 98.4% 98.3% -0.1
pkg/apis/serving/v1alpha1/route_types.go 84.1% 83.7% -0.4
pkg/apis/serving/v1alpha1/service_types.go 98.3% 98.2% -0.1
pkg/apis/serving/v1alpha1/service_types_test.go 98.3% 98.2% -0.1
pkg/controller/service/service.go 85.4% 84.8% -0.6
pkg/controller/service/service_test.go 85.4% 84.8% -0.6

*TestCoverage feature is being tested, do not rely on any info here yet

@dprotaso
Copy link
Copy Markdown
Member

/lgtm

@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 google-prow-robot merged commit ca49aad into knative:master Jun 15, 2018
@mattmoor mattmoor deleted the review-feedback branch June 15, 2018 16:28
Copy link
Copy Markdown
Contributor

@grantr grantr left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the quick turnaround @mattmoor!

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.

5 participants