Skip to content
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

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Kurtosis clean up #1735

merged 2 commits into from
Jul 10, 2024

Conversation

nidhi-singh02
Copy link
Contributor

@nidhi-singh02 nidhi-singh02 commented Jul 10, 2024

Summary by CodeRabbit

  • Chores
    • Updated file path constants for trusted setup configuration.
    • Removed unused port numbers and IDs from service configuration.
    • Added a new port number for Engine RPC in service configuration.

Signed-off-by: nidhi-singh02 <trippin@berachain.com>
Signed-off-by: nidhi-singh02 <trippin@berachain.com>
Copy link
Contributor

coderabbitai bot commented Jul 10, 2024

Walkthrough

The 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

File Path Change Summary
kurtosis/src/constants.star Removed KZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER; updated KZG_TRUSTED_SETUP_FILEPATH constant.
kurtosis/src/nodes/execution/execution.star Removed WS_PORT_NUM, DISCOVERY_PORT_NUM, METRICS_PORT_NUM; added ENGINE_RPC_PORT_NUM.
kurtosis/src/nodes/execution/reth/config.star Removed RPC_PORT_NUM assignment from defaults; no changes to WS_PORT_NUM, ENGINE_RPC_PORT_NUM, METRICS_PORT_NUM, METRICS_PATH, ENTRYPOINT, and FILES.

Sequence Diagram(s)

Silently ignored due to the nature of changes.

Poem

In code we trust, constants we align,
Paths and ports, redefined in line.
With smooth precision, we do enhance,
A rabbit's touch, a coder's dance.
🐇✨


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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.84%. Comparing base (7e2d30c) to head (b9dd29f).

Additional details and impacted files

Impacted file tree graph

@@           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           

@nidhi-singh02 nidhi-singh02 marked this pull request as ready for review July 10, 2024 16:40
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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 Verification

Discrepancy in KZG_TRUSTED_SETUP_FILEPATH definition and usage

The filepath defined for KZG_TRUSTED_SETUP_FILEPATH in kurtosis/src/constants.star (/kurtosis/src/nodes/kzg-trusted-setup.json) does not match the filepath used in kurtosis/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 in kurtosis/src/constants.star.

Analysis chain

Line range hint 1-32: Verify the update of KZG_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.star

Length of output: 946

Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

Commits

Files that changed from the base of the PR and between 7e2d30c and b9dd29f.

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 of RPC_PORT_NUM.

Ensure that the removal of RPC_PORT_NUM assignment does not affect the overall configuration. Verify if any references to RPC_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, and METRICS_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 of ENGINE_RPC_PORT_NUM.

kurtosis/src/constants.star (1)

Line range hint 1-32: Verify the removal of KZG_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 to KZG_TRUSTED_SETUP_MOUNT_PATH_ON_CONTAINER exist in the file and update them accordingly.

Verification successful

Line range hint 1-32: Verified the removal of KZG_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

@ocnc ocnc merged commit d7d3128 into main Jul 10, 2024
18 checks passed
@ocnc ocnc deleted the kurtosis-clean branch July 10, 2024 19:21
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.

2 participants