-
Notifications
You must be signed in to change notification settings - Fork 4.1k
refactor(cosmovisor)!: re-implement core logic to address reliability issues #24821
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
Open
aaronc
wants to merge
119
commits into
main
Choose a base branch
from
aaronc/22731-cosmovisor-fixes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
119 commits
Select commit
Hold shift + click to select a range
09fe843
fix(cosmovisor): make manual upgrades use halt-height
aaronc 4087e2b
WIP on mock-node
aaronc 5689795
WIP on watcher
aaronc c489524
poll watcher tests pass
aaronc 2277ffb
data watcher tests
aaronc f0f5caf
notes
aaronc 3f628b9
use common logic for add-batch-upgrade and add-upgrade
aaronc 19858b3
refactoring watchers
aaronc 496bba8
watcher initialization
aaronc fc37590
WIP on checkers
aaronc 14124ea
WIP
aaronc 7177cbb
working mock node
aaronc 37f7c9f
switch to jsonpb
aaronc 5a01495
WIP on refactoring
aaronc 71c03a9
WIP on watchers
aaronc 37ae97a
WIP
aaronc 4745c63
WIP on state machine
aaronc ddc0e33
WIP on state machine diagrams
aaronc 4953995
WIP on state machine
aaronc 522f5a4
WIP on state machine
aaronc 5622f47
simplify state machine
aaronc 07545e8
WIP on runner
aaronc 090cdfa
WIP on runner
aaronc 869406b
WIP on runner
aaronc 20fb950
WIP on runner
aaronc 0681722
WIP on runner
aaronc 3100d72
revert
aaronc d9ec079
WIP on test setup and run implementation
aaronc 489b234
WIP on runner and test setup
aaronc be564e6
testing manual upgrades
aaronc cc3082f
WIP on upgrade flow
aaronc b7c813f
WIP on upgrade restart flow
aaronc 8e83e45
WIP on upgrade restart flow
aaronc ac2e934
WIP on upgrade restart flow
aaronc a53bc4d
WIP on testing setup
aaronc b1b7eb4
WIP on testing setup
aaronc 291e00f
fixes from testing
aaronc 9445e42
WIP on testing
aaronc c700952
manual upgrade detection works
aaronc 6a2f118
successful tests so far
aaronc cc0bbe6
working manual upgrade swapping
aaronc f0dac99
full test passes
aaronc 100f756
WIP on more test conditions
aaronc 68644ad
WIP on correct batch upgrade processing
aaronc 0b87586
most upgrade tests working, shutdown isn't
aaronc 427c526
shutdown works with some sleep time
aaronc bd0c895
integrate backoff manager
aaronc 5a03e7c
backoff logging
aaronc 638c317
delete refactored code, fix tests
aaronc 990aeaf
migrate most existing tests, add backoff retry count
aaronc 16e7a4b
existing tests migrated
aaronc fba2bac
remove dead test code
aaronc 6cd1227
switch to known error for signaling upgrade completion
aaronc 54d625b
simplify test setup
aaronc cb624f8
fix tests
aaronc d0d6e66
comments
aaronc d9affb9
add additional notes
aaronc 94675f9
switch to just logging watcher errors
aaronc 83ef052
switch to ErrorHandler interface
aaronc c9d0e11
sniffing for /block or /v1/block
aaronc 7b128d2
refactor file deletion
aaronc b429d86
test case with node shutting down on upgrade
aaronc 7d3c0a3
add additional test
aaronc 7a6ece7
include test to check both json encodings work
aaronc 85b75bd
make more code internal
aaronc 06f8c53
update logs, cleanup
aaronc f971fa2
refactor show manual upgrades command, make config loading more consi…
aaronc e595bb9
document manual upgrade behavior
aaronc 947c5f8
WIP on cosmovisor system tests
aaronc e1ccecc
WIP on cosmovisor system tests
aaronc 8cbf93b
fix NPE error
aaronc 822be0e
Merge branch 'main' of github.com:cosmos/cosmos-sdk into aaronc/22731…
aaronc 8ec6925
create separate cosmovisor systemtest
aaronc f9f5c62
logging fixes
aaronc e4e3feb
WIP on cosmovisor system tests
aaronc 41be9b0
WIP on cosmovisor system tests
aaronc 2ffffde
working cosmovisor system tests
aaronc f190de8
only start height watcher if we have a halt height set
aaronc 896202f
remove completed TODOs
aaronc 1e7cc72
update system test make task to include cosmovisor
aaronc 2577a32
WIP on adding some non-determinism during manual upgrade
aaronc 3175579
add a proper manual upgrade test
aaronc b8a4948
fix test
aaronc 36fe230
don't delete upgrade-info.json file, instead check that the upgrade n…
aaronc 2b82656
rename
aaronc 0c5ad53
move shutdown go routine to run because that's where it's really rele…
aaronc 0d07bce
address TODOs
aaronc 9cbc260
remove TODO
aaronc f93a7cb
fix scanner_test.go
aaronc c9fb18f
fix bug
aaronc 1aac5d1
refactor process runner to better handle cases where process could ha…
aaronc 03e7c72
add TODOs
aaronc 7d2d1c6
move everything to v2
aaronc 726288e
update CHANGELOG.md
aaronc 7cd0292
Merge branch 'main' of github.com:cosmos/cosmos-sdk into aaronc/22731…
aaronc b7721c8
go mod tidy
aaronc 28e2e68
update CHANGELOG.md's
aaronc 9cd07c0
check cosmovisor symlinks, confirm upgrade info readable
aaronc 3122f9e
switch to pointer
aaronc c0efa1d
add comments
aaronc 53032d4
revert CHANGELOG.md reformatting, remove old RELEASE_NOTES.md
aaronc 2b3a5d7
add more state breakage to manual upgrade
aaronc 42fb734
fix x/upgrade tests
aaronc 1ffada5
fix systemtests
aaronc 1ea885b
lint-fix, go mod tidy, cleanup
aaronc c005143
check that upgrade handlers are called
aaronc 1cf11cd
only set env when we're using cosmovisor
aaronc 0183068
Update tools/cosmovisor/internal/watchers/fsnotify_watcher.go
aaronc 61ad5e9
fix code suggestion
aaronc f08259a
fix test isolation
aaronc dfbcffd
Merge branch 'main' into aaronc/22731-cosmovisor-fixes
aaronc 9113c9d
isolate all system tests
aaronc 49f0ea7
Merge remote-tracking branch 'origin/aaronc/22731-cosmovisor-fixes' i…
aaronc be003aa
go mod tidy
aaronc e2b2fce
attempt to fix cosmovisor tests
aaronc 03c5cac
fix comments
aaronc 857e809
fail on unexpected callback count
aaronc a92aba1
attempt to fix cosmovisor tests
aaronc 0fac9ff
attempt to fix cosmovisor tests
aaronc 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Check failure
Code scanning / gosec
Subprocess launched with variable Error