Continuous Integration¶
We use a so-called continuous integration workflow with TARDIS. This means that each time a change is proposed (via pull request) or a change is merged into the master branch, a service will clone the repository, checkout to the current commit and execute all the TARDIS tests. This helps us to detect bugs immediately.
GitHub Actions¶
A pipeline (or a workflow) is essentially a YAML configuration file with different sections such as variables, jobs and steps. These files run commands or tasks when they are triggered by some event, like a commit being pushed to a certain branch.
Currently, we use GitHub Actions to run all of our pipelines. Making changes to an existing
pipeline is as easy as making a pull request. To create a new GitHub Action workflow,
just create a new YAML file in .github/workflows
.
TARDIS Pipelines¶
Brief description of pipelines already implemented on TARDIS
Streamlined Steps for TARDIS Pipelines¶
We have a common set of steps which are utilized in TARDIS pipelines to streamline the process:
Common Steps¶
Use `setup_lfs` Action - If you need access to regression or atomic data, incorporate the
setup_lfs
action to ensure proper handling of large file storage.Use `setup_env` Action - To configure your environment effectively, utilize the
setup_env
action. This will help establish the necessary variables and settings for your pipeline.Run Configuration - Ensure that your pipeline runs with the appropriate shell settings. You can define this in your YAML configuration as follows:
defaults: run: shell: bash -l {0}
Documentation build pipeline¶
A GitHub Actions workflow that builds and deploys the TARDIS documentation website.
Documentation preview pipeline¶
This workflow does not run on the main repository, just on forks. See the Documentation Preview section for more information.
Testing pipeline¶
The testing pipeline (CI) comprises multiple concurrent jobs. Each of these jobs runs tests across two distinct categories—continuum and rpacket tracking—and supports two different operating systems. Additionally, there are extra steps involved in executing the tests and uploading the coverage results
Release pipeline¶
Publishes a new release of TARDIS every Sunday at 00:00 UTC.
TARDIS Carsus Compatibility Check¶
The TARDIS Carsus Compatibility Check or the “Bridge” compares reference data
generated with different versions of Carsus. It consists of two jobs- a “carsus-build” job to
generate an atomic file with the latest version of Carsus and a “tardis-build” job
to generate a new reference data with it. These two reference data files are compared using the
this notebook.
The workflow has a workflow_dispatch
event so that it can be triggered manually, but is also
triggered every week due to the “save-atomic-files” workflow.
The Save Atomic Files Workflow¶
The Save Atomic Files workflow runs every week but can also be triggered manually. It runs the “Bridge” and sends an artifact containing the generated atomic data file and the comparison notebook to Moria. This workflow has a separate job to indicate if the bridge has failed.