Make test robust to R configuration/version/platform issue#5867
Merged
MichaelChirico merged 2 commits intomasterfrom Jan 3, 2024
Merged
Make test robust to R configuration/version/platform issue#5867MichaelChirico merged 2 commits intomasterfrom
MichaelChirico merged 2 commits intomasterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5867 +/- ##
=======================================
Coverage 97.47% 97.47%
=======================================
Files 80 80
Lines 14829 14829
=======================================
Hits 14454 14454
Misses 375 375 ☔ View full report in Codecov by Sentry. |
Contributor
|
Thanks for this! Yes I can test this in a |
Contributor
|
As of this branch, how I tested that (click me)
# create the environment
# NOTE: I use https://github.com/conda-forge/miniforge, so all packages installed will be from conda-forge
conda create \
--yes \
--name r42 \
'r-base>=4.2,<4.3'
source activate r42
# build and install data.table from this branch
git clone \
--branch skip-test \
git@github.com:Rdatatable/data.table.git \
/tmp/data.table
cd /tmp/data.table
"$CONDA_PREFIX/bin/R" CMD INSTALL .
# confirm that this version of R still has that timezone issue
env -i PATH=/usr/bin:/bin \
"$CONDA_PREFIX/bin/Rscript" -e 'as.POSIXct("1893-12-28 05:15:36", tz = "")'
# Error in as.POSIXlt.character(x, tz, ...) :
# character string is not in a standard unambiguous format
# Calls: as.POSIXct ... as.POSIXct.default -> as.POSIXct -> as.POSIXlt -> as.POSIXlt.character
# confirm that test.data.table() works
env -i PATH=/usr/bin:/bin LANG=en_US.UTF-8 \
"$CONDA_PREFIX/bin/Rscript" -e 'require("data.table"); data.table::test.data.table()'That shows the following: Repeated that exact same method but with cd ${HOME}
rm -rf /tmp/data.table
git clone \
--branch master \
git@github.com:Rdatatable/data.table.git \
/tmp/data.table
cd /tmp/data.table
"$CONDA_PREFIX/bin/R" CMD INSTALL .
env -i PATH=/usr/bin:/bin LANG=en_US.UTF-8 \
"$CONDA_PREFIX/bin/Rscript" -e 'require("data.table"); data.table::test.data.table()'And yes, that fails as observed in conda-forge/r-data.table-feedstock#35. Thanks for this! |
This was referenced Jan 3, 2024
Member
Author
|
Great, thanks for checking! Merging since this should be a no op for other environments |
ben-schwen
added a commit
that referenced
this pull request
May 29, 2024
MichaelChirico
added a commit
that referenced
this pull request
Jun 2, 2024
…6146) * Warning will not throw again now that it's captured in base_messages * alter testcase to pre #5867 since warning is now captured with base_messages --------- Co-authored-by: Benjamin Schwendinger <52290390+ben-schwen@users.noreply.github.com> Co-authored-by: Benjamin Schwendinger <benjaminschwe@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5866
@jameslamb are you able to test the conda build against this PR? Would be great to confirm it's WAI on your end. If so we can merge and try to have this shipped in CRAN version 1.15.0.