Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci-scripts/ci-runner.bash
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ else
echo "Running unit tests"
echo "=================="

checked_exec ./test_reframe.py --rfm-user-config=config/cscs.py
checked_exec ./test_reframe.py --rfm-user-config=config/cscs-ci.py

echo "==================================="
echo "Running unit tests with PBS backend"
Expand Down
209 changes: 209 additions & 0 deletions config/cscs-ci.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
#
# CSCS ReFrame CI settings
#


class ReframeSettings:
reframe_module = 'reframe'
job_poll_intervals = [1, 2, 3]
job_submit_timeout = 60
checks_path = ['checks/']
checks_path_recurse = True
site_configuration = {
'systems': {
'daint': {
'descr': 'Piz Daint CI nodes',
'hostnames': ['daint'],
'modules_system': 'tmod',
'resourcesdir': '/apps/common/UES/reframe/resources',
'partitions': {
'login': {
'scheduler': 'local',
'modules': [],
'access': [],
'environs': ['PrgEnv-cray', 'PrgEnv-gnu',
'PrgEnv-intel', 'PrgEnv-pgi'],
'descr': 'Login nodes',
'max_jobs': 4
},
'gpu': {
'scheduler': 'nativeslurm',
'modules': ['daint-gpu'],
'access': ['--constraint=gpu', '--partition=cscsci'],
'environs': ['PrgEnv-cray', 'PrgEnv-gnu',
'PrgEnv-intel', 'PrgEnv-pgi'],
'descr': 'Hybrid nodes (Haswell/P100)',
'max_jobs': 100,
'resources': {
'switches': ['--switches={num_switches}']
}
},
}
},
'dom': {
'descr': 'Dom TDS',
'hostnames': ['dom'],
'modules_system': 'tmod',
'resourcesdir': '/apps/common/UES/reframe/resources',
'partitions': {
'login': {
'scheduler': 'local',
'modules': [],
'access': [],
'environs': ['PrgEnv-cray', 'PrgEnv-gnu',
'PrgEnv-intel', 'PrgEnv-pgi'],
'descr': 'Login nodes',
'max_jobs': 4
},
'gpu': {
'scheduler': 'nativeslurm',
'modules': ['daint-gpu'],
'access': ['--constraint=gpu'],
'environs': ['PrgEnv-cray', 'PrgEnv-gnu',
'PrgEnv-intel'],
'descr': 'Hybrid nodes (Haswell/P100)',
'max_jobs': 100,
'resources': {
'switches': ['--switches={num_switches}']
}
},
}
},
'kesch': {
'descr': 'Kesch MCH',
'hostnames': [r'keschln-\d+'],
'modules_system': 'tmod',
'resourcesdir': '/apps/common/UES/reframe/resources',
'partitions': {
'login': {
'scheduler': 'local',
'environs': ['PrgEnv-cray', 'PrgEnv-pgi',
'PrgEnv-gnu'],
'descr': 'Kesch login nodes',
},
'cn': {
'scheduler': 'nativeslurm',
'access': ['--partition=cn-regression'],
'environs': ['PrgEnv-cray', 'PrgEnv-pgi',
'PrgEnv-gnu'],
'descr': 'Kesch compute nodes',
'resources': {
'_rfm_gpu': ['--gres=gpu:{num_gpus_per_node}'],
}
}
}
},
'generic': {
'descr': 'Generic example system',
'partitions': {
'login': {
'scheduler': 'local',
'modules': [],
'access': [],
'environs': ['builtin-gcc'],
'descr': 'Login nodes'
}
}
}
},

'environments': {
'kesch': {
'PrgEnv-gnu': {
'type': 'ProgEnvironment',
'modules': ['PrgEnv-gnu'],
'cc': 'gcc',
'cxx': 'g++',
'ftn': 'gfortran',
},
},
'*': {
'PrgEnv-cray': {
'type': 'ProgEnvironment',
'modules': ['PrgEnv-cray'],
},

'PrgEnv-gnu': {
'type': 'ProgEnvironment',
'modules': ['PrgEnv-gnu'],
},

'PrgEnv-intel': {
'type': 'ProgEnvironment',
'modules': ['PrgEnv-intel'],
},

'PrgEnv-pgi': {
'type': 'ProgEnvironment',
'modules': ['PrgEnv-pgi'],
},

'builtin': {
'type': 'ProgEnvironment',
'cc': 'cc',
'cxx': '',
'ftn': '',
},

'builtin-gcc': {
'type': 'ProgEnvironment',
'cc': 'gcc',
'cxx': 'g++',
'ftn': 'gfortran',
}
}
}
}

logging_config = {
'level': 'DEBUG',
'handlers': [
{
'type': 'file',
'name': 'reframe.log',
'level': 'DEBUG',
'format': '[%(asctime)s] %(levelname)s: '
'%(check_info)s: %(message)s',
'append': False,
},

# Output handling
{
'type': 'stream',
'name': 'stdout',
'level': 'INFO',
'format': '%(message)s'
},
{
'type': 'file',
'name': 'reframe.out',
'level': 'INFO',
'format': '%(message)s',
'append': False,
}
]
}

perf_logging_config = {
'level': 'DEBUG',
'handlers': [
{
'type': 'filelog',
'prefix': '%(check_system)s/%(check_partition)s',
'level': 'INFO',
'format': (
'%(asctime)s|reframe %(version)s|'
'%(check_info)s|jobid=%(check_jobid)s|'
'%(check_perf_var)s=%(check_perf_value)s|'
'ref=%(check_perf_ref)s '
'(l=%(check_perf_lower_thres)s, '
'u=%(check_perf_upper_thres)s)|'
'%(check_perf_unit)s'
),
'append': True
}
]
}


settings = ReframeSettings()
2 changes: 1 addition & 1 deletion config/cscs.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class ReframeSettings:

'kesch': {
'descr': 'Kesch MCH',
'hostnames': ['keschln-\d+'],
'hostnames': [r'keschln-\d+'],
'modules_system': 'tmod',
'resourcesdir': '/apps/common/UES/reframe/resources',
'partitions': {
Expand Down