Gitlab pipelines: add a small legend in the logs to interpret "[x]" (#30643)

This commit is contained in:
Massimiliano Culpo 2022-05-12 21:46:35 +02:00 committed by GitHub
parent 42e9430fbc
commit 745c191d73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):
"""