-
Notifications
You must be signed in to change notification settings - Fork 246
chore: bump default timeout #2902
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
Summary of ChangesHello @tac0turtle, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses issues encountered when processing larger data blobs by adjusting the timeout configuration for the Data Availability (DA) client. The change removes a hardcoded 10-second default timeout, allowing the DA client's internal mechanisms to handle timeouts, which is expected to provide more flexibility and resolve current limitations with larger data transfers. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).
|
|
Claude finished @tac0turtle's task —— View job Code Review CompleteI've completed a comprehensive review of this PR. The changes successfully make the DA request timeout configurable and add batch size configuration. Here's my detailed analysis: SummaryThis PR addresses timeout issues when processing larger blobs by:
Overall Assessment: ✅ The changes are well-implemented and follow good practices. I found some areas for improvement around error handling and documentation. Detailed Review1. Code Quality & Architecture ✅Strengths:
Minor Issues:
const (
defaultRetrieveBatchSize = 150
)This is set to 150, but the default in
return da.NewClient(da.Config{
DA: daLayer,
Logger: logger,
Namespace: config.DA.GetNamespace(),
DefaultTimeout: config.DA.RequestTimeout.Duration, // ✅ Now configurable
DataNamespace: config.DA.GetDataNamespace(),
RetrieveBatchSize: config.DA.RetrieveBatchSize,
})2. Error Handling & Resilience
|
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.
Code Review
This pull request bumps the default timeout for the DA client by removing the explicitly set timeout, which causes it to fall back to the default value in the da package. While this achieves the goal of increasing the timeout, my review suggests making this new timeout value explicit in NewDAClient to improve code clarity and maintainability, rather than relying on an implicit default from another package.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2902 +/- ##
==========================================
- Coverage 64.64% 64.62% -0.03%
==========================================
Files 81 81
Lines 7374 7380 +6
==========================================
+ Hits 4767 4769 +2
- Misses 2065 2069 +4
Partials 542 542
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
52b6842 to
a5c4434
Compare
|
julienrbrt
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.
Great to have those field configurable. Can we remove this one too: https://github.com/evstack/ev-node/blob/main/block/internal/submitting/da_submitter.go#L404-L405 it is duplicated with the client.
done |
<!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. NOTE: PR titles should follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/ --> ## Overview Small improvements on timeout in da client and config. Ref: #2902, #2878 <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. Ex: Closes #<issue number> -->
* main: build(deps): Bump mdast-util-to-hast from 13.2.0 to 13.2.1 in /docs in the npm_and_yarn group across 1 directory (#2900) refactor(block): centralize timeout in client (#2903) build(deps): Bump the all-go group across 2 directories with 3 updates (#2898) chore: bump default timeout (#2902) fix: revert default db (#2897) refactor: remove obsolete // +build tag (#2899) fix:da visualiser namespace (#2895) refactor: omit unnecessary reassignment (#2892) build(deps): Bump the all-go group across 5 directories with 6 updates (#2881) chore: fix inconsistent method name in retryWithBackoffOnPayloadStatus comment (#2889) fix: ensure consistent network ID usage in P2P subscriber (#2884) build(deps): Bump golangci/golangci-lint-action from 9.0.0 to 9.1.0 (#2885) build(deps): Bump actions/checkout from 5 to 6 (#2886)
* main: refactor(sequencers): persist prepended batch (#2907) feat(evm): add force inclusion command (#2888) feat: DA client, remove interface part 1: copy subset of types needed for the client using blob rpc. (#2905) feat: forced inclusion (#2797) fix: fix and cleanup metrics (sequencers + block) (#2904) build(deps): Bump mdast-util-to-hast from 13.2.0 to 13.2.1 in /docs in the npm_and_yarn group across 1 directory (#2900) refactor(block): centralize timeout in client (#2903) build(deps): Bump the all-go group across 2 directories with 3 updates (#2898) chore: bump default timeout (#2902) fix: revert default db (#2897) refactor: remove obsolete // +build tag (#2899) fix:da visualiser namespace (#2895)
Overview
Trying to bump the timeout in order to get through larger blobs, it seems like celestia-node is running into issues