Skip to content

[HOT FIX] MiMa tests are broken #3371

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

Closed
wants to merge 2 commits into from

Conversation

andrewor14
Copy link
Contributor

This is blocking #3353 and other patches.

@SparkQA
Copy link

SparkQA commented Nov 19, 2014

Test build #23623 has started for PR 3371 at commit c4d4f4e.

  • This patch merges cleanly.

@pwendell
Copy link
Contributor

LGTM - we should add a fix for MIMA where we can mark interfaces that we don't want users to extend, and it will ignore them.

@SparkQA
Copy link

SparkQA commented Nov 19, 2014

Test build #23623 has finished for PR 3371 at commit c4d4f4e.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class LinearBinaryClassificationModel(LinearModel):
    • class LogisticRegressionModel(LinearBinaryClassificationModel):
    • class LogisticRegressionWithLBFGS(object):
    • class SVMModel(LinearBinaryClassificationModel):
    • class Rating(namedtuple("Rating", ["user", "product", "rating"])):
    • class RDDRangeSampler(RDDSamplerBase):
    • class SizeLimitedStream(object):
    • class CompressedStream(object):
    • class LargeObjectSerializer(Serializer):
    • class CompressedSerializer(Serializer):

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23623/
Test FAILed.

@vanzin
Copy link
Contributor

vanzin commented Nov 19, 2014

Not a comment on the change itself, but sometimes these mima errors confuse me. I have a couple of questions:

[error] * abstract method submissionTime()Long in interface org.apache.spark.SparkStageInfo does not have a correspondent in old version

Why is adding a new method an error? That is fine as far as API compatibility is concerned, right? Or is this restricted to interfaces (because of risk of AbstractMethodError)?

[error] * method this(Int,Int,java.lang.String,Int,Int,Int,Int)Unit in class org.apache.spark.SparkStageInfoImpl does not have a correspondent in new version

SparkStageInfoImpl is a private class, why isn't it being ignored?

@@ -99,6 +99,12 @@ object MimaExcludes {
// SPARK-4062
ProblemFilters.exclude[MissingMethodProblem](
"org.apache.spark.streaming.kafka.KafkaReceiver#MessageHandler.this")
) ++ Seq(
// SPARK-2321
ProblemFilters.exclude[MissingMethodProblem](
Copy link
Contributor

Choose a reason for hiding this comment

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

master is now v1.3 so these should probably be moved to the right "case" above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh... that's why it's failing.

@pwendell
Copy link
Contributor

Hey @vanzin. For an interface, adding a new method does break existing implementations. This is an interface we never expect users to extend, so we need a way in general to annotate these and have mima ignore them. Something like @ReadOnlyInterface or something would be nice for this.

For the second issue, I have no idea what is going on with that.

@SparkQA
Copy link

SparkQA commented Nov 19, 2014

Test build #23631 has started for PR 3371 at commit 842d059.

  • This patch merges cleanly.

@pwendell
Copy link
Contributor

I tested this locally and it worked, I'm going to pull this in since the current state of affairs is a huge disruption.

@asfgit asfgit closed this in 0df02ca Nov 19, 2014
@andrewor14 andrewor14 deleted the mima-hot-fix branch November 19, 2014 22:12
@SparkQA
Copy link

SparkQA commented Nov 19, 2014

Test build #23631 has finished for PR 3371 at commit 842d059.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23631/
Test PASSed.

tianyi pushed a commit to asiainfo/spark that referenced this pull request Dec 4, 2014
This is blocking apache#3353 and other patches.

Author: Andrew Or <andrew@databricks.com>

Closes apache#3371 from andrewor14/mima-hot-fix and squashes the following commits:

842d059 [Andrew Or] Move excludes to the right section
c4d4f4e [Andrew Or] MIMA hot fix
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.

5 participants