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-8350] [R] Log R unit test output to "unit-tests.log" #6807

Closed
wants to merge 3 commits into from

Conversation

andrewor14
Copy link
Contributor

Right now it's logged to "R-unit-tests.log". Jenkins currently only archives files named "unit-tests.log", and this is what all other modules (e.g. SQL, network, REPL) use.

  1. We should be consistent
  2. I don't want to reconfigure Jenkins to accept a different file

@shivaram

@andrewor14 andrewor14 changed the title [SPARK-8350] Log R unit test output to "unit-tests.log" [SPARK-8350] [R] Log R unit test output to "unit-tests.log" Jun 13, 2015
@shivaram
Copy link
Contributor

This makes sense @andrewor14 -- Does this also get put in R/target/ automatically ? I see python/target in https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/34843/artifact/ for example

@andrewor14
Copy link
Contributor Author

yeah, it should just work

@shivaram
Copy link
Contributor

Cool - LGTM.

@SparkQA
Copy link

SparkQA commented Jun 14, 2015

Test build #34854 has finished for PR 6807 at commit d7b68ae.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class JoinedRow extends InternalRow
    • class JoinedRow2 extends InternalRow
    • class JoinedRow3 extends InternalRow
    • class JoinedRow4 extends InternalRow
    • class JoinedRow5 extends InternalRow
    • class JoinedRow6 extends InternalRow
    • class BaseOrdering extends Ordering[InternalRow]

@andrewor14
Copy link
Contributor Author

Hm, actually the R logs don't appear to be showing up under "Build Archives". I'll look into this later today.

@shivaram
Copy link
Contributor

We could try to make that R/target/unit-tests.log ? But I'm not sure if log4j creates directories if they don't exist. BTW is there a jenkins config option that specifies the files to archive ?

@andrewor14
Copy link
Contributor Author

Looks like R is a little different from other modules because there's no src/main/resources. I added target in front of the path. Let's see if this works.

@SparkQA
Copy link

SparkQA commented Jun 14, 2015

Test build #34876 has finished for PR 6807 at commit 407c46c.

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

@shivaram
Copy link
Contributor

@andrewor14 looks like that worked ? I do see a target/unit-tests.log and it contains logs from R unit tests.

@andrewor14
Copy link
Contributor Author

@andrewor14
Copy link
Contributor Author

Oh, is that what target/unit-tests.log is? I was expecting it to go under R/target/unit-tests.log. That would be more consistent with the other modules. I guess we need to explicitly specify the R directory here because the log4j.properties file is not in R/src/main

@shivaram
Copy link
Contributor

Hmm so I think for the other projects Maven probably care to go into the directory before running tests while it doesn't happen for R. Lets see how the latest one goes

@SparkQA
Copy link

SparkQA commented Jun 14, 2015

Test build #34896 has finished for PR 6807 at commit 96005d2.

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

@shivaram
Copy link
Contributor

R/target/unit-tests.log exists this time. I guess this is good to merge ?

@andrewor14
Copy link
Contributor Author

Yup, lgtm. Feel free to merge it.

@asfgit asfgit closed this in 56d4e8a Jun 15, 2015
@andrewor14 andrewor14 deleted the r-logs branch June 15, 2015 17:40
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
Right now it's logged to "R-unit-tests.log". Jenkins currently only archives files named "unit-tests.log", and this is what all other modules (e.g. SQL, network, REPL) use.
1. We should be consistent
2. I don't want to reconfigure Jenkins to accept a different file

shivaram

Author: andrewor14 <andrew@databricks.com>
Author: Andrew Or <andrew@databricks.com>

Closes apache#6807 from andrewor14/r-logs and squashes the following commits:

96005d2 [andrewor14] Nest unit-tests.log further until R
407c46c [andrewor14] Add target to log path
d7b68ae [Andrew Or] Log R unit test output to "unit-tests.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants