Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Runner Mirror
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adrian Schmitz
Runner Mirror
Commits
7bf6a5a2
Commit
7bf6a5a2
authored
2 years ago
by
Adrian Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
merge fix
Signed-off-by:
Adrian Schmitz
<
a.schmitz@itc.rwth-aachen.de
>
parent
ab374a08
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.template.yml
+16
-25
16 additions, 25 deletions
.template.yml
with
16 additions
and
25 deletions
.template.yml
+
16
−
25
View file @
7bf6a5a2
...
...
@@ -34,14 +34,14 @@ default:
tags
:
[
$RUNNER_TAG
]
variables
:
SLURM_
ENV_SLUR
M_TIMELIMIT
:
"
00:
05:00"
SLURM_
ENV_SLUR
M_PARTITION
:
"
c18m_low"
SLURM_
ENV_SRUN_CPUS_PER_TASK
:
"
1"
SLURM_
PARA
M_TIMELIMIT
:
"
-t
05:00"
SLURM_
PARA
M_PARTITION
:
"
-p
c18m_low"
SLURM_
PARAM_CPUS
:
"
-c
1"
GIT_STRATEGY
:
clone
.parallel-job
:
variables
:
SLURM_
ENV_SRUN_CPUS_PER_TASK
:
"
2"
SLURM_
PARAM_CPUS
:
"
-c
2"
CI_MODE
:
"
SingleSlurmJobAcrossStages"
parallel
:
matrix
:
...
...
@@ -50,12 +50,12 @@ variables:
.sequential-job
:
variables
:
SLURM_
ENV_SRUN_CPUS_PER_TASK
:
"
1"
SLURM_
PARAM_CPUS
:
"
-c
1"
CI_MODE
:
"
Slurm"
.shared-sequential-job
:
variables
:
SLURM_
ENV_SRUN_CPUS_PER_TASK
:
"
1"
SLURM_
PARAM_CPUS
:
"
-c
1"
CI_MODE
:
"
SingleSlurmJobAcrossStages"
parallel-build-job
:
# This job runs in the build stage, which runs first.
...
...
@@ -63,7 +63,7 @@ parallel-build-job: # This job runs in the build stage, which runs first.
stage
:
build
variables
:
BEGIN_SINGLE_SLURM_JOB
:
"
1"
SLURM_
ENV_SLUR
M_TIMELIMIT
:
"
00:15:0
0"
SLURM_
PARA
M_TIMELIMIT
:
"
-t
10:3
0"
script
:
-
echo "JOBID ${SLURM_JOB_ID}"
-
echo "NODELIST ${SLURM_JOB_NODELIST}"
...
...
@@ -169,7 +169,7 @@ fail-exit-code-job-Singularity: # This job runs in the build stage, which
fail-timeout-job-Singularity
:
# This job runs in the build stage, which runs first.
stage
:
fail
# MUST FAIL
variables
:
SLURM_
ENV_SLUR
M_TIMELIMIT
:
"
00:
00:30"
SLURM_
PARA
M_TIMELIMIT
:
"
-t
00:30"
CI_MODE
:
"
Singularity"
CONTAINER
:
"
tensorflow"
script
:
...
...
@@ -186,7 +186,7 @@ fail-exit-code-job: # This job runs in the build stage, which runs first.
fail-timeout-job
:
# This job runs in the build stage, which runs first.
stage
:
fail
# MUST FAIL
variables
:
SLURM_
ENV_SLUR
M_TIMELIMIT
:
"
00:
00:30"
SLURM_
PARA
M_TIMELIMIT
:
"
-t
00:30"
script
:
-
echo "Compiling the code..."
-
sleep
1200
...
...
@@ -195,7 +195,7 @@ fail-timeout-job: # This job runs in the build stage, which runs first.
build-job
:
# This job runs in the build stage, which runs first.
stage
:
build
variables
:
SLURM_
ENV_SRUN_CPUS_PER_TASK
:
"
2"
SLURM_
PARAM_CPUS
:
"
-c
2"
script
:
-
echo "Compiling the code..."
-
echo "Compile complete."
...
...
@@ -203,7 +203,7 @@ build-job: # This job runs in the build stage, which runs first.
build-job-Singularity
:
# This job runs in the build stage, which runs first.
stage
:
build
variables
:
SLURM_
ENV_SRUN_CPUS_PER_TASK
:
"
2"
SLURM_
PARAM_CPUS
:
"
-c
2"
CI_MODE
:
"
Singularity"
CONTAINER
:
"
tensorflow"
script
:
...
...
@@ -215,7 +215,7 @@ build-job-Singularity: # This job runs in the build stage, which runs firs
build-job-Singularity-Batch
:
# This job runs in the build stage, which runs first.
stage
:
build
variables
:
SLURM_PARAM
1
:
"
-n2"
SLURM_PARAM
_TASKS
:
"
-n
2"
CI_MODE
:
"
Singularity_Batch"
CONTAINER
:
"
tensorflow"
script
:
...
...
@@ -253,7 +253,7 @@ fail-batch-job: # This job runs in the build stage, which runs first.
unit-test-job
:
# This job runs in the test stage.
stage
:
test
# It only starts when the job in the build stage completes successfully.
variables
:
SLURM_
ENV_SRUN_CPUS_PER_TASK
:
"
4"
SLURM_
PARAM_CPUS
:
"
-c
4"
script
:
-
echo "Running unit tests... This will take about 10 seconds."
-
sleep
10
...
...
@@ -262,7 +262,7 @@ unit-test-job: # This job runs in the test stage.
lint-test-job
:
# This job also runs in the test stage.
stage
:
test
# It can run at the same time as unit-test-job (in parallel).
variables
:
SLURM_
ENV_SRUN_CPUS_PER_TASK
:
"
8"
SLURM_
PARAM_CPUS
:
"
-c
8"
script
:
-
echo "Linting code... This will take about 10 seconds."
-
sleep
10
...
...
@@ -271,16 +271,7 @@ lint-test-job: # This job also runs in the test stage.
fail-slurm-parameter-test
:
# This job also runs in the test stage.
stage
:
fail
# It can run at the same time as unit-test-job (in parallel).
variables
:
SLURM_PARAM1
:
"
-A
gwogh"
# non existing account
script
:
-
echo $SLURM_ACCOUNT
-
echo "No lint issues found."
allow_failure
:
true
fail-slurm-wrong-parameter-test
:
# This job also runs in the test stage.
stage
:
fail
# It can run at the same time as unit-test-job (in parallel).
variables
:
SLURM_ENV_ACCOUNT
:
"
serv0002"
SLURM_PARAM_ACCOUNT
:
"
-A
gwogh"
# non existing account
script
:
-
echo $SLURM_ACCOUNT
-
echo "No lint issues found."
...
...
@@ -289,7 +280,7 @@ fail-slurm-wrong-parameter-test: # This job also runs in the test stage.
slurm-parameter-test
:
# This job also runs in the test stage.
stage
:
test
# It can run at the same time as unit-test-job (in parallel).
variables
:
SLURM_
ENV_SLURM_NPROC
S
:
"
2"
SLURM_
PARAM_CPU
S
:
"
-c
2"
script
:
-
echo "No lint issues found."
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment