11--- 
22version : 2.1 
3+ #  Singularity started failing to set up on Circle circa May 2023, so those tests are currently disabled
34
45parameters :
56  branch :
@@ -73,7 +74,7 @@ commands:
7374      version :
7475        description : " Version of Singularity to clone" 
7576        type : string 
76-         default : v3.7.2  
77+         default : v3.8.7  
7778    steps :
7879      - install-singularity-requirements 
7980      - restore_cache :
@@ -84,7 +85,7 @@ commands:
8485          command : | 
8586            if [[ ! -d singularity-<< parameters.version >> ]] 
8687            then 
87-               git clone -b << parameters.version >> https://github.com/sylabs /singularity singularity-<< parameters.version >> 
88+               git clone -b << parameters.version >> https://github.com/apptainer /singularity singularity-<< parameters.version >> 
8889            fi 
8990       - save_cache :
9091          key : singularity-<< parameters.version >> 
@@ -94,16 +95,29 @@ commands:
9495         name : " Setting up Singularity" 
9596         command : | 
9697           cd singularity-<< parameters.version >> 
97-            ./mconfig 
98+            ./mconfig -p /usr/local  
9899           make -C builddir 
99100           sudo make -C builddir install 
100101           cd .. 
101102   install-singularity-requirements :
102103    steps :
103104      - run :
104105          name : " Installing Singularity requirements" 
106+           #  https://github.com/apptainer/apptainer/blob/release-1.1/INSTALL.md
105107          command : | 
106-            sudo apt-get update && sudo apt-get install flawfinder squashfs-tools uuid-dev libuuid1 libffi-dev libssl-dev libssl1.1 libarchive-dev libgpgme11-dev libseccomp-dev -y 
108+             sudo apt-get update -y && \ 
109+             sudo apt-get install -y \ 
110+               build-essential \ 
111+               libseccomp-dev \ 
112+               pkg-config \ 
113+               uidmap \ 
114+               squashfs-tools \ 
115+               squashfuse \ 
116+               fuse2fs \ 
117+               fuse-overlayfs \ 
118+               fakeroot \ 
119+               cryptsetup \ 
120+               curl wget git 
107121   run-pytest-docker :
108122    steps :
109123      - create-docker-test-container :
@@ -115,17 +129,18 @@ commands:
115129    steps :
116130      - restore_cache :
117131          keys :
118-             - pip-ci-requirements-{{ checksum "dev/circleci_data/requirements.txt" }}-3.8.5  
132+             - pip-ci-requirements-{{ checksum "dev/circleci_data/requirements.txt" }}-3.10.10  
119133      - run :
120134          name : " Installing CI dependencies" 
121135          command : | 
122-             pyenv global 3.8.5 
136+             yes n | pyenv install 3.10.10 || true  
137+             pyenv global 3.10.10 
123138            pip install --upgrade pip 
124139            pip install -r dev/circleci_data/requirements.txt 
125140       - save_cache :
126-           key : pip-ci-requirements-{{ checksum "dev/circleci_data/requirements.txt" }}-3.8.5  
141+           key : pip-ci-requirements-{{ checksum "dev/circleci_data/requirements.txt" }}-3.10.10  
127142          paths : 
128-             - /opt/circleci/.pyenv/versions/3.8.5  
143+             - /opt/circleci/.pyenv/versions/3.10.10  
129144  set-up-variant :
130145    parameters :
131146      variant :
@@ -162,21 +177,21 @@ commands:
162177jobs :
163178  combine-coverage :
164179    machine :
165-       image : ubuntu-2004:202010-01  
180+       image : ubuntu-2004:2023.04.2  
166181    steps :
167182      - checkout 
168183      - restore_cache :
169184          key : coverage-docker--{{ .Revision }} 
170-       - restore_cache :
171-           key : coverage-singularity--{{ .Revision }} 
185+       #   - restore_cache:
186+       #       key: coverage-singularity--{{ .Revision }}
172187      - restore_cache :
173188          key : coverage-docker-ABCD-HCP-{{ .Revision }} 
174-       - restore_cache :
175-           key : coverage-singularity-ABCD-HCP-{{ .Revision }} 
189+       #   - restore_cache:
190+       #       key: coverage-singularity-ABCD-HCP-{{ .Revision }}
176191      - restore_cache :
177192          key : coverage-docker-lite-{{ .Revision }} 
178-       - restore_cache :
179-           key : coverage-singularity-lite-{{ .Revision }} 
193+       #   - restore_cache:
194+       #       key: coverage-singularity-lite-{{ .Revision }}
180195      - set-python-version 
181196      - combine-coverage 
182197      - store_artifacts :
@@ -187,7 +202,7 @@ jobs:
187202        type : string 
188203        default : " " 
189204    machine :
190-       image : ubuntu-2004:202010-01  
205+       image : ubuntu-2004:2023.04.2  
191206    resource_class : medium 
192207    steps :
193208      - checkout 
@@ -209,7 +224,7 @@ jobs:
209224        type : string 
210225        default : " " 
211226    machine :
212-       image : ubuntu-2004:202010-01  
227+       image : ubuntu-2004:2023.04.2  
213228    resource_class : large 
214229    steps :
215230      - checkout 
@@ -231,7 +246,7 @@ jobs:
231246        type : string 
232247        default : " " 
233248    machine :
234-       image : ubuntu-2004:202010-01  
249+       image : ubuntu-2004:2023.04.2  
235250    resource_class : large 
236251    steps :
237252      - checkout 
@@ -262,11 +277,11 @@ workflows:
262277          name : " Combine coverage" 
263278          requires :
264279            - " Test in Docker" 
265-             - " Test in Singularity" 
280+             #   - "Test in Singularity"
266281            - " Test lite variant in Docker" 
267-             - " Test lite variant in Singularity" 
282+             #   - "Test lite variant in Singularity"
268283            - " Test ABCD-HCP variant in Docker" 
269-             - " Test ABCD-HCP variant in Singularity" 
284+             #   - "Test ABCD-HCP variant in Singularity"
270285            - " Test fMRIPrep-LTS variant in Docker" 
271286      - push-branch-to-docker-hub :
272287          filters :
@@ -292,11 +307,11 @@ workflows:
292307          variant : fMRIPrep-LTS 
293308      - pytest-docker :
294309          name : " Test lite variant in Docker" 
295-       - pytest-singularity :
296-           name : " Test in Singularity" 
297-       - pytest-singularity :
298-           name : " Test ABCD-HCP variant in Singularity" 
299-           variant : ABCD-HCP 
300-       - pytest-singularity :
301-           name : " Test lite variant in Singularity" 
302-           variant : lite 
310+       #   - pytest-singularity:
311+       #       name: "Test in Singularity"
312+       #   - pytest-singularity:
313+       #       name: "Test ABCD-HCP variant in Singularity"
314+       #       variant: ABCD-HCP
315+       #   - pytest-singularity:
316+       #       name: "Test lite variant in Singularity"
317+       #       variant: lite
0 commit comments