Skip to content

Latest commit

 

History

History

.ci

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

data.table continuous integration and deployment

On each Pull Request opened in GitHub we run GitHub Actions test jobs to provide prompt feedback about the status of PR. Our more thorough main CI pipeline runs nightly on GitLab CI. GitLab repository automatically mirrors our GitHub repository and runs pipeline on master branch every night. It tests more environments and different configurations. It publishes a variety of artifacts such as our homepage and CRAN-like website for dev version, including windows binaries for the dev version.

Environments

Test jobs:

  • test-lin-rel - r-release on Linux, most comprehensive test environment, force all suggests, -O3 -flto=auto -fno-common -Wunused-result, test for no compilation warnings.
  • test-lin-rel-vanilla - r-release on Linux, no suggested deps, no zlib, no OpenMP, flags -g -O0 -fno-openmp, skip manual and vignettes.
  • test-lin-rel-cran - --as-cran on Linux, strict test for final status of R CMD check.
  • 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.
  • test-lin-dev-clang-cran - same as gcc-strict job but R built with clang and no --enable-strict-barrier --disable-long-double flags.
  • test-lin-310-cran - R 3.1.0 on Linux, stated R dependency version.
  • test-win-rel - r-release on Windows.
  • test-win-dev - r-devel on Windows.
  • test-win-old - r-oldrel on Windows.
  • test-mac-rel - macOS build not yet available, see #3326 for status

Tests jobs are allowed to fail, summary and logs of test jobs are later published at CRAN-like checks page, see artifacts below.

Artifacts:

TODO document

CI tools

Base R implemented helper script, originally proposed to base R, that ease the process of extracting dependency information from description files, and to mirror packages and their recursive dependencies from CRAN to local CRAN-like directory. It is used in GitLab CI pipeline.

Base R implemented helper script to orchestrate generation of most artifacts and to arrange them nicely. It is being used only in integration stage in GitLab CI pipeline.

GitLab Open Source Program

We are currently part of the GitLab for Open Source Program. This gives us 50,000 compute minutes per month for our GitLab CI. Our license needs to be renewed yearly (around July) and is currently managed by @ben-schwen.

Updating CI pipeline

Basic CI checks are also run on every push to the GitLab repository. This can and should be used for PRs changing the CI pipeline before merging them to master.

# fetch changes from remote (GitHub) and push them to GitLab 
git fetch git@github.com:Rdatatable/data.table.git new_branch:new_branch
git push
# after updating on GitHub, pull changes from remote and push to GitLab
git pull git@github.com:Rdatatable/data.table.git new_branch
git push

Make sure to include a link to the pipeline results in your PR.