-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[r-package] cut CI-time dependency on craigcitro/r-travis (fixes #4348) #4353
Conversation
@jameslamb Out of curiosity, I planed to learn R at some point for its abundant statistic libraries. But I found there's no implementation of R semantic tools for code navigation. Closest one I can find would be https://github.com/REditorSupport/languageserver , but their TODO list seems to be too long. Do you use any of these stuffs? |
@jameslamb I changed Travis CI script to install R. |
Thanks @hcho3 . I see now that the R side of Travis is passing! Is the failing Python task related to this? Or is it something transient that you've seen before? |
@trivialfis Thanks for the link, I've never seen this before! I'm not familiar with language servers, but is the general idea here that you have a particular IDE you like and you want to be able to develop R code in it and get features like autocompletion, syntax highlighting, error flags, etc.? RStudio is a wildly popular free, open source IDE amongst R developers. The source code is at rstudio/rstudio if you want to look around for how they do things like autocompletion of R code. |
CI restarted because I just rebased to current master and re-pushed (in case reviewers are wondering) |
Oh wait @hcho3 I still see a failure of the R test (https://travis-ci.org/dmlc/xgboost/jobs/518574498) I think the bit of |
I am going to try using The |
oh @hcho3 I see you just pushed a commit to update the homebrew deps. I did not notice that in If not, I'm going to try this in
|
tests/travis/run_test.sh
Outdated
)" | ||
|
||
# install suggested packages separately to avoid huge build times | ||
Rscript -e "install.packages(c('DiagrammeR', 'Ckmeans.1d.dp', 'vcd'), repos = 'https://cloud.r-project.org')" |
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.
@hcho3 for my own knowledge, why was it necessary to change to cloud.r-project.org
from the RStudio mirror?
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.
From this page: "Automatic redirection to servers worldwide, currently sponsored by Rstudio"
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.
thank you
pushed a commit to resolve this error:
@hcho3 what is
Is it just a mistake in the |
Good news: green build on the R test after my most recent commit! In |
Codecov Report
@@ Coverage Diff @@
## master #4353 +/- ##
=======================================
Coverage 67.96% 67.96%
=======================================
Files 132 132
Lines 12251 12251
=======================================
Hits 8326 8326
Misses 3925 3925 Continue to review full report at Codecov.
|
Alright, R tests are working! https://travis-ci.org/dmlc/xgboost/builds/519083803 They still take 35 minutes though, not sure how to work around that. I see that the python test is failing on the build. Do you think it is related to the current state of this branch, or just transient? |
It’s transient failure. I restarted it. As for the long setup time, we can use Docker to cache builds in Jenkins (when R tests get migrated there) |
Merging for now. |
Currently, this project's R stage on Travis depends on
craigcitro/r-travis
, a project that was officially deprecated in July 2016. In this PR, I propose a way to factor it out.See #4348 and other linked issues there for more details.
Thanks for considering it!