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

Add syntax version to .proto files #220

Closed
wants to merge 1 commit into from
Closed

Conversation

shaneutt
Copy link

@shaneutt shaneutt commented Jan 5, 2017

protoc clients using libprotoc 3.0.0+ want .proto files to specify their protocol buffers syntax version.

This adds the syntax version to avoid warnings from libprotoc 3.0.0+.

@thumbot
Copy link

thumbot commented Jan 5, 2017

Thanks @shaneutt!

Settings
---
minimum_reviewers: 2
merge: true
build_steps:
- make clean
- make deps
- make compile
- make test
- make xref
- make dialyzer
org_mode: true
timeout: 1800

@thumbot
Copy link

thumbot commented Jan 5, 2017

develop da19df4 ➡️ develop 4541303 ⛔ completed
There seems to be an issue with build step **make_compile,make_test,make_xref,make_dialyzer** ! ☁️
✅ MERGE

Started at: 2017-01-05 08:35
Duration: 1 seconds.
Result: OK
Message: Merge Success: develop da19df4 onto target branch: develop 4541303
Exit Code: OK

📄







  Updating 4541303..da19df4
Fast-forward (no commit created; -m option ignored)
 src/riak.proto           |  2 ++
 src/riak_dt.proto        |  2 ++
 src/riak_dt_pb.erl       | 23 +++++++++++++++++++++
 src/riak_kv.proto        |  2 ++
 src/riak_kv_pb.erl       | 52 ++++++++++++++++++++++++++++++++++++++++++++++++
 src/riak_pb.erl          | 18 +++++++++++++++++
 src/riak_search.proto    |  2 ++
 src/riak_search_pb.erl   | 22 ++++++++++++++++++++
 src/riak_ts.proto        |  2 ++
 src/riak_ts_pb.erl       | 39 ++++++++++++++++++++++++++++++++++++
 src/riak_yokozuna.proto  |  2 ++
 src/riak_yokozuna_pb.erl | 11 ++++++++++
 12 files changed, 177 insertions(+)




✅ MAKE_CLEAN

Started at: 2017-01-05 08:35
Duration: 1 seconds.
Result: OK
Message: OK
Exit Code: 0

📄


cd /tmp/thumbs/develop.4541303.develop.da19df4; make clean




  ==> develop.4541303.develop.da19df4 (clean)





✅ MAKE_DEPS

Started at: 2017-01-05 08:35
Duration: 1 seconds.
Result: OK
Message: OK
Exit Code: 0

📄


cd /tmp/thumbs/develop.4541303.develop.da19df4; make deps




  ==> develop.4541303.develop.da19df4 (get-deps)
Pulling hamcrest from {git,"https://github.com/basho/hamcrest-erlang.git",
                           {tag,"0.3.0-basho"}}
Cloning into 'hamcrest'...
==> hamcrest (get-deps)





⛔ MAKE_COMPILE

Started at: 2017-01-05 08:35
Duration: 2 seconds.
Result: ERROR
Message: Step make_compile Failed!
Exit Code: 2

📄


cd /tmp/thumbs/develop.4541303.develop.da19df4; make compile




  ==> hamcrest (compile)
Compiled src/hamcrest.erl
Compiled src/hamcrest_term.erl
Compiled src/hamcrest_matchers.erl
==> hamcrest (post_compile)
==> develop.4541303.develop.da19df4 (compile)
Compiled src/riak_pb_kv_codec.erl
Compiled src/riak_pb_codec.erl
Compiled src/riak_pb_search_codec.erl
Compiled src/riak_pb_messages.erl
Compiled src/riak_pb_dt_codec.erl
src/riak_dt_pb.erl:4148: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4157: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4192: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4227: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4265: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4278: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4287: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4306: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4318: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4330: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4356: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4379: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4403: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4445: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4488: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4501: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4514: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4523: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4534: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4546: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4557: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4569: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4577: attribute 'dialyzer' after function definitions
Compiling src/riak_dt_pb.erl failed:
ERROR: compile failed while processing /tmp/thumbs/develop.4541303.develop.da19df4: rebar_abort
make: *** [erl_compile] Error 1





⛔ MAKE_TEST

Started at: 2017-01-05 08:35
Duration: 1 seconds.
Result: ERROR
Message: Step make_test Failed!
Exit Code: 2

📄


cd /tmp/thumbs/develop.4541303.develop.da19df4; make test




  ==> hamcrest (compile)
==> hamcrest (post_compile)
==> develop.4541303.develop.da19df4 (compile)
src/riak_dt_pb.erl:4148: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4157: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4192: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4227: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4265: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4278: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4287: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4306: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4318: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4330: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4356: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4379: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4403: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4445: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4488: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4501: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4514: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4523: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4534: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4546: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4557: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4569: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4577: attribute 'dialyzer' after function definitions
Compiling src/riak_dt_pb.erl failed:
ERROR: compile failed while processing /tmp/thumbs/develop.4541303.develop.da19df4: rebar_abort
make: *** [erl_compile] Error 1





⛔ MAKE_XREF

Started at: 2017-01-05 08:35
Duration: 2 seconds.
Result: ERROR
Message: Step make_xref Failed!
Exit Code: 2

📄


cd /tmp/thumbs/develop.4541303.develop.da19df4; make xref




  ==> hamcrest (compile)
==> hamcrest (post_compile)
==> develop.4541303.develop.da19df4 (compile)
src/riak_dt_pb.erl:4148: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4157: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4192: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4227: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4265: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4278: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4287: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4306: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4318: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4330: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4356: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4379: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4403: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4445: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4488: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4501: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4514: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4523: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4534: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4546: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4557: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4569: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4577: attribute 'dialyzer' after function definitions
Compiling src/riak_dt_pb.erl failed:
ERROR: compile failed while processing /tmp/thumbs/develop.4541303.develop.da19df4: rebar_abort
make: *** [erl_compile] Error 1





⛔ MAKE_DIALYZER

Started at: 2017-01-05 08:35
Duration: 1 seconds.
Result: ERROR
Message: Step make_dialyzer Failed!
Exit Code: 2

📄


cd /tmp/thumbs/develop.4541303.develop.da19df4; make dialyzer




  ==> hamcrest (compile)
==> hamcrest (post_compile)
==> develop.4541303.develop.da19df4 (compile)
src/riak_dt_pb.erl:4148: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4157: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4192: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4227: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4265: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4278: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4287: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4306: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4318: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4330: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4356: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4379: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4403: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4445: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4488: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4501: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4514: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4523: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4534: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4546: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4557: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4569: attribute 'dialyzer' after function definitions
src/riak_dt_pb.erl:4577: attribute 'dialyzer' after function definitions
Compiling src/riak_dt_pb.erl failed:
ERROR: compile failed while processing /tmp/thumbs/develop.4541303.develop.da19df4: rebar_abort
make: *** [erl_compile] Error 1





⬜ 0 of 2 Code reviews from organization basho

@lukebakken
Copy link
Contributor

The addition of -dialyzer broke the build. I am going to close this as it's just a warning that is emitted, right, not an error?

@lukebakken lukebakken closed this Jan 5, 2017
@@ -13,6 +13,8 @@
* git add -A; git commit -m 'Update erlang code from .proto files'
*/

syntax = "proto2";
Copy link
Contributor

Choose a reason for hiding this comment

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

This syntax modifier is only valid in the Protocol Buffers 3 spec IIRC: https://developers.google.com/protocol-buffers/docs/proto3#simple

@@ -4145,6 +4145,7 @@ verify_msg(Msg, Opts) ->
end.


-dialyzer({nowarn_function,v_msg_mapfield/3}).
Copy link
Contributor

Choose a reason for hiding this comment

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

These will have to go in the dialyzer.ignore-warnings file I think, probably a syntax that was added in R16 or R17.

Copy link
Contributor

@lukebakken lukebakken Jan 5, 2017

Choose a reason for hiding this comment

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

It's a compilation issue. If you run protogen using a "too new" Erlang, gpb will insert these.

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.

None yet

4 participants