-
Notifications
You must be signed in to change notification settings - Fork 117
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
test: fix e2e tests so they pass locally #2054
base: main
Are you sure you want to change the base?
test: fix e2e tests so they pass locally #2054
Conversation
WalkthroughThe pull request introduces changes to resource allocation parameters in two files: Changes
Possibly related PRs
Suggested reviewers
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 2
🧹 Outside diff range comments (1)
testing/e2e/config/config.go (1)
Line range hint
1-370
: Summary: Improvements to e2e test configurationThe changes made in this file directly address the PR objectives:
- Removing the Besu validator from the default configuration should help reduce flaky tests.
- Setting
MinMemory
to 0 for execution nodes allows for more flexible resource allocation, which can help with running tests on machines with limited resources.These modifications should improve the stability and flexibility of e2e tests, especially when run locally. However, it's important to monitor the impact of these changes, particularly the
MinMemory
setting, to ensure they don't introduce new stability issues.Consider implementing a monitoring system or expanding logging to track memory usage of execution nodes during e2e tests. This will help validate that the new configuration doesn't lead to under-allocation of resources in various test environments.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
📒 Files selected for processing (2)
- kurtosis/src/services/blutgang/launcher.star (1 hunks)
- testing/e2e/config/config.go (2 hunks)
🧰 Additional context used
🔇 Additional comments (3)
kurtosis/src/services/blutgang/launcher.star (2)
19-19
: Approved: MIN_MEMORY reduction aligns with PR objectives, but requires careful monitoring.The change from 1024 to 0 for MIN_MEMORY allows the 'blutgang' component to run with no minimum memory allocation, which aligns with the PR objective to reduce resource requirements for local e2e tests.
To ensure this change doesn't lead to out-of-memory errors, especially in production environments, consider implementing the following:
- Add logging or monitoring for memory usage.
- Implement safeguards to prevent complete memory exhaustion.
Run the following script to check for any existing memory management or monitoring code:
#!/bin/bash # Description: Check for memory management or monitoring code # Test 1: Search for memory-related logging or monitoring rg --type=go --type=python --type=rust -i '(log|monitor).*memory' # Test 2: Check for memory management libraries or imports rg --type=go --type=python --type=rust -i '(import|use).*memory'
17-17
: Approved: MIN_CPU reduction aligns with PR objectives.The change from 1000 to 0 for MIN_CPU allows the 'blutgang' component to run with no minimum CPU allocation, which aligns with the PR objective to reduce resource requirements for local e2e tests.
To ensure this change doesn't negatively impact performance in production environments, consider running the following script to check for any performance-related configurations or documentation:
✅ Verification successful
MIN_CPU reduction verified across configurations.
The change aligns with existing resource configurations in
kurtosis/beaconkit-all.yaml
, ensuring consistent CPU allocation parameters across the codebase.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check for performance-related configurations or documentation # Test 1: Search for performance-related comments or configurations rg --type=toml --type=yaml --type=md -i '(cpu|performance|resource)' # Test 2: Check if there's any documentation about resource requirements fd -e md | xargs rg -i '(minimum|recommended).*\s(cpu|resource)'Length of output: 347
Script:
#!/bin/bash # Description: Check for performance-related configurations or documentation # Test 1: Search for performance-related comments or configurations rg --type=toml --type=yaml --type=md -i '(cpu|performance|resource)' # Test 2: Check if there's any documentation about resource requirements fd -e md | xargs rg -i '(minimum|recommended).*\s(cpu|resource)'Length of output: 833
Script:
#!/bin/bash # Description: Check for performance-related configurations or documentation # Test 1: Search for performance-related comments or configurations rg --type=toml --type=yaml --type=md -i '(cpu|performance|resource)' # Test 2: Check if there's any documentation about resource requirements fd -e md | xargs rg -i '(minimum|recommended)\s+(cpu|resource)'Length of output: 832
testing/e2e/config/config.go (1)
270-270
: 🧹 Nitpick (assertive)Approved: Lowering MinMemory for execution nodes, but consider adding a comment
The change to set
MinMemory: 0
for execution nodes aligns with the PR objective and should help with running tests on machines with limited resources. This flexibility in resource allocation is beneficial for local test environments.Consider adding a comment to explain the rationale behind setting
MinMemory
to 0:MinMemory: 0, // Set to 0 to allow flexible allocation in resource-constrained environmentsIt's important to ensure that setting
MinMemory
to 0 doesn't lead to stability issues due to insufficient memory allocation. Please monitor the impact of this change on test stability and performance. If you have any automated memory usage tracking or logging in place, it would be beneficial to verify that the execution nodes are still getting sufficient memory allocated.
Thanks for the PR! @MaanavKhaitan Wanted to know how does your machine configuration looks like in case of memory. |
@nidhi-singh02 I'm running an M1 pro mac with 12GB of memory |
I'm working on adding a Will try to get this done by today |
Why
e2e tests were not passing when run locally using
make test-e2e
. Was running into CPU and memory limits and thebesu
validator was causing flaky tests.What
blutgang
to0
MinMemory
for execution nodes to0
besu
validator from list of default validators in e2e configTesting
make test-e2e
: Passes locallySummary by CodeRabbit
New Features
Bug Fixes
Documentation