Skip to content
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

get auction instance from promise space after auction startup completes #9940

Closed
wants to merge 1 commit into from

Conversation

Chris-Hibbert
Copy link
Contributor

refs: #9937

Description

#9937 unintentionally upgraded the vaultFactory with the instance of the old auction. This change asks the promise space for the auction instance after the new auction startup is complete.

Security Considerations

none

Scaling Considerations

none

Documentation Considerations

none

Testing Considerations

This will be tested on Ollinet and emerynet before deployment.

I tested locally on a3p by watching the logs to see that the vaults synced to the new auction schedule.

Upgrade Considerations

upgrade vaults and auctions so they work together.

@Chris-Hibbert Chris-Hibbert added contract-upgrade Vaults VaultFactor (née Treasury) auction labels Aug 22, 2024
@Chris-Hibbert Chris-Hibbert self-assigned this Aug 22, 2024
Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

more robust automated testing would be ideal.

But this clearly can't make it worse, and your manual integration testing results strongly suggest it helps.

auctioneerInstanceP,
E.get(consumeInstance).auctioneer,
Copy link
Member

Choose a reason for hiding this comment

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

Interesting approach.

This PromiseSpace synchronization technique is clearly "too clever by half", since I didn't catch that in code review earlier.

I did start to suggest checking that agoricNames got updated, but only for the installation. And just checking that the instance changed in agoricNames wouldn't tell us which instance the vaultFactory picked up.

instance: { consume: { auctioneer: uV } },
instance: { consume: true },
Copy link
Member

Choose a reason for hiding this comment

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

Granting more authority is often suspicious... but all the instances here are intended to be widely shared anyway. So this is fine.

@Chris-Hibbert Chris-Hibbert added the automerge:rebase Automatically rebase updates, then merge label Aug 22, 2024
Copy link

cloudflare-workers-and-pages bot commented Aug 22, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 20db104
Status: ✅  Deploy successful!
Preview URL: https://8155fdf1.agoric-sdk.pages.dev
Branch Preview URL: https://cth-auctioninstanceafter.agoric-sdk.pages.dev

View logs

@Chris-Hibbert Chris-Hibbert removed the automerge:rebase Automatically rebase updates, then merge label Aug 22, 2024
@Chris-Hibbert
Copy link
Contributor Author

Superseded by #9944.

mergify bot added a commit that referenced this pull request Aug 22, 2024
refs: #9940

## Description

#9937 unintentionally upgraded the vaultFactory with the instance of the old auction. This change asks the promise space for the auction instance after the new auction startup is complete.

### Security Considerations

None.

### Scaling Considerations

None.

### Documentation Considerations

None.

###Testing Considerations

This will be tested on Ollinet and emerynet before deployment.

I tested locally on a3p by watching the logs to see that the vaults synced to the new auction schedule.

###Upgrade Considerations

upgrade vaults and auctions so they work together.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auction contract-upgrade Vaults VaultFactor (née Treasury)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants