Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit f190c16

Browse files
committed
NOTICKET Add connectome establishment software, make Arm64 conditional
1 parent 9c7896a commit f190c16

File tree

7 files changed

+23
-6
lines changed

7 files changed

+23
-6
lines changed

.gitlab-ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ workflow:
1515
when: never
1616
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1717
- if: $CI_PIPELINE_SOURCE == "web"
18+
1819
stages:
1920
- unit tests
2021
- generate
2122
- build base containers
2223
- build cache
2324
- build spacktainer containers
2425
- cleanup
26+
2527
variables:
2628
SPACK_BRANCH: develop
29+
2730
generate base pipeline:
2831
image: ubuntu:22.04
2932
stage: generate
@@ -36,8 +39,7 @@ generate base pipeline:
3639
skopeo
3740
- pip install --upgrade pip setuptools
3841
- pip install -e ./job_creator
39-
- jc create-jobs --singularity-version ${SINGULARITY_VERSION} --s3cmd-version
40-
${S3CMD_VERSION}
42+
- jc create-jobs --singularity-version ${SINGULARITY_VERSION} --s3cmd-version ${S3CMD_VERSION}
4143
artifacts:
4244
when: always
4345
paths:
@@ -97,6 +99,9 @@ populate buildcache for amd64:
9799
strategy: depend
98100
extends: .rules
99101
populate buildcache for arm64:
102+
rules:
103+
- exists:
104+
- container_definitions/arm64
100105
stage: build cache
101106
needs:
102107
- job: gather child artifacts
@@ -120,6 +125,9 @@ build spacktainers for amd64:
120125
strategy: depend
121126
extends: .rules
122127
build spacktainers for arm64:
128+
rules:
129+
- exists:
130+
- container_definitions/arm64
123131
stage: build spacktainer containers
124132
needs:
125133
- job: gather child artifacts
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spack:
2+
specs:
3+
- py-connectome-manipulator
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spack:
2+
specs:
3+
- py-functionalizer
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spack:
2+
specs:
3+
- touchdetector

get_artifacts/src/get_artifacts/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import glob
22
import logging
33
import os
4+
from pathlib import Path
45
from pprint import pformat
56

67
import click
@@ -103,7 +104,7 @@ def get_artifacts(parent_pipeline, private_token):
103104
jobs = session.get(jobs_url(base_url, project_id, run_pipeline["id"])).json()
104105
logger.debug(f"Jobs: {pformat(jobs)}")
105106
for architecture in [
106-
os.path.basename(archdir) for archdir in glob.glob("container_definitions/*")
107+
archdir.name for archdir in Path("container_definitions").glob("[!_]*")
107108
]:
108109
logger.info(f"Architecture: {architecture}")
109110
process_job = next(

job_creator/src/job_creator/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import glob
21
import json
32
import logging
43
import logging.config
5-
import os
4+
from pathlib import Path
65

76
import requests
87
import ruamel.yaml
@@ -70,7 +69,7 @@ def get_architectures():
7069
Retrieve the architectures that need to be built based on the container definitions
7170
"""
7271
architectures = [
73-
os.path.basename(archdir) for archdir in glob.glob("container_definitions/*")
72+
archdir.name for archdir in Path("container_definitions").glob("[!_]*")
7473
]
7574

7675
return architectures

0 commit comments

Comments
 (0)