From 745c191d7362b221875412e640e02db68dedc12d Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Thu, 12 May 2022 21:46:35 +0200 Subject: Gitlab pipelines: add a small legend in the logs to interpret "[x]" (#30643) --- lib/spack/spack/ci.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib') 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): """ -- cgit v1.2.3-70-g09d2