Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/rel-1718314844'
Browse files Browse the repository at this point in the history
  • Loading branch information
Crunch.io Jenkins Account committed Jun 13, 2024
2 parents 538554d + ad99c37 commit 16c4bd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker/jenkins/Dockerfile.rcrunch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rstudio/r-base:3.6-bionic
FROM docker-proxy.nexus.crint.net/rstudio/r-base:4.3-jammy
ARG RPROXY_CREDS
ARG HOMEDIR=/home/jenkins
ARG USER=997
Expand All @@ -8,7 +8,7 @@ ENV R_LIBS=${HOMEDIR}/rlibs
USER root
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8
RUN apt-get update && apt-get install build-essential libtiff5-dev libfribidi-dev libfontconfig1-dev libgit2-dev libssl-dev libcurl4-gnutls-dev libxml2-dev libsodium-dev -y
RUN apt-get update && apt-get install build-essential libtiff5-dev libfribidi-dev libfontconfig1-dev libgit2-dev libssl-dev libcurl4-gnutls-dev libxml2-dev libsodium-dev libharfbuzz-dev libfribidi-dev -y
# Add the user/group jenkins
RUN groupadd --gid ${GROUP} jenkins \
&& useradd --uid ${USER} --gid jenkins --shell /bin/bash --create-home -d ${HOMEDIR} jenkins
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-export-dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ with_mock_crunch({
validExport <- function(df2) {
expect_identical(dim(df2), dim(ds))
expect_equal(df2$v3, df$v3)
expect_identical(levels(df2$v4), c("B", "C"))
expect_identical(sort(unique(df2$v4)), c("B", "C"))
## assert more
}
# nolint end
Expand Down Expand Up @@ -201,7 +201,7 @@ with_test_authentication({
write.csv(ds[ds$v4 == "C", ], file = filename)
df2 <- read.csv(filename)
expect_identical(nrow(df2), 10L)
expect_identical(levels(df2$v4), "C")
expect_identical(unique(df2$v4), "C")
})

test_that("Can filter columns in export", {
Expand All @@ -220,7 +220,7 @@ with_test_authentication({
df2 <- read.csv(filename)
expect_identical(dim(df2), c(10L, 2L))
expect_identical(names(df2), c("v2", "v4"))
expect_identical(levels(df2$v4), "C")
expect_identical(unique(df2$v4), "C")
})

test_that("Can export category ids", {
Expand Down

0 comments on commit 16c4bd4

Please sign in to comment.