-
-
Notifications
You must be signed in to change notification settings - Fork 287
Update scrooge-generator, scrooge-core, util-core and util-logging to version 20.9.0 #1139
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
Update scrooge-generator, scrooge-core, util-core and util-logging to version 20.9.0 #1139
Conversation
|
I think your upgrades are correct, but there are tests which depend on some binary jars which are incompatible with this 20.9.0 version. @ittaiz any idea how are these jars generated, where is the source? https://github.com/bazelbuild/rules_scala/tree/master/test/src/main/scala/scalarules/test/twitter_scrooge/thrift |
@liucijus Thank you |
|
I have no idea. |
c3d9ce2 to
c3c6556
Compare
|
@ittaiz thank you It looks like in the target I looked at the content of the jar: The content of the thrift3_scrooge.jar that was in rules_scala before my changes: The content of the thrift3_scrooge.jar that was generated by running with scrooge version 18.6.0: The content of the thrift3_scrooge.jar that was generated by running with scrooge version 20.9.0: |
|
Small nits:
|
|
@liucijus thank you 🙂
|
c3c6556 to
89016d2
Compare
ittaiz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Really small comment inside.
| # testing jdk11, which requires the shims in javax.annotation:javax.annotation-api:1.3.2 | ||
| # to compile. | ||
| union Union { | ||
| union Union1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the newer version of scrooge-generator, a name clash occurs.
I got the error running bazel test test/src/main/scala/scalarules/test/twitter_scrooge/...:
ERROR: /Users/etyurina/workspace/rules_scala_fork/test/src/main/scala/scalarules/test/twitter_scrooge/thrift/BUILD:3:15: scala //test/src/main/scala/scalarules/test/twitter_scrooge/thrift:thrift failed (Exit 1)
bazel-out/darwin-fastbuild/bin/test/src/main/scala/scalarules/test/twitter_scrooge/thrift/tmp4946029676322863219/scalarules/test/twitter_scrooge/thrift/Union.scala:85: error: value Struct1 is not a member of org.apache.thrift.protocol.TStruct
_result = Union.Struct1({
^
one error found
The generated file is here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got you. Next time I think there's value in either adding a comment or better yet making the rename more explicit (maybe unionWhichIsntReservedWord or something).Thanks for the contribution!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your time and effort! We definitely need an active thrift scrooge champion around here :)
… version 20.9.0 (bazel-contrib#1139) * Update scrooge and util to v 20.9.0 for scala 2.12 * Update scrooge and util to v 20.9.0 for scala 2.11 * Update test_version script to use scrooge version 20.9.0 * Fix tests errors * Remove scalatest update
… version 20.9.0 (bazel-contrib#1139) * Update scrooge and util to v 20.9.0 for scala 2.12 * Update scrooge and util to v 20.9.0 for scala 2.11 * Update test_version script to use scrooge version 20.9.0 * Fix tests errors * Remove scalatest update
Description and Motivation
Changes related to issue #1131
Updated
scrooge-generator,scrooge-core,util-coreandutil-loggingto version 20.9.0.Also, updated their dependencies to recommended versions in maven repository.
For testing run the script
test_version.sh.All passed except test of scala version 2.12. Some of the thrift related tests didn't pass.
Would be glad for help with fixing test.