-
Notifications
You must be signed in to change notification settings - Fork 284
Feat/debug witness memory issue #1238
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
Conversation
WalkthroughRemoves the post-construction invocation of Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Caller
participant API as generateWitness
participant TW as testWitness
rect rgb(235,245,255)
note over API: Previous flow
C->>API: generateWitness()
API->>API: construct witness
API->>TW: testWitness(witness)
TW-->>API: ok / error
alt validation failed
API-->>C: error
else validation ok
API-->>C: witness
end
end
rect rgb(240,255,240)
note over API: New flow
C->>API: generateWitness()
API->>API: construct witness
note over API: testWitness call removed
API-->>C: witness
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
eth/api.go(1 hunks)params/version.go(1 hunks)
🧰 Additional context used
🪛 GitHub Actions: CI
eth/api.go
[error] 385-385: golangci-lint: testWitness is unused (deadcode). Step: lint (env GO111MODULE=on go run build/ci.go lint).
🔇 Additional comments (1)
params/version.go (1)
27-27: Approve patch bump to 5.9.5Patch bump validated—no occurrences of “5.9.4” remain. Ensure deployment checklist is ticked and release notes/changelog reference 5.9.5.
Thegaram
left a comment
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.
LGTM
|
@georgehao Do you plan to merge this? |
1. Purpose or design rationale of this PR
Repeated calls to
debug_executionWitnesslead to unbounded memory growth, eventually leading to OOM. Tests show. that this is fixed by removingtestWitness. We're still investigating why this is the case.2. PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:
3. Deployment tag versioning
Has the version in
params/version.gobeen updated?4. Breaking change label
Does this PR have the
breaking-changelabel?Summary by CodeRabbit
Refactor
Chores