Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Cleanup proto generation and fix linter issues #1556

Merged
merged 12 commits into from
Oct 31, 2019

Conversation

ondrej-fabry
Copy link
Member

@ondrej-fabry ondrej-fabry commented Oct 31, 2019

  • fix some issues reported by protobuf linter
  • setup travis to run protobuf linter
  • setup travis to run check for breaking changes
  • move protobuf related commands to proto/buf.make

Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
@ondrej-fabry ondrej-fabry self-assigned this Oct 31, 2019
@ondrej-fabry ondrej-fabry changed the title Cleanup proto generation and fix linter issues build: Cleanup proto generation and fix linter issues Oct 31, 2019
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
@codecov
Copy link

codecov bot commented Oct 31, 2019

Codecov Report

Merging #1556 into dev will increase coverage by 2.75%.
The diff coverage is 56.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1556      +/-   ##
==========================================
+ Coverage   52.71%   55.46%   +2.75%     
==========================================
  Files         638      348     -290     
  Lines       77658    29885   -47773     
==========================================
- Hits        40938    16577   -24361     
+ Misses      34242    12008   -22234     
+ Partials     2478     1300    -1178
Flag Coverage Δ
#e2e ?
#unittests 55.46% <56.45%> (+0.27%) ⬆️

Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
@@ -71,14 +71,14 @@ func UnmarshalItem(item *api.Item) (proto.Message, error) {
}

// GetModelForItem returns model for given item.
func GetModelForItem(item *api.Item) (RegisteredModel, error) {
func GetModelForItem(item *api.Item) (KnownModel, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think RegisteredModel fits more, but if you like it...

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, in the situation when the models are retrieved from remote agent and not from local registry, it might be confusing to label them as registered..

To be honest, Im not certain either way..

@VladoLavor VladoLavor merged commit d6b37c3 into ligato:dev Oct 31, 2019
@ondrej-fabry ondrej-fabry deleted the protobuf branch October 31, 2019 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants