-
Notifications
You must be signed in to change notification settings - Fork 708
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
Move Scalding to 2.10/2.11 #1059
Conversation
@@ -39,17 +39,17 @@ abstract class DailySuffixLzoCodec[T](prefix: String, dateRange: DateRange)(impl | |||
|
|||
abstract class DailySuffixLzoProtobuf[T <: Message: Manifest](prefix: String, dateRange: DateRange) |
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.
Can you kill the manifest references too while your at it?
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.
I was hoping to enlist the compiler in helping with this... can't do that until we're on 2.11 (ie algebird release). see: twitter/algebird#351
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.
How would the compiler help? if you enable warnings manifests are a warning in 2.10 also?
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.
By giving me errors instead of warnings ;)
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.
Manifests are still in 2.11 as a warning i'm pretty sure?
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.
Oh, really? well if that's the case, I'd prefer not to tackle that in this PR. This is going to get bit enough as it is and I'd like to focus on reconciling the breaking changes
scalatest conversion is complete (ex. the Distributed Cache test I mentioned earlier, still not sure what to do about what) Can work on 2.11 support once the new algebird is published |
Repl works! I searched around github and use https://github.com/NICTA/scoobi/blob/master/src/main/scala/com/nicta/scoobi/application/ScoobiRepl.scala as a base, as they had to deal with the same issue |
If we can get this green we can go ahead and merge before 0.12. I was mistaken about how quickly twitter would move to 0.12 and it is going to be a while. I'd rather go ahead and get this in sooner so that we don't block the scala 2.11 publishing. |
Everything works locally, I think that the build now takes a touch too long |
Hm, so it looks like the remaining errors are because of this:
Have we dealt with problems like this before? This does seem like a pretty sillily long class name, but I'm not sure, really, of the best way to fix it (I guess we can try to unnest some callbacks?). |
So ian fixed scald.rb to work (the thing I was looking at was a red herring). It looks like we just have one failure left, a real one... it's the scalding repl again. It seems like on 2.11.2 if you run https://github.com/scala/scala/blob/2.11.x/src/repl/scala/tools/nsc/MainGenericRunner.scala we override process() so it's easy to imagine we just need to account for a difference in the lifecyle. We really should push on the scala folk to have a stable repl API... @travisbrown do you know why this API isn't treated as, well, an API? I know it's internal but I thought extending the REPL was considered a feature of scala, not an antipattern? |
@ianoc can this be closed now? |
I think so, though Jco's comments above are pretty good to keep alive maybe in an issue until we have repl support working in 2.11 |
This is done now, so closing this. |
So this is just the beginning, but it's a big chunk of the work. I've been doing it between other things.
The big things I've done are to get scalding-core and scalding-hadoop-test working. Note: the DistributedCache tests in scalding-core had a dependency on mockito.... for now I commented it out. Do we want to depend on mockito just for one test? That said, rewriting is going to be a slight pain. So I'm not sure what we want to do there.
Either way, this is to get the ball rolling. I haven't started the 2.11 work becasue we need a new algebird release...but the scalatest migration stuff is enough for the time being!