Skip to content

Testing

Mathias Goncalves edited this page Apr 29, 2025 · 2 revisions

Quicker Patch Testing

When testing a bug fix, some patches can be easily applied to existing images by mounting the updated source code. This avoids spending time and resources having to pull a new image on Docker or Singularity/Apptainer.

Steps

Fetch the patch locally

Click here if you do not yet have a local copy of the repository
# The following command makes a local copy (clone), with just the branch name
git clone https://github.com/nipreps/nibabies.git --branch <branch-name> --single-branch

Screenshot 2025-04-29 at 9 49 39 AM

The branch name is listed at the top of the pull request.


Click here if you already have a local copy
cd <path/to/nibabies>
git fetch origin <branch-name>
git checkout <branch-name>

Add in the relevant binding

# Singularity / Apptainer
-B </path/to/nibabies>/nibabies:/opt/conda/envs/nibabies/lib/python3.11/site-packages/nibabies:ro

# Docker
-v </path/to/nibabies>/nibabies:/opt/conda/envs/nibabies/lib/python3.11/site-packages/nibabies:ro

Run it!

Clone this wiki locally