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

[SPARK-26710][TEST] Fix some errors in image test case #23633

Closed

Conversation

xubo245
Copy link
Contributor

@xubo245 xubo245 commented Jan 24, 2019

What changes were proposed in this pull request?

Fix test errors in image test case
(Please fill in changes proposed in this fix)

How was this patch tested?

run test case
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Please review http://spark.apache.org/contributing.html before opening a pull request.

ImageSchemaSuite has some errors when running it in local laptop

add
@xubo245 xubo245 force-pushed the SPARK-26710_FixTestErrorsInImage branch from e08c617 to 91af3b2 Compare January 24, 2019 03:06
@xubo245 xubo245 changed the title [SPARK-26710] Fix test errors in image test case [SPARK-26710][TEST] Fix test errors in image test case Jan 24, 2019
@xubo245 xubo245 changed the title [SPARK-26710][TEST] Fix test errors in image test case [SPARK-26710][TEST] Fix some errors in image test case Jan 24, 2019
@SparkQA
Copy link

SparkQA commented Jan 24, 2019

Test build #101611 has finished for PR 23633 at commit 91af3b2.

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

@HyukjinKwon
Copy link
Member

How did you run the test btw? it passes on my local (IDE) and Jenkins.

@xubo245
Copy link
Contributor Author

xubo245 commented Jan 24, 2019

@HyukjinKwon I git clone spark and mvn clean -DskipTests install, then run the test case, it throw exception like the jira content. My laptop is Mac. my Idea version is 2018.1.2.

Please check the JIRA https://issues.apache.org/jira/browse/SPARK-26710 attachments, there are two picture which show errors.

@@ -17,9 +17,7 @@

package org.apache.spark.sql.execution.command

import java.io.File
Copy link
Member

Choose a reason for hiding this comment

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

This looks unrelated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just unused import, I think no need raise a new PR for unused import.


class ImageSchemaSuite extends SparkFunSuite with MLlibTestSparkContext {
// Single column of images named "image"
private lazy val imagePath = "../data/mllib/images/origin"
private lazy val imagePath = new File(this.getClass.getResource("/").getPath
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't look right; looks like you're trying to fix the test rather than you're env. The tests pass when run in my IDE and pass when run in the build. I'd close this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The ubuntu and Mac system both have this problem. Are there any configuration except "git clone spar, mvn clean -DskipTests install, then run the test case"?

Copy link
Member

Choose a reason for hiding this comment

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

I use Mac but looks no problem in my IDE. Jenkins looks no problem too. Can you investigate why it is?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@SparkQA
Copy link

SparkQA commented Jan 24, 2019

Test build #101628 has finished for PR 23633 at commit 74aabed.

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

@srowen srowen closed this Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants