-
Notifications
You must be signed in to change notification settings - Fork 262
fix: lease close reason #2037
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: main
Are you sure you want to change the base?
fix: lease close reason #2037
Conversation
WalkthroughThe changes extend the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
2b0a8b6 to
6ddfa56
Compare
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: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
x/deployment/handler/server.go (1)
156-162: Don’t ignoreOnGroupClosederrors.If
OnGroupClosedfails, the deployment group is closed but market state can remain partially open. Propagating the error keeps state transitions atomic.🔧 Proposed fix
- _ = ms.market.OnGroupClosed(ctx, group.ID, types.GroupClosed) + if err := ms.market.OnGroupClosed(ctx, group.ID, types.GroupClosed); err != nil { + return nil, err + }- _ = ms.market.OnGroupClosed(ctx, group.ID, types.GroupPaused) + if err := ms.market.OnGroupClosed(ctx, group.ID, types.GroupPaused); err != nil { + return nil, err + }Also applies to: 180-186
x/market/keeper/keeper_test.go
Outdated
|
|
||
| dtypes "pkg.akt.dev/go/node/deployment/v1beta4" | ||
| "pkg.akt.dev/go/node/market/v1" | ||
| market "pkg.akt.dev/go/node/market/v1" |
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.
keep it v1 or rename to mv1
CHANGELOG.md
Outdated
| ### Bug Fixes | ||
|
|
||
| * Fix bug in ditribution and querying rewards | ||
| * Fixe bug in Lease close reason |
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.
lets not update changelog, we plan to auto update it using changelog generators
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.
Okay, reverted.
| return prov | ||
| } | ||
|
|
||
| func (st *testSuite) createDeployment() (dv1.Deployment, dtypes.Groups) { |
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.
any reason why test was removed
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.
This is not the test, this is helper that creates a deployment and it is unused.
Description
Closes: akash-network/support#403
Manual testing results
Insufficient funds scenario:
Unstable deployment scenario:
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.
I have...
!to the type prefix if API or client breaking changeCHANGELOG.md