You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .ci/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,15 @@ Test jobs:
12
12
-`test-lin-rel-cran` - `--as-cran` on Linux, strict test for final status of `R CMD check`.
13
13
-`test-lin-dev-gcc-strict-cran` - `--as-cran` on Linux, `r-devel` built with `-enable-strict-barrier --disable-long-double`, test for compilation warnings, test for new NOTEs/WARNINGs from `R CMD check`.
14
14
-`test-lin-dev-clang-cran` - same as `gcc-strict` job but R built with `clang` and no `--enable-strict-barrier --disable-long-double` flags.
15
-
-`test-lin-310-cran` - R 3.1.0 on Linux, stated R dependency version.
15
+
-`test-lin-ancient-cran` - Stated R dependency version (currently 3.4.0) on Linux.
16
+
-`test-lin-dev-san` - `r-devel` on Linux built with `clang -fsanitize=address,undefined` (including LeakSanitizer), test for sanitizer output in tests and examples.
16
17
-`test-win-rel` - `r-release` on Windows.
17
18
-`test-win-dev` - `r-devel` on Windows.
18
19
-`test-win-old` - `r-oldrel` on Windows.
19
-
-`test-mac-rel` - macOS build not yet available, see [#3326](https://github.com/Rdatatable/data.table/issues/3326) for status
20
+
-`test-mac-rel` - `r-release` on macOS.
21
+
-`test-mac-old` - `r-oldrel` on macOS.
22
+
23
+
The CI steps for the tests are [required](https://github.com/Rdatatable/data.table/blob/55eb0f160b169398d51f138131c14a66c86e5dc9/.ci/publish.R#L162-L168) to be named according to the pattern `test-(lin|win|mac)-<R version>[-<suffix>]*`, where `<R version>` is `rel`, `dev`, `old`, `ancient`, or three digits comprising an R version (e.g. `362` corresponding to R-3.6.2).
20
24
21
25
Tests jobs are allowed to fail, summary and logs of test jobs are later published at _CRAN-like checks_ page, see artifacts below.
Copy file name to clipboardExpand all lines: .ci/atime/tests.R
+33-2Lines changed: 33 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
pval.thresh<-0.001# to reduce false positives.
2
+
1
3
# Test case adapted from https://github.com/Rdatatable/data.table/issues/6105#issue-2268691745 which is where the issue was reported.
2
4
# https://github.com/Rdatatable/data.table/pull/6107 fixed performance across 3 ways to specify a column as Date, and we test each individually.
3
5
extra.args.6107<- c(
@@ -13,6 +15,7 @@ for (extra.arg in extra.args.6107){
13
15
tmp_csv= tempfile()
14
16
fwrite(DT, tmp_csv)
15
17
},
18
+
FasterIO="60a01fa65191c44d7997de1843e9a1dfe5be9f72", # First commit of the PR (https://github.com/Rdatatable/data.table/pull/6925/commits) that reduced time usage
16
19
Slow="e9087ce9860bac77c51467b19e92cf4b72ca78c7", # Parent of the merge commit (https://github.com/Rdatatable/data.table/commit/a77e8c22e44e904835d7b34b047df2eff069d1f2) of the PR (https://github.com/Rdatatable/data.table/pull/6107) that fixes the issue
17
20
Fast="a77e8c22e44e904835d7b34b047df2eff069d1f2") # Merge commit of the PR (https://github.com/Rdatatable/data.table/pull/6107) that fixes the issue
# Test case adapted from https://github.com/Rdatatable/data.table/pull/7022#discussion_r2107900643
136
+
"fread disk overhead improved in #6925"=atime::atime_test(
137
+
N=2^seq(0, 20), # smaller N because we are doing multiple fread calls.
138
+
setup= {
139
+
fwrite(iris[1], iris.csv<- tempfile())
140
+
},
141
+
expr= replicate(N, data.table::fread(iris.csv)),
142
+
Fast="60a01fa65191c44d7997de1843e9a1dfe5be9f72", # First commit of the PR (https://github.com/Rdatatable/data.table/pull/6925/commits) that reduced time usage
143
+
Slow="e25ea80b793165094cea87d946d2bab5628f70a6"# Parent of the first commit (https://github.com/Rdatatable/data.table/commit/60a01fa65191c44d7997de1843e9a1dfe5be9f72)
144
+
),
145
+
126
146
# Performance regression discussed in https://github.com/Rdatatable/data.table/issues/4311
127
147
# Test case adapted from https://github.com/Rdatatable/data.table/pull/4440#issuecomment-632842980 which is the fix PR.
128
148
"shallow regression fixed in #4440"=atime::atime_test(
Before="f339aa64c426a9cd7cf2fcb13d91fc4ed353cd31", # Parent of the first commit https://github.com/Rdatatable/data.table/commit/fcc10d73a20837d0f1ad3278ee9168473afa5ff1 in the PR https://github.com/Rdatatable/data.table/pull/6393/commits with major change to fwrite with gzip.
247
268
PR="3630413ae493a5a61b06c50e80d166924d2ef89a"), # Close-to-last merge commit in the PR.
248
269
249
-
tests=extra.test.list)
270
+
# Test case created directly using the atime code below (not adapted from any other benchmark), based on the PR, Removes unnecessary data.table call from as.data.table.array https://github.com/Rdatatable/data.table/pull/7010
271
+
"as.data.table.array improved in #7010"=atime::atime_test(
Slow="73d79edf8ff8c55163e90631072192301056e336", # Parent of the first commit in the PR (https://github.com/Rdatatable/data.table/commit/8397dc3c993b61a07a81c786ca68c22bc589befc)
278
+
Fast="8397dc3c993b61a07a81c786ca68c22bc589befc"), # Commit in the PR (https://github.com/Rdatatable/data.table/pull/7019/commits) that removes inefficiency
Copy file name to clipboardExpand all lines: .dev/README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,25 @@
1
1
# data.table developer
2
2
3
+
Inside this repository we provide some tools to improves development experience. Most notable is the `cc()` helper function that recompiles C sources, reloads R sources, and runs tests.
4
+
5
+
Typical development workflow will then look like:
6
+
7
+
0.`git checkout -b [branch]`
8
+
1. edit package files
9
+
2. run `R`
10
+
3. call `cc(TRUE)`
11
+
4. (if needed) go to point 1.
12
+
13
+
Once we (and tests) are satisfied with changes, we then run complete package checks:
14
+
15
+
0. in shell terminal
16
+
1. run `make build`
17
+
2. run `make check`
18
+
3. (optionally) run on `r-devel`, e.g. `R=~/build/R-devel/bin/R make check`
19
+
4. (optionally) run on ancient R, e.g. `R=~/build/R-340/bin/R make check`
20
+
5.`git commit -m '[changes description]'`
21
+
6.`git push [remote] [branch]`
22
+
3
23
## Setup
4
24
5
25
To use the optional helper function `cc()`, one needs to set up the project path and source `.dev/cc.R` to use `cc()` conveniently. This works through creating an additional `.Rprofile` in the `data.table` directory.
0 commit comments