-
Notifications
You must be signed in to change notification settings - Fork 2
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
add runTests and checkTests tasks to verify a release #11
base: master
Are you sure you want to change the base?
Conversation
* Ensure that all packages have 'configure' task * Handle packages without R sources, etc * Write out log files to build directory per task
This plugin configures gradle to use a more Java-centric package layout: src/main/java src/main/R src/test/java src/test/R Compiling the R namespace will also depend on the java classes, so importClass() can be used in the NAMESPACE file
* Compress gimple json files * Disable gimple compile logs by default * Tone down stdout/stderr output from tasks
Scripts in the data/ folder can refer to these resources using system.file() so we need them on the classpath.
This will be defined during the project setup phase.
Some packages like RWeka include jars which are added to the classpath when the package is loaded. Instead, we just merge the classes into the package's jar so that they are alreay on the classpath.
This can be set by adding testNamespace { ignoreFailures = true } to the test file.
# Conflicts: # .gitignore
When running make, the source files should be compiled in alphabetical order. Compiling them outside of this order breaks the tseries package.
# Conflicts: # .gitignore
# Conflicts: # .gitignore
Thanks Per, this looks great! |
For tools:setupPackages to work we need a setting.gradle file. I suggested in this PR to solve this by adding tools as a subproject to the base in renjin-release. Another way would be to just add a settings.gradle to tools. Right now when I try to build with the latest i get
|
I think this only happens because somehow you've checked out renjin-gradle-plugin in the renjin release root. There should be no settings.gradle in the root of renjin-release |
Yes, you are right. Thanks and sorry for the noise. The vagrant file needs to be cranced up to allow for a 8G heap and I added a config to /home/vagrant/.gradle. I see the Vagrant file was not merged - was there some issues with the proposed changes to it or just an oversight? |
No, sorry, that wasn't intentional, I wanted to extract the Vagrant file as
well as some changes to the readme's but didn't have a chance.
…On Wed, Sep 2, 2020 at 10:15 PM Per Nyfelt ***@***.***> wrote:
Yes, you are right. Thanks and sorry for the noise. The vagrant file needs
to be cranced up to allow for a 8G heap and I added a config to
/home/vagrant/.gradle. I see the Vagrant file was not merged - was there
some issues with the proposed changes to it or just an oversight?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADO5Q6Q2X6MS7B2DLJON73SD2RVBANCNFSM4QPETBUA>
.
--
Alexander Bertram
Technical Director
*BeDataDriven BV*
Web: http://bedatadriven.com
Email: alex@bedatadriven.com
Tel. Nederlands: +31(0)647205388
Skype: akbertram
|
Ok no worries, the pull request was not as clean as I would have wished but you made nice enhancements to it when merging it in. Dealing with submodules in a fork using branches turns out to be quite complex so I'll try to come up with another way to get it cleaner next time. I have some issues with the replacements i.e. I get a null for version in the packages that depend on a replacement package. I tried to verify this on a fresh clone of the repo but that did not build. I'll wait a few days until the merge is complete before attacking this again... |
Initial version that, although a bit crude, works. It depends on the PR to add a test summary file i submitted to renjin a couple of minutes ago.
The initial content of the packages.mustpass is just meant for testing for now. Given its content:
It is now possible to run
./gradlew -Dprofile=mustpass checkTests
which will run the tests in date, digest and MASS (if not up to date) and then parse the$submodule/build/renjin-test-reports/renjin-test-results.log
for each package in the list and verify the result against the packages.mustpass list. The result is:If I remove the last waiver in the packages.mustpass (
- stepAIC.Rd: not sure about this one
) we get the following instead:I am not sure why those Groovy files from the renjin-gradle-plugin are there as when i diff against the master branch there are no differences - must be something about submodules I dont fully understand.