Wykres commitów

460 Commity (2819a6d1b475a2623f290af13c324daa4506de93)

Autor SHA1 Wiadomość Data
YuviPanda 2819a6d1b4 Upgrade simple to a newer r snapshot
2020 had an older version of testthat that ran into issues

> # Error in get(genname, envir = envir) : object 'testthat_print' not found
2022-06-22 08:49:28 -07:00
YuviPanda 9fa096d0f6 Don't specify distro specific build number 2022-06-22 08:49:28 -07:00
YuviPanda def4009a6b Remove another unneeded R unit test
We want users to be able to install new versions of R
as soon as they are out, without us having to do anything
special in repo2docker. So we can't actually check for 'invalid'
R versions. This is ok, as we don't have to special case apt repos
or similar when installing R from rstudio's debs
2022-06-22 08:49:28 -07:00
YuviPanda ba82209e67 Remove tests that checked if specific R packages were installed 2022-06-22 08:49:28 -07:00
Dara Adib 56bf03811e Add test for shallow clone HEAD 2022-06-02 20:54:43 -04:00
YuviPanda 672c21ff82 Make black happy 2022-04-08 13:55:06 -07:00
Min RK 5cfd798008 handle r version unspecified in environment.yml 2022-02-25 12:03:40 +01:00
Simon Li c83efb0427
Merge pull request #1130 from minrk/bump-python-docker
update Python in some dockerfile tests
2022-02-12 14:58:44 +00:00
Min RK 84220028bd put micromamba in /usr/local/bin
instead of tmp, since we want it to stick around.
2022-01-28 15:58:36 +01:00
Min RK f2f8bb666e update Python in dockerfile tests
installing with Python 3.5 is starting to fail
2022-01-28 15:48:55 +01:00
Min RK 7f89926e51
Merge pull request #1062 from wolfv/micromamba
bootstrap base env with micromamba
2022-01-27 09:42:53 +01:00
Min RK d728a64dd9 get version comparison from semver
since Python is removing version string parsing from the standard library

moves Julia-specific semver utilities to top-level
2022-01-26 15:52:09 +01:00
Min RK 8ab5c81245 remove deprecated call to distutils strtobool 2022-01-26 09:56:15 +01:00
Simon Li 813d28bfdb
Merge pull request #1115 from minrk/set-user-root
set USER root after each directive block
2022-01-25 14:55:11 +00:00
YuviPanda 9066d079d0 Use testthat, rather than tinytest
tinytest doesn't exist in older MRAN snapshots
2022-01-25 19:38:47 +05:30
Min RK 945c45299f set USER root after each directive block
matches expectations in the directive sequences

not strictly required after preassemble because we have no root steps between preassemble and assemble,
so we could remove the `last_user = "root"` there instead

includes regression test
2022-01-25 14:48:37 +01:00
YuviPanda f6737cfff5 Use a smaller R library in our tests
ggplot2 is a big library with a bunch of dependencies,
making our already slow R tests even slower. This PR
switches them to using the tinytest library, which has
no dependencies and is much smaller.
2022-01-25 18:58:58 +05:30
Min RK 19acf46392 remove r-recommended package
r-recommended is a collection of common CRAN packages,
which cause conflicts when trying to install older R.

These same packages can be regular dependencies retrieved from CRAN.
2022-01-25 11:38:35 +01:00
Sylvain Corlay 65a36cc3f7 PR review comments: update micromamba, use MAMBA_EXE environment variable 2022-01-21 13:16:33 +01:00
Sylvain Corlay 5f82b2c8b0 Update micromamba installation 2022-01-21 11:21:00 +01:00
Wolf Vollprecht 245fc1b939 use 0.16.0 2022-01-21 11:21:00 +01:00
Sylvain Corlay 089f6a87a5 Use micromamba 0.15.2 2022-01-21 11:21:00 +01:00
Wolf Vollprecht 7c4f2a5b4f fix up urls 2022-01-21 11:21:00 +01:00
Madhur Tandon d2a2c070e7 use experimental build of micromamba 2022-01-21 11:21:00 +01:00
Madhur Tandon 8926cdc968 minor fixes 2022-01-21 11:21:00 +01:00
Madhur Tandon 9c109f95b4 use latest micromamba and fix MAMBA_ROOT_PREFIX 2022-01-21 11:21:00 +01:00
Madhur Tandon 2e702f0248 rename file and add conda-forge channel to .condarc 2022-01-21 11:21:00 +01:00
Madhur Tandon 3288bca6a4 fix tests + change name of script 2022-01-21 11:21:00 +01:00
Madhur Tandon 6cc7567f2e use micromamba 0.12.2 2022-01-21 11:21:00 +01:00
Madhur Tandon f9388c3200 use latest micromamba 2022-01-21 11:21:00 +01:00
Madhur Tandon 2bfbf44efa adhere to lint 2022-01-21 11:21:00 +01:00
Madhur Tandon f508bf167e replace mamba & conda with micromamba 2022-01-21 11:20:58 +01:00
Simon Li a37a205c0e
Merge pull request #1108 from aplamada/test_R_conda
[MRG] add tests for R conda
2022-01-11 10:39:22 +00:00
YuviPanda c04fff30cd Say 'apt repository' rather than PPA
PPA is a specific kind of apt repository, hosted on
launchpad.net. We use https://cran.r-project.org/bin/linux/ubuntu/,
which is just a regular apt repository. The PPA terminology
always confused me, so this just clears that up
2022-01-10 17:43:09 +05:30
Andrei V. Plamada b2b0f758ff
Merge branch 'jupyterhub:main' into test_R_conda 2022-01-08 18:33:59 +01:00
Simon Li 43525352a7
Merge pull request #1107 from yuvipanda/new-r
Bump default R version to 4.1
2022-01-08 14:44:37 +00:00
Andrei Plamada 8a817eba97 add tests for R conda 2022-01-07 13:37:43 +01:00
YuviPanda 3cb3fbf853 Remove unnecessary print() 2022-01-07 11:18:09 +05:30
YuviPanda e2aefcfbdd Update test to match new default R version 2022-01-05 22:51:27 +05:30
YuviPanda 54636c6ecf Bump default R version to 4.1
3.6 is almost 4 years old now.
2022-01-05 22:32:07 +05:30
YuviPanda 7c36566bf2 Fix test for particular version of R 3.6 2022-01-05 01:24:10 +05:30
YuviPanda 0b76e9ea44 Always install IRKernel as a binary package
And add another R test for R4.0 + rspm
2022-01-05 00:12:24 +05:30
YuviPanda ffbace3b38 Check for MRAN differently 2022-01-04 21:50:36 +05:30
YuviPanda d75c0079ad Test that older r snapshots get MRAN 2022-01-04 19:17:06 +05:30
YuviPanda 685c8a0544 Satisfy black 2022-01-04 18:34:33 +05:30
YuviPanda fd6314d07d Solidify logic for picking rspm vs mran
- MRAN doesn't seem to have R 4.1 specific snapshots, so let's
  default to RSPM for anything 4.1+.
- Otherwise, snapshot dates in 2022 will result in using rspm
2022-01-04 18:30:39 +05:30
YuviPanda 054b602b13 Add test for r3.6 2021-12-20 18:24:15 +05:30
YuviPanda 1ed05b59c6 Install devtools, shiny & irkernel from a pin
We were doing this from an old MRAN snapshot. I moved the pin
a little ahead, so IRKernel can also be installed from CRAN
instead of from GitHub. R <= 4.0 gets the old version, and anything
newer gets a more recent version of devtools. This gives us
fast installs for IRkernel with binary packages.

Also add a R 4.0 and R 4.1 test
2021-12-17 15:52:27 +05:30
YuviPanda 476a25998b Get binary R packages from packagemanager.rstudio.com
packagemanager.rstudio.com is a CRAN mirror provided
by rstudio, with *binary packages* prebuilt for many Linux
Distributions! https://www.rstudio.com/blog/announcing-public-package-manager/
has more excellent detail. It cuts down install times for R packages
by almost 90% in some cases!

Like MRAN (which we use now), they also provide a daily snapshot
of CRAN at that date
(https://docs.rstudio.com/rspm/news/#rstudio-package-manager-2021090).
The URL for CRAN for a particular date can be fetched via an API
call. We call that API, and if there is no snapshot for that date
(anything before Oct 2017), we fall back on to MRAN. Adds a test
to test this fallback.

One possible issue about changing existing binder repos to use binary
builds rather than source builds is that the binary builds sometimes
require you have an apt package installed, and will fail if it is
not. We had to install the zmq library apt package for example -
source installs compile zmq from source, which is where the speedup
comes from. But unlike python wheels or conda packages, these binary
builds are not self-contained - they are linked to apt packages from
the specific distros. So some repos that worked before might fail now.
We can choose a more recent cut-off date to prevent this from happening.
2021-12-17 14:50:46 +05:30
YuviPanda e5e00bd1bf Clarify what version of R we are testing for 2021-12-16 15:39:28 +05:30