ci: run_n_monitor, sort by name when listing jobs
The job loops, w/o and explicit sort, are sorted by the job id. As they produce logs, humans could feel an improvement by sorting by name. Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29444>
This commit is contained in:

committed by
Marge Bot

parent
12c1bdc31d
commit
5873b3ac14
@@ -331,10 +331,8 @@ def filter_dag(dag: Dag, regex: Pattern) -> Dag:
|
||||
|
||||
|
||||
def print_dag(dag: Dag) -> None:
|
||||
for job, data in dag.items():
|
||||
print(f"{job}:")
|
||||
print(f"\t{' '.join(data['needs'])}")
|
||||
print()
|
||||
for job, data in sorted(dag.items()):
|
||||
print(f"{job}:\n\t{' '.join(data['needs'])}\n")
|
||||
|
||||
|
||||
def fetch_merged_yaml(gl_gql: GitlabGQL, params) -> dict[str, Any]:
|
||||
|
Reference in New Issue
Block a user