Skip to content

[fix] Optimize subgraph serialization to exclude unused definitions#1185

Merged
christian-byrne merged 1 commit intomasterfrom
fix/optimize-subgraph-serialization
Aug 2, 2025
Merged

[fix] Optimize subgraph serialization to exclude unused definitions#1185
christian-byrne merged 1 commit intomasterfrom
fix/optimize-subgraph-serialization

Conversation

@christian-byrne
Copy link
Contributor

Fixes workflow file bloat by only serializing subgraph definitions that are actually used in the graph hierarchy. Uses BFS traversal to efficiently find all referenced subgraphs while handling circular references.

- Add BFS traversal to find only used subgraph definitions
- Filter serialized subgraphs to include only those referenced by nodes
- Add comprehensive tests for subgraph serialization and utilities
- Fixes workflow file bloat from accumulating unused subgraph definitions
@christian-byrne christian-byrne merged commit 46a486c into master Aug 2, 2025
4 checks passed
@christian-byrne christian-byrne deleted the fix/optimize-subgraph-serialization branch August 2, 2025 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant