Skip to content

Upgrade vat-bank #11269

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

Merged
merged 3 commits into from
Apr 16, 2025
Merged

Upgrade vat-bank #11269

merged 3 commits into from
Apr 16, 2025

Conversation

mhofman
Copy link
Member

@mhofman mhofman commented Apr 15, 2025

refs: #11118

Description

vat-bank is leaking. We suspect this is due to the liveslots resolved promise leak. Upgrade vat-bank to pick up the liveslots fix

Security Considerations

None

Scaling Considerations

None

Documentation Considerations

None

Testing Considerations

There doesn't seem to be an upgrade test specific to vat-bank, but apparently the provision pool test relies on vat-bank functioning, so restore that test from upgrade-19

Upgrade Considerations

Upgrade a vat as part of the next chain software upgrade.

@mhofman mhofman added the force:integration Force integration tests to run on PR label Apr 15, 2025
Copy link

cloudflare-workers-and-pages bot commented Apr 15, 2025

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: e27076d
Status: ✅  Deploy successful!
Preview URL: https://2223be3b.agoric-sdk.pages.dev
Branch Preview URL: https://mhofman-upgrade-bank.agoric-sdk.pages.dev

View logs

@mhofman mhofman marked this pull request as ready for review April 16, 2025 00:36
@mhofman mhofman requested a review from a team as a code owner April 16, 2025 00:36
Comment on lines +18 to +19
export const bankSend = (addr, wanted, from = VALIDATORADDR) => {
return agd.tx(['bank', 'send', from, addr, wanted], {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The call to makeAgd is just right, except that it's at module scope.
So the exported bankSend closes over execFileSync.

I'd really rather we stuck to OCap Discipline house style rather than digging deeper...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just restoring the relevant a3p tests as they existed in u19, and slightly modifies them as some tests depended on each other. I am not willing to rewrite / refactor them

Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable. I'm approving assuming that CI passes.

It's nice that Git keeps our history so that when we're overaggressive in removing code we can recover it without too much effort. ;P

@mhofman mhofman added the automerge:rebase Automatically rebase updates, then merge label Apr 16, 2025
@mergify mergify bot force-pushed the mhofman/upgrade-bank branch from 2139a9f to d8ecc56 Compare April 16, 2025 05:40
Copy link
Contributor

mergify bot commented Apr 16, 2025

This pull request has been removed from the queue for the following reason: checks failed.

The merge conditions cannot be satisfied due to failing checks:

You may have to fix your CI before adding the pull request to the queue again.
If you update this pull request, to fix the CI, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio requeue comment.

@mhofman mhofman force-pushed the mhofman/upgrade-bank branch from d8ecc56 to e27076d Compare April 16, 2025 05:42
@mergify mergify bot merged commit 31be299 into master Apr 16, 2025
86 checks passed
@mergify mergify bot deleted the mhofman/upgrade-bank branch April 16, 2025 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge force:integration Force integration tests to run on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants