Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
cc29d01d
Commit
cc29d01d
authored
Jul 07, 2021
by
niklas.baumgarten
Browse files
Merge branch '33-rmv-mlmc-in-pipeline' into 'feature'
Resolve "Rmv mlmc in Pipeline" Closes
#33
See merge request
!46
parents
12fce4bc
752eb185
Pipeline
#157928
passed with stages
in 16 minutes and 45 seconds
Changes
2
Pipelines
12
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
cc29d01d
...
...
@@ -7,86 +7,86 @@ stages:
variables
:
OS
:
"
ubuntu"
OS_VERSION_ML
MC
:
"
20.04"
OS_VERSION_ML
UQ
:
"
20.04"
REGISTRY
:
"
ci.cluster.math.kit.edu"
IMAGE_NAME_ML
MC
:
"
ml
mc
-${CI_COMMIT_SHORT_SHA}-${OS}${OS_VERSION_ML
MC
}-${CI_PIPELINE_ID}"
IMAGE_NAME_ML
UQ
:
"
ml
uq
-${CI_COMMIT_SHORT_SHA}-${OS}${OS_VERSION_ML
UQ
}-${CI_PIPELINE_ID}"
RUN_EXPERIMENTS
:
'
none'
HOST
:
'
horeka'
# ------------------------ Start of CI ------------------------
build-ml
mc
:
build-ml
uq
:
stage
:
build
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
only
:
variables
:
[
$RUN_EXPERIMENTS == 'none'
]
script
:
-
sed s/REGISTRY/${REGISTRY}/g docker/ml
mc
.baseimage >
docker/ml
mc
_registry.baseimage
-
sed s/UBUNTUVERSION/${OS_VERSION_ML
MC
}/g docker/ml
mc
_registry.baseimage >
docker/${IMAGE_NAME_ML
MC
}.baseimage
-
sed s/REGISTRY/${REGISTRY}/g docker/ml
uq
.baseimage >
docker/ml
uq
_registry.baseimage
-
sed s/UBUNTUVERSION/${OS_VERSION_ML
UQ
}/g docker/ml
uq
_registry.baseimage >
docker/${IMAGE_NAME_ML
UQ
}.baseimage
-
docker build
--build-arg UPSTREAM_COMMIT=${UPSTREAM_COMMIT}
--no-cache -t ${REGISTRY}/${IMAGE_NAME_ML
MC
}
-f docker/${IMAGE_NAME_ML
MC
}.baseimage .
--no-cache -t ${REGISTRY}/${IMAGE_NAME_ML
UQ
}
-f docker/${IMAGE_NAME_ML
UQ
}.baseimage .
dependencies
:
[
]
tags
:
[
shell
]
ctest-ml
mc
:
ctest-ml
uq
:
stage
:
test
variables
:
GIT_STRATEGY
:
none
only
:
variables
:
[
$RUN_EXPERIMENTS == 'none'
]
image
:
${REGISTRY}/${IMAGE_NAME_ML
MC
}
image
:
${REGISTRY}/${IMAGE_NAME_ML
UQ
}
script
:
-
cd /mpp/build/
-
ctest
dependencies
:
[
"
build-ml
mc
"
]
dependencies
:
[
"
build-ml
uq
"
]
tags
:
[
docker
]
mpitest-ml
mc
:
mpitest-ml
uq
:
stage
:
test
variables
:
GIT_STRATEGY
:
none
only
:
variables
:
[
$RUN_EXPERIMENTS == 'none'
]
image
:
${REGISTRY}/${IMAGE_NAME_ML
MC
}
image
:
${REGISTRY}/${IMAGE_NAME_ML
UQ
}
script
:
-
cd /mpp/build/
-
python3 mppyrun.py --mpi_tests=1 --mute=0
dependencies
:
[
"
build-ml
mc
"
]
dependencies
:
[
"
build-ml
uq
"
]
tags
:
[
docker
]
deploy-ml
mc
:
deploy-ml
uq
:
stage
:
deploy
variables
:
GIT_STRATEGY
:
none
script
:
-
docker tag ${REGISTRY}/${IMAGE_NAME_ML
MC
}
${REGISTRY}/ml
mc
-${CI_COMMIT_TAG}-${OS}${OS_VERSION_ML
MC
}
-
docker push ${REGISTRY}/ml
mc
-${CI_COMMIT_TAG}-${OS}${OS_VERSION_ML
MC
}
-
docker tag ${REGISTRY}/${IMAGE_NAME_ML
UQ
}
${REGISTRY}/ml
uq
-${CI_COMMIT_TAG}-${OS}${OS_VERSION_ML
UQ
}
-
docker push ${REGISTRY}/ml
uq
-${CI_COMMIT_TAG}-${OS}${OS_VERSION_ML
UQ
}
only
:
[
tags
]
dependencies
:
[
"
ctest-ml
mc
"
,
"
mpitest-ml
mc
"
]
dependencies
:
[
"
ctest-ml
uq
"
,
"
mpitest-ml
uq
"
]
tags
:
[
shell
]
clean-ml
mc
:
clean-ml
uq
:
stage
:
.post
when
:
always
allow_failure
:
true
variables
:
GIT_STRATEGY
:
none
script
:
-
docker rmi ${REGISTRY}/${IMAGE_NAME_ML
MC
}
dependencies
:
[
"
build-ml
mc
"
]
-
docker rmi ${REGISTRY}/${IMAGE_NAME_ML
UQ
}
dependencies
:
[
"
build-ml
uq
"
]
tags
:
[
shell
]
# ------------------------- End of CI -------------------------
# ------------------------ Start of CD ------------------------
# See https://www.nhr.kit.edu/userdocs/ci/ci-level2
elliptic-experiments-ml
mc
:
elliptic-experiments-ml
uq
:
stage
:
experiments
variables
:
GIT_STRATEGY
:
recursive
...
...
@@ -109,7 +109,7 @@ elliptic-experiments-mlmc:
paths
:
[
build/log
]
elliptic-experiments-ml
mc
2
:
elliptic-experiments-ml
uq
2
:
stage
:
experiments
variables
:
GIT_STRATEGY
:
recursive
...
...
docker/ml
mc
.baseimage
→
docker/ml
uq
.baseimage
View file @
cc29d01d
...
...
@@ -17,6 +17,9 @@ RUN tar xjf sprng5.tar.bz2 && \
make -j20 && \
cd .. && \
cd mpp && \
git config --get remote.origin.fetch && \
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \
git config --get remote.origin.fetch && \
git fetch --all && \
git checkout $UPSTREAM_COMMIT && \
cd .. && \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment