ci: fix uorb graphs sort

Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
Ramon Roche
2025-06-10 11:30:21 -07:00
parent 9ff5860c49
commit 1a56f79f2f
10 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
name: Docs Metadata Checks
name: Docs Metadata
permissions:
contents: write
+5 -5
View File
@@ -376,7 +376,7 @@ class Graph(object):
self._print_topics = sorted(subscribed_topics | published_topics)
self._print_scopes = scopes_with_topic
else:
self._print_topics = subscribed_topics & published_topics
self._print_topics = sorted(subscribed_topics & published_topics)
# cull scopes to only those that pub or sub to a topic that has both
intersect_scopes = {}
@@ -687,8 +687,8 @@ class OutputJSON(object):
# edges
for name,scope in output_scopes.items():
for topic in scope.publications:
for name,scope in sorted(output_scopes.items(), key=lambda kv: kv[0]):
for topic in sorted(scope.publications):
if topic in output_topics:
edge = {}
edge['source'] = 'm_'+name
@@ -697,8 +697,8 @@ class OutputJSON(object):
edge['style'] = 'dashed'
edges.append(edge)
for name,scope in output_scopes.items():
for topic in scope.subscriptions:
for name,scope in sorted(output_scopes.items(), key=lambda kv: kv[0]):
for topic in sorted(scope.subscriptions):
if topic in output_topics:
edge = {}
edge['source'] = 't_'+topic
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long