Pipelines: Ensure consistent spack version for entire pipeline
Also retry jobs always, as script failure is not confined to only our spack ci rebuild command exit code.
This commit is contained in:
parent
31ccf80294
commit
b1f1f5dddb
@ -34,18 +34,7 @@
|
|||||||
|
|
||||||
|
|
||||||
JOB_RETRY_CONDITIONS = [
|
JOB_RETRY_CONDITIONS = [
|
||||||
'unknown_failure',
|
'always',
|
||||||
'api_failure',
|
|
||||||
'stuck_or_timeout_failure',
|
|
||||||
'runner_system_failure',
|
|
||||||
'missing_dependency_failure',
|
|
||||||
'runner_unsupported',
|
|
||||||
'stale_schedule',
|
|
||||||
'job_execution_timeout',
|
|
||||||
'archived_failure',
|
|
||||||
'unmet_prerequisites',
|
|
||||||
'scheduler_failure',
|
|
||||||
'data_integrity_failure',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
spack_gpg = SpackCommand('gpg')
|
spack_gpg = SpackCommand('gpg')
|
||||||
@ -505,10 +494,9 @@ def generate_gitlab_ci_yaml(env, print_summary, output_file,
|
|||||||
if not custom_spack_ref:
|
if not custom_spack_ref:
|
||||||
custom_spack_ref = 'master'
|
custom_spack_ref = 'master'
|
||||||
before_script = [
|
before_script = [
|
||||||
('git clone "{0}" --branch "{1}" --depth 1 '
|
('git clone "{0}"'.format(custom_spack_repo)),
|
||||||
'--single-branch'.format(custom_spack_repo, custom_spack_ref)),
|
'pushd ./spack && git checkout "{0}" && popd'.format(
|
||||||
# Next line just shows spack version in pipeline output
|
custom_spack_ref),
|
||||||
'pushd ./spack && git rev-parse HEAD && popd',
|
|
||||||
'. "./spack/share/spack/setup-env.sh"',
|
'. "./spack/share/spack/setup-env.sh"',
|
||||||
]
|
]
|
||||||
after_script = [
|
after_script = [
|
||||||
|
Loading…
Reference in New Issue
Block a user