Skip to content

Conversation

geeknoid
Copy link
Contributor

@geeknoid geeknoid commented Mar 7, 2018

No description provided.

@geeknoid geeknoid requested review from mandarjog and a team March 7, 2018 23:18
@@ -31,6 +31,8 @@ import (
"sync"
"time"

"regexp"
Copy link
Contributor

Choose a reason for hiding this comment

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

needs a bin/fmt.sh run

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ran bin/fmt.sh and a ton of formatting changes were done across the source base. Apparently, once again the linter presubmit check is no longer working :-(

Anyway, I fixed these specific issues, I'll fix the overall formatting in a distinct PR.

b.SetAdapterConfig(cfg)

err := b.Validate()
if err == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

collapse with previous line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

return nil, err
}
// cannot fail, override syntax was checked in the Validate method
exp, _ := regexp.Compile(override)
Copy link
Member

Choose a reason for hiding this comment

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

is this really better code ? sometimes 100% coverage is worse than 99%
(like something isn't supposed to happen, until someone changes Validate and miss something and now it fails silently in production)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are tests to ensure Validate is doing the right thing.

@codecov
Copy link

codecov bot commented Mar 8, 2018

Codecov Report

Merging #4056 into master will decrease coverage by 1%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #4056    +/-   ##
=======================================
- Coverage      75%     75%   -<1%     
=======================================
  Files         305     305            
  Lines       27514   27899   +385     
=======================================
+ Hits        20550   20773   +223     
- Misses       5657    5785   +128     
- Partials     1307    1341    +34
Impacted Files Coverage Δ
mixer/adapter/list/regexList.go 100% <100%> (+32%) ⬆️
mixer/adapter/list/list.go 100% <100%> (+5%) ⬆️
mixer/adapter/rbac/controller.go 39% <0%> (-15%) ⬇️
pilot/pkg/config/monitor/monitor.go 69% <0%> (-5%) ⬇️
pilot/pkg/model/context.go 73% <0%> (-2%) ⬇️
pilot/pkg/proxy/envoy/v2/mesh.go 75% <0%> (ø) ⬇️
mixer/adapter/servicecontrol/reportbuilder.go 89% <0%> (ø) ⬇️
mixer/template/sample/template.gen.go 55% <0%> (ø) ⬇️
mixer/adapter/solarwinds/solarwinds.go 0% <0%> (ø) ⬆️
mixer/adapter/stdio/zap.go 100% <0%> (ø) ⬆️
... and 13 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 81a9703...e42ea58. Read the comment docs.

@geeknoid
Copy link
Contributor Author

geeknoid commented Mar 8, 2018

PTAL. All test failures appear to be flakes.

Copy link
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

my comments have been addressed.

@istio-merge-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

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

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

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@istio-testing
Copy link
Collaborator

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

Test name Commit Details Rerun command
prow/istio-unit-tests.sh e42ea58 link /test istio-unit-tests
prow/e2e-simpleTests.sh e42ea58 link /test e2e-simple
prow/e2e-bookInfoTests.sh e42ea58 link /test e2e-bookInfo
prow/istio-pilot-e2e.sh e42ea58 link /test istio-pilot-e2e

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.

@geeknoid geeknoid merged commit 96616d4 into istio:master Mar 8, 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.

7 participants