-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[DX-2836] add topology CLI and capability-matrix visualization for local CRE configs #21109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
I see you updated files related to
|
3e9c831 to
1e6eeb0
Compare
1e6eeb0 to
121c1b9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds a new “topology” CLI to discover CRE topology TOML configs and generate human-readable visualizations (ASCII + Markdown), plus integrates a compact topology/capability matrix summary into env start.
Changes:
- Introduces
topologyCLI commands: list/show/generate, including doc/index generation. - Adds
topologyvizpackage to build topology summaries and render ASCII/Markdown capability matrices. - Updates configs/docs and prints a compact topology summary during environment startup.
Reviewed changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| core/scripts/cre/environment/topologyviz/topologyviz.go | Implements topology summary building and ASCII/Markdown rendering + artifact writing |
| core/scripts/cre/environment/topologyviz/topologyviz_test.go | Adds a unit test for ASCII capability matrix border rendering |
| core/scripts/cre/environment/main.go | Registers the new topology command in the root CLI |
| core/scripts/cre/environment/environment/topology.go | Implements topology subcommands (list/show/generate), discovery, and doc generation |
| core/scripts/cre/environment/environment/environment.go | Prints compact topology summary during env start and removes legacy printout |
| core/scripts/cre/environment/configs/workflow-gateway-don-grpc-source.toml | Converts chain capability table into explicit per-chain capability flags |
| core/scripts/cre/environment/README.md | Documents topology CLI usage and notes env start now prints topology summary |
| core/scripts/cre/environment/docs/TOPOLOGIES.md | Adds generated index of available topology configs |
| core/scripts/cre/environment/docs/topologies/workflow-gateway-sharded-don.md | Adds generated topology doc (capability matrix + DONs section) |
| core/scripts/cre/environment/docs/topologies/workflow-gateway-mock-don.md | Adds generated topology doc (capability matrix + DONs section) |
| core/scripts/cre/environment/docs/topologies/workflow-gateway-legacy-vault-don.md | Adds generated topology doc (capability matrix + DONs section) |
| core/scripts/cre/environment/docs/topologies/workflow-gateway-don.md | Adds generated topology doc (capability matrix + DONs section) |
| core/scripts/cre/environment/docs/topologies/workflow-gateway-don-grpc-source.md | Adds generated topology doc (capability matrix + DONs section) |
| core/scripts/cre/environment/docs/topologies/workflow-gateway-capabilities-don.md | Adds generated topology doc (capability matrix + DONs section) |
| core/scripts/cre/environment/docs/topologies/workflow-don-tron.md | Adds generated topology doc (capability matrix + DONs section) |
| core/scripts/cre/environment/docs/topologies/workflow-don-solana.md | Adds generated topology doc (capability matrix + DONs section) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|





This pull request introduces major improvements to the CRE environment's topology management and documentation. It adds a new CLI for inspecting and generating topology configurations, generates detailed capability matrix documentation for each topology, and enhances the startup experience with a compact topology summary. Additionally, it refactors capability configuration for clarity and introduces tests for topology config validation.
CLI and User Experience Improvements:
topology list,topology show,topology generate) to inspect, compare, and document DON topology configurations, with guidance added to theREADME.md. The CLI is now registered in the main command.Documentation Generation:
Automatically generates a top-level
CRE Topologiesoverview (docs/TOPOLOGIES.md) and detailed per-topology capability matrix docs (e.g.,docs/topologies/workflow-gateway-don.md) for all supported configs. These matrices show which DONs provide which capabilities.Configuration Refactor:
Refactored capability configuration in
workflow-gateway-don-grpc-source.tomlto use explicit per-chain capability names (e.g.,write-evm-1337) instead of a nestedchain_capabilitiessection, improving clarity and aligning with new topology tooling.Testing and Code Quality:
Internal Codebase Changes:
topologyvizpackage for topology visualization and summary rendering in the CLI.Example: