-
Notifications
You must be signed in to change notification settings - Fork 283
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
base: develop
Are you sure you want to change the base?
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🎯 2 (Simple) | ⏱️ ~10 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
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. 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.
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
1. Purpose or design rationale of this PR
Repeated calls to
debug_executionWitness
lead 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.go
been updated?4. Breaking change label
Does this PR have the
breaking-change
label?Summary by CodeRabbit
Refactor
Chores