-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: compare kurtosis-cdk configs with default configs (#56)
* feat: track kurtosis-cdk config changes * chore: nit * fix: go cache path * same * chore: update dump default api * chore: update dump current api * chore: update compare api * chore: nit * chore: find missign and unnecessary keys * chore: use cdk-validium instead of zkevm-node dependency * feat: improve script * ci: update monolithic part * chore: clean up * feat: also store diffs * chore: remove `_source` from prover config * chore: update `go.sum` * chore: nit * fix: sed cmd to work for ubuntu * chore: nit * chore: show diffs for files other than toml and json * feat: dump zkevm bridge service default config * chore: clean up
- Loading branch information
Showing
11 changed files
with
2,020 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
default-configs/ | ||
kurtosis-cdk-configs/ | ||
diff/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# zkEVM/CDK Config Diff Tool | ||
|
||
A simple tool to compare our kurtosis-cdk configurations with the default ones and list any missing or unnecessary fields. | ||
|
||
## Usage | ||
|
||
1. Deploy the CDK stack using [kurtosis-cdk](https://github.com/0xPolygon/kurtosis-cdk). | ||
|
||
2. Create folders to hold zkevm default and kurtosis-cdk configuration files. | ||
|
||
```bash | ||
mkdir -p default-configs kurtosis-cdk-configs | ||
``` | ||
|
||
Or clean those folders if they are not empty. | ||
|
||
```bash | ||
rm -rf ./default-configs/* ./kurtosis-cdk-configs/* | ||
``` | ||
|
||
3. Dump default configurations. | ||
|
||
```bash | ||
sh zkevm_config.sh dump default ./default-configs | ||
``` | ||
|
||
4. Dump kurtosis-cdk configurations. | ||
|
||
```bash | ||
sh zkevm_config.sh dump kurtosis-cdk ./kurtosis-cdk-configs | ||
``` | ||
|
||
5. Compare configurations. You'll find diffs in `./diff`. | ||
|
||
```bash | ||
sh zkevm_config.sh compare configs ./default-configs ./kurtosis-cdk-configs | ||
``` | ||
|
||
6. Compare two specific files. | ||
|
||
```bash | ||
sh zkevm_config.sh compare files ./default-configs/cdk-data-availability-config.toml ./kurtosis-cdk-configs/cdk-data-availability-config.toml | ||
``` |
Oops, something went wrong.