Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up2.11.1 #97
Conversation
folone
and others
added some commits
Apr 25, 2014
mosesn
reviewed
Apr 29, 2014
View changes
project/Build.scala
mosesn
reviewed
Apr 29, 2014
| @@ -103,13 +110,6 @@ object Util extends Build { | ||
| libraryDependencies ++= Seq( | ||
| "com.twitter.common" % "objectsize" % "0.0.7" % "test" | ||
| ), | ||
| testOptions in Test <<= scalaVersion map { |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
folone
Apr 30, 2014
Contributor
From the description of the bug, I've got that this is the problem with specs. Now that we're not using it, I figured this could be removed. Also, MonitorSpec seems to be working just fine.
folone
Apr 30, 2014
Contributor
From the description of the bug, I've got that this is the problem with specs. Now that we're not using it, I figured this could be removed. Also, MonitorSpec seems to be working just fine.
mosesn
reviewed
Apr 29, 2014
View changes
util-core/src/main/scala/com/twitter/util/BatchExecutor.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-core/src/main/scala/com/twitter/util/BoundedStack.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-core/src/main/scala/com/twitter/util/Promise.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-core/src/main/scala/com/twitter/util/RingBuffer.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-eval/src/main/scala/com/twitter/util/Eval.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-logging/src/main/scala/com/twitter/logging/ThrottledHandler.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-logging/src/main/scala/com/twitter/logging/ThrottledHandler.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-reflect/src/main/scala/com/twitter/util/reflect/Proxy.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-reflect/src/test/scala/com/twitter/util/ProxySpec.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-reflect/src/test/scala/com/twitter/util/ProxySpec.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-thrift/src/main/scala/com/twitter/util/ThriftCodec.scala
mosesn
reviewed
Apr 29, 2014
View changes
util-zk/src/main/scala/com/twitter/zk/coordination/ZkAsyncSemaphore.scala
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
Apr 29, 2014
Contributor
Looks generally good. A few things before we merge it in:
- We can't use any feature that was introduced after 2.9.2 until we drop support for scala 2.9.2. It will take a little while to do this, since Twitter still uses 2.9.2 in some places.
- Why are the util-zk tests broken? How can we help you fix them?
- All of the tests should have the
@RunWith[JUnitRunner]annotation. - We've historically called tests that were written with specs XSpec.scala and ones written with scalatest XTest.scala, so could you rename all of the tests that now use ScalaTest to end with Test.scala instead of Spec.scala?
- There are a few places where your word find/replace were a little overzealous and renamed variable names or comments.
|
Looks generally good. A few things before we merge it in:
|
mosesn
reviewed
Apr 29, 2014
View changes
project/Build.scala
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
folone
Apr 30, 2014
Contributor
I'll address the issues and will let you know when I'm done.
Concerning the util-zk tests, it seems like they use jmock testing cycle, which I failed to reproduce in those places. Will see if JMockCycle can help there.
|
I'll address the issues and will let you know when I'm done. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
Apr 30, 2014
Contributor
Hmm, maybe it would be simpler to just keep everything on mockito and rephrase the test slightly?
|
Hmm, maybe it would be simpler to just keep everything on mockito and rephrase the test slightly? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
folone
May 3, 2014
Contributor
@mosesn Thanks for your comments, I've addressed them in folone@674b9f7. There's one particular difference between 2.9 and 2.11 that causes code duplication in util-collection: collection wrappers have been moved from scala.collection.JavaConversions to collection.convert.Wrappers (both work in 2.10 with first being deprecated). Therefore I used this trick with scala-2.11, scala-2.10 and scala-2.9.2 directories under util-collection/src/main.
|
@mosesn Thanks for your comments, I've addressed them in folone@674b9f7. There's one particular difference between 2.9 and 2.11 that causes code duplication in util-collection: collection wrappers have been moved from |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
May 4, 2014
Contributor
Instead of the different source directories, can we just use JavaConverters instead of JavaConversions?
Were you able to fix the util-zk problem?
|
Instead of the different source directories, can we just use JavaConverters instead of JavaConversions? Were you able to fix the util-zk problem? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
folone
May 5, 2014
Contributor
Will have a look, thanks for pointing out. Haven't gotten to util-zk yet.
|
Will have a look, thanks for pointing out. Haven't gotten to util-zk yet. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
folone
May 14, 2014
Contributor
Sorry for the long radio silence: had a lot on my plate recently. I've updated the code to use JavaConverters rather then JavaConversions.
|
Sorry for the long radio silence: had a lot on my plate recently. I've updated the code to use JavaConverters rather then JavaConversions. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
May 14, 2014
Contributor
Rad, let me know if there's anything I can do to help with the rest of the util-zk tests.
|
Rad, let me know if there's anything I can do to help with the rest of the util-zk tests. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
folone
May 15, 2014
Contributor
There. The same trick with encapsulating common logic into Helper class worked. Sorry for taking so long.
|
There. The same trick with encapsulating common logic into Helper class worked. Sorry for taking so long. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
May 16, 2014
Contributor
Awesome! Because this is so big, it will probably take us a little while to churn through reading it all, but thanks so much!
|
Awesome! Because this is so big, it will probably take us a little while to churn through reading it all, but thanks so much! |
mosesn
reviewed
May 16, 2014
| @@ -9,24 +9,35 @@ object Util extends Build { | ||
| ExclusionRule("com.sun.jmx", "jmxri"), | ||
| ExclusionRule("javax.jms", "jms") | ||
| ) | ||
| val scalatest = scalaVersion(sv => sv match { | ||
| case "2.9.2" => "org.scalatest" %% "scalatest" % "1.9.2" |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
May 16, 2014
Contributor
hurk! looks like scalatest dropped support for 2.9.2? good thing we're moving off soon (finally)
mosesn
May 16, 2014
Contributor
hurk! looks like scalatest dropped support for 2.9.2? good thing we're moving off soon (finally)
mosesn
reviewed
May 16, 2014
View changes
project/Build.scala
mosesn
reviewed
May 16, 2014
| ), | ||
| libraryDependencies <+= scalatest(_ % "test"), |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
May 16, 2014
Contributor
can we move the _ % "test" just into the scalatest val? also, I think we can just put scalatest into the Seq of libraryDependencies.
mosesn
May 16, 2014
Contributor
can we move the _ % "test" just into the scalatest val? also, I think we can just put scalatest into the Seq of libraryDependencies.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
folone
May 17, 2014
Contributor
I did this because all repos' tests depend on scalatest, but for util-logging it is a compile-time dependency because of TestLogging.scala.
folone
May 17, 2014
Contributor
I did this because all repos' tests depend on scalatest, but for util-logging it is a compile-time dependency because of TestLogging.scala.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
reviewed
May 16, 2014
| @@ -1,27 +1,31 @@ | ||
| package com.twitter.util |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
May 16, 2014
Contributor
@bmdhacks I think this fails on 2.11, so we have to figure out what to do about it.
mosesn
May 16, 2014
Contributor
@bmdhacks I think this fails on 2.11, so we have to figure out what to do about it.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bmdhacks
May 16, 2014
Contributor
Lemme look into it. If it's an easy port we might just kick that can down the road.
bmdhacks
May 16, 2014
Contributor
Lemme look into it. If it's an easy port we might just kick that can down the road.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
May 16, 2014
Contributor
I'd prefer for the smaller tests to be FunSuite instead of WordSpec for faster compile times, but that's something we can do in a future PR. It's fine as is.
(edited for clarity)
|
I'd prefer for the smaller tests to be FunSuite instead of WordSpec for faster compile times, but that's something we can do in a future PR. It's fine as is. (edited for clarity) |
bmdhacks
closed this
May 16, 2014
bmdhacks
reopened this
May 16, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
I'm ok with WordSpec for now. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Yeah, me too. Happy shipping as is. |
bmdhacks
reviewed
May 19, 2014
View changes
util-codec/src/test/scala/com/twitter/util/StringEncoderTest.scala
folone
added some commits
May 22, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Awesome, I really want to get this in, I'll look at it today. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bmdhacks
May 23, 2014
Contributor
I'm shepherding this through our internal submit process. Can't tell you how awesome this contribution is.
|
I'm shepherding this through our internal submit process. Can't tell you how awesome this contribution is. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bmdhacks
May 28, 2014
Contributor
Util master is a bit ahead of this patch. I've moved it forward but I'm running into trouble with com.twitter.logging.TestLogging since it uses specs as part of its API. Technically this means that removing specs is an API breaking change. Not sure what to do about that.
|
Util master is a bit ahead of this patch. I've moved it forward but I'm running into trouble with com.twitter.logging.TestLogging since it uses specs as part of its API. Technically this means that removing specs is an API breaking change. Not sure what to do about that. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
folone
Jun 2, 2014
Contributor
Yeah, I completely removed specs and updated TestLogging to expose scalatest API instead.
|
Yeah, I completely removed specs and updated |
folone
changed the title from
2.11.0
to
2.11.1
Jun 18, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adamdecaf
Jul 1, 2014
I'm looking to get this up to 2.11. How's it coming along? Anything I can help with?
adamdecaf
commented
Jul 1, 2014
|
I'm looking to get this up to 2.11. How's it coming along? Anything I can help with? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
Jul 1, 2014
Contributor
@adamdecaf this is basically blocked on me at this point. @bmdhacks has mostly wrestled it through CI, and I'm going to take it over the finish line. I'm going to try to get it in this week.
If you're interested in helping with the rest of the stack, we'd appreciate it if you took a stab at pieces of finagle that are still using specs.
|
@adamdecaf this is basically blocked on me at this point. @bmdhacks has mostly wrestled it through CI, and I'm going to take it over the finish line. I'm going to try to get it in this week. If you're interested in helping with the rest of the stack, we'd appreciate it if you took a stab at pieces of finagle that are still using specs. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
Jul 2, 2014
Contributor
Glorious news! This has been merged internally. We'll close this ticket after the change has been merged back into github.
If you have questions about how to move forward with 2.11 compat, I'll be your point of contact for now, and @bmdhacks will return to being the 2.11 guru when he's back from his honeymoon.
@folone your name will be sung for innumerable generations. If you ever find yourself in SF or NYC, hit us up. You are owed many beers.
|
Glorious news! This has been merged internally. We'll close this ticket after the change has been merged back into github. If you have questions about how to move forward with 2.11 compat, I'll be your point of contact for now, and @bmdhacks will return to being the 2.11 guru when he's back from his honeymoon. @folone your name will be sung for innumerable generations. If you ever find yourself in SF or NYC, hit us up. You are owed many beers. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adamdecaf
referenced this pull request
Jul 2, 2014
Closed
Removing specs usage from the CookieMapSpec. #289
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
joegaudet
commented
Jul 9, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
electricmonk
Jul 9, 2014
+1
On Wed, Jul 9, 2014 at 11:33 AM, Joe Gaudet notifications@github.com
wrote:
+1
Reply to this email directly or view it on GitHub:
#97 (comment)
electricmonk
commented
Jul 9, 2014
|
+1 On Wed, Jul 9, 2014 at 11:33 AM, Joe Gaudet notifications@github.com
|
added a commit
that referenced
this pull request
Jul 16, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
Aug 8, 2014
Contributor
This is in master, but we had a small hiccup with figuring out what to do with util-eval, so we were still unable to publish 2.11. Sorry! We're working on a solution right now.
In the mean time, I'm going to close this PR. Thanks for the contribution!
|
This is in master, but we had a small hiccup with figuring out what to do with util-eval, so we were still unable to publish 2.11. Sorry! We're working on a solution right now. In the mean time, I'm going to close this PR. Thanks for the contribution! |
mosesn
closed this
Aug 8, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
folone
Aug 8, 2014
Contributor
@mosesn So once you folks figure out util-eval issues, it'll be possible to just add 2.11 to cross-build targets, and everything would just work™, right?
|
@mosesn So once you folks figure out util-eval issues, it'll be possible to just add 2.11 to cross-build targets, and everything would just work™, right? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Yep! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
folone
Aug 8, 2014
Contributor
Sounds great! Thanks a lot! Do you have any kind of estimates on when to expect 2.11 version?
|
Sounds great! Thanks a lot! Do you have any kind of estimates on when to expect 2.11 version? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Nothing hard yet, but my guess would be in a couple of weeks. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Great, thanks! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jedesah
commented
Aug 22, 2014
|
@mosesn What's the new ETA on this? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
Aug 22, 2014
Contributor
@jedesah we're still on track. I'll let you know if something goes wrong. Thanks for checking in!
|
@jedesah we're still on track. I'll let you know if something goes wrong. Thanks for checking in! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mosesn
Aug 23, 2014
Contributor
It has been closed and released from sonatype. It should be synced to maven central shortly.
|
It has been closed and released from sonatype. It should be synced to maven central shortly. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
It's there! (๑>ᴗ<๑) big shoutout to @folone! |

folone commentedApr 29, 2014
Re #95.
Here's some work on cross-compiling this codebase to scala 2.11.0.
The main thing here is migrating tests from specs to scalatest.
Some things to note are:
util-eval/testfails for 2.11.0util-zk(1, 2, 3, 4)/cc @mosesn @bmdhacks