-
Notifications
You must be signed in to change notification settings - Fork 129
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
Kurtosis clean up #1735
Kurtosis clean up #1735
Conversation
Signed-off-by: nidhi-singh02 <trippin@berachain.com>
Signed-off-by: nidhi-singh02 <trippin@berachain.com>
WalkthroughThe recent changes in the Kurtosis codebase involve updates to constants and service configuration modules. Specifically, a file path constant and port numbers have been modified or removed across several files, with a new engine RPC port number being introduced. These changes streamline configuration and path management, enhancing code clarity and maintainability. Changes
Sequence Diagram(s)Silently ignored due to the nature of changes. Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1735 +/- ##
=======================================
Coverage 25.84% 25.84%
=======================================
Files 282 282
Lines 12075 12075
Branches 18 18
=======================================
Hits 3121 3121
Misses 8827 8827
Partials 127 127 |
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.
Actionable comments posted: 0
Outside diff range comments (1)
kurtosis/src/constants.star (1)
[!TIP]
Codebase VerificationDiscrepancy in
KZG_TRUSTED_SETUP_FILEPATH
definition and usageThe filepath defined for
KZG_TRUSTED_SETUP_FILEPATH
inkurtosis/src/constants.star
(/kurtosis/src/nodes/kzg-trusted-setup.json
) does not match the filepath used inkurtosis/src/nodes/consensus/beacond/node.star
(/root/kzg/kzg-trusted-setup.json
). This inconsistency should be resolved to ensure that the correct filepath is used throughout the codebase.
kurtosis/src/constants.star
:KZG_TRUSTED_SETUP_FILEPATH = "/kurtosis/src/nodes/kzg-trusted-setup.json"
kurtosis/src/nodes/consensus/beacond/node.star
:--beacon-kit.kzg.trusted-setup-path=/root/kzg/kzg-trusted-setup.json
Please update the filepath in
kurtosis/src/nodes/consensus/beacond/node.star
to match the value defined inkurtosis/src/constants.star
.Analysis chain
Line range hint
1-32
: Verify the update ofKZG_TRUSTED_SETUP_FILEPATH
.Ensure that the updated filepath
"/kurtosis/src/nodes/kzg-trusted-setup.json"
is correct and does not affect the overall functionality. Verify if any references to the old filepath exist in the file and update them accordingly.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify if any references to the old filepath of `KZG_TRUSTED_SETUP_FILEPATH` exist in the file. # Test: Search for the references to the old filepath. Expect: No references should be found. rg --type python 'kzg-trusted-setup.json'Length of output: 72
Script:
#!/bin/bash # Description: Verify if any references to the old filepath of `KZG_TRUSTED_SETUP_FILEPATH` exist in the codebase. # Test: Search for the references to the old filepath. Expect: No references should be found. rg 'kzg-trusted-setup.json'Length of output: 726
Script:
#!/bin/bash # Description: Verify if the reference to `kzg-trusted-setup.json` in `kurtosis/src/nodes/consensus/beacond/node.star` is consistent with the updated filepath. # Test: Display the context around the reference in `kurtosis/src/nodes/consensus/beacond/node.star`. rg --context 5 'kzg-trusted-setup.json' kurtosis/src/nodes/consensus/beacond/node.starLength of output: 946
Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Files selected for processing (3)
- kurtosis/src/constants.star (1 hunks)
- kurtosis/src/nodes/execution/execution.star (1 hunks)
- kurtosis/src/nodes/execution/reth/config.star (1 hunks)
Additional comments not posted (3)
kurtosis/src/nodes/execution/reth/config.star (1)
Line range hint
1-48
: Verify the removal ofRPC_PORT_NUM
.Ensure that the removal of
RPC_PORT_NUM
assignment does not affect the overall configuration. Verify if any references toRPC_PORT_NUM
exist in the file and update them accordingly.kurtosis/src/nodes/execution/execution.star (1)
Line range hint
1-13
: Verify the removal and addition of port numbers and IDs.Ensure that the removal of
WS_PORT_NUM
,DISCOVERY_PORT_NUM
, andMETRICS_PORT_NUM
does not affect the overall functionality. Verify if any references to the removed port numbers and IDs exist in the file and update them accordingly. Check the correctness of the addition ofENGINE_RPC_PORT_NUM
.kurtosis/src/constants.star (1)
Line range hint
1-32
: Verify the removal ofKZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER
.Ensure that the removal of
KZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER
does not affect the overall functionality. Verify if any references toKZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER
exist in the file and update them accordingly.Verification successful
Line range hint
1-32
: Verified the removal ofKZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER
.No references to
KZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER
were found in the repository, confirming that its removal does not affect the overall functionality.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify if any references to `KZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER` exist in the file. # Test: Search for the `KZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER` references. Expect: No references should be found. rg --type python 'KZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER'Length of output: 91
Script:
#!/bin/bash # Description: Verify if any references to `KZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER` exist in the repository. # Test: Search for the `KZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER` references. Expect: No references should be found. rg 'KZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER'Length of output: 46
Summary by CodeRabbit