-
Notifications
You must be signed in to change notification settings - Fork 215
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
fix(abci): ignore comet ctx and use app ctx #2568
Merged
Merged
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
e7f0b79
Enforce synchronicity of final FCU and always return error on engine …
shotes a3796f5
nit
abi87 da52ea0
extended error
abi87 dbd75e1
Add error to force FCU
shotes 3dc865d
Add retryWithTimeout
shotes 26f4c7d
retry on unknown
shotes 8bc54e9
comments around engine API error handling
shotes 3b91793
Add lib for backoff func
shotes d20bd0d
shorten retry initial interval
shotes 35296a1
lint and remove unused return value
shotes 4687f00
Undo extra changes
shotes 00ef155
remove extra return
shotes db423b2
Merge branch 'main' into engine-api-retry
calbera b58fced
Merge branch 'main' into engine-api-retry
calbera 62b5838
Merge branch 'main' into engine-api-retry
shotes 015698c
Merge branch 'main' into engine-api-retry
shotes 194ba50
Merge branch 'main' into engine-api-retry
abi87 4e49106
Use configured values instead of consts
shotes 2639b6b
lint
shotes 8ec64f3
Add RPCRetryInterval flag
shotes f9096cb
remove debug print
shotes 9b1255f
add to config and reorder
shotes b6e92ab
Add max interval and infinite retries
shotes 5303fd5
Organize comments and increase max interval
shotes dc34dc9
More explicit comments
shotes d51d636
Condense NotifyNewPayload for funlen lint
shotes 2069930
Allow new payload during beginning sync:
shotes 2798898
lint
shotes 48f6f7d
remove extraneous test files
shotes 8dc24a5
Fix mock
shotes ab124a9
Add infinite duration
shotes 5f9fe91
Make syncing status WARN
shotes 5df3171
Merge branch 'main' of github.com:berachain/beacon-kit into engine-ap…
shotes 69d67fd
remove extraneous file and generate mock
shotes 156ba5f
Fix test unit cover
shotes 0144133
Add cancellable ctx to cometbft used for stopping the service
fridrik01 a871e7b
Reuse cancellable context
shotes 8a86207
Clean up comments and logging
shotes dcf36f0
undo IDE auto correct change
shotes 42fa262
Make comments better
shotes aa7b9f7
lint
shotes 0265130
combine ctxs
shotes a7b367b
reduce diff
shotes adc58d0
reduce diff more
shotes f8032c4
set max elapsed time to 0 and nits
shotes 347cf4b
Add nil check for combineContexts for tests
shotes b0da96e
Merge branch 'main' into engine-api-retry
shotes 7c22253
Merge branch 'main' into engine-api-retry
abi87 7c39a3f
Fixes for context cancellation:
shotes d422a6d
fix linter?
shotes 73b0444
Merge branch 'engine-api-retry' into abci_context_cancel
calbera d375414
reorg context defining
shotes b225f6f
Merge branch 'abci_context_cancel' of github.com:berachain/beacon-kit…
shotes a1cf15a
Merge branch 'main' into engine-api-retry
rezbera 16feb52
Merge branch 'engine-api-retry' into abci_context_cancel
rezbera 5899cb5
Add chan to kill goroutine
shotes 8ff93eb
lint and fix done case
shotes 17e2094
delete extra file
shotes a0658c3
Add fatal errors
shotes d7d7449
Add IsNonFatalError
shotes 38d5b09
Merge branch 'engine-api-retry' into abci_context_cancel
shotes 75b5ad6
add more timeout for test and ignore temp-test-simulated.txt
shotes b26a276
Remove combineContext
shotes f8b3cbe
Check context and error in commit
shotes 6416fb7
move ctx checks to higher level service
shotes 994b472
lint
shotes a4e630d
logs and nits
abi87 b387d0b
Merge branch 'engine-api-retry' into abci_context_cancel
abi87 aea72aa
Merge branch 'main' into abci_context_cancel
abi87 b25d97d
check s.Ctx.Err on IniChain as well
abi87 f1c22ab
simplified consensus functions to avoid passing s.ctx as parameter
abi87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
noting here that this is a hacky way to make sure that goroutine running
s.TestNode.Start(s.Ctx)
above completes before we move on (otherwise consensus service may crash due to ctx being nil).We will have to rework this to use a different way to check stuff
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.
I've changed to use a reliable method in #2572
It's not ideal, because ideally we'd have a readiness probe API but this is better than sleeping arbitrary time.