summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-05-12 21:46:35 +0200
committerGitHub <noreply@github.com>2022-05-12 21:46:35 +0200
commit745c191d7362b221875412e640e02db68dedc12d (patch)
tree17256a1272d2056af21403b01253ecb89caf1c13
parent42e9430fbcd6fb817b316a49168645dbfadb0f1e (diff)
downloadspack-745c191d7362b221875412e640e02db68dedc12d.tar.gz
spack-745c191d7362b221875412e640e02db68dedc12d.tar.bz2
spack-745c191d7362b221875412e640e02db68dedc12d.tar.xz
spack-745c191d7362b221875412e640e02db68dedc12d.zip
Gitlab pipelines: add a small legend in the logs to interpret "[x]" (#30643)
-rw-r--r--lib/spack/spack/ci.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/spack/spack/ci.py b/lib/spack/spack/ci.py
index 299f19a94d..2ad8fd5924 100644
--- a/lib/spack/spack/ci.py
+++ b/lib/spack/spack/ci.py
@@ -314,9 +314,8 @@ def print_staging_summary(spec_labels, dependencies, stages):
if not stages:
return
- tty.msg(' Staging summary:')
- stage_index = 0
- for stage in stages:
+ tty.msg(' Staging summary ([x] means a job needs rebuilding):')
+ for stage_index, stage in enumerate(stages):
tty.msg(' stage {0} ({1} jobs):'.format(stage_index, len(stage)))
for job in sorted(stage):
@@ -326,8 +325,6 @@ def print_staging_summary(spec_labels, dependencies, stages):
'x' if spec_labels[job]['needs_rebuild'] else ' ',
get_spec_string(s)))
- stage_index += 1
-
def compute_spec_deps(spec_list, check_index_only=False):
"""