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

Update auction caches by running the update script locally with fix to Kusama auction 63 & 64 #4138

Merged
merged 3 commits into from
Dec 7, 2022

Conversation

alfarok
Copy link
Contributor

@alfarok alfarok commented Dec 2, 2022

We saw a failure in the automated auction cache updating script this past week. It appears Auction #63 and #64 did not start during the regular cadence.

Looking at the Governance Dispatch Queue for Kusama it can be determined that auction #65 is scheduled as the cadence and cache would expect. Also checking some block explorers it appears #63 & #64 have not started:

https://kusama.subscan.io/auction

or

https://parachains.info/auctions/kusama

For now, I removed #63 and #64 from the cache to prevent the automation script from failing.

It was determined from https://kusama.polkassembly.io/motion/582 in the discussion below that there was an enactment issue due to an upgrade that caused this auction to not be scheduled. It appears they will be re-scheduled at a later time. When this happens we can re-add #63 and #64 at their original indices or new sequential indices.

The cache stores the index number so we don't rely on a looping count to determine the auction numbers. This means removing #63 and #64 doesn't cause #65 to become #63, preserving the expecting numbering.

The remaining updates in this PR were generated once I fixed the failure points at #63 and #64. A new try/catch statement was also added to help identify this issue in the future.

image

@alfarok alfarok requested a review from DrW3RK December 2, 2022 21:58
@alfarok alfarok self-assigned this Dec 2, 2022
@laboon
Copy link
Contributor

laboon commented Dec 5, 2022

FYI - https://kusama.polkassembly.io/motion/582

@alfarok alfarok added the A1 - In Progress Not ready for review yet. label Dec 5, 2022
@alfarok alfarok added A2 - Please Review Pull request is ready for review. and removed A1 - In Progress Not ready for review yet. labels Dec 5, 2022
@alfarok
Copy link
Contributor Author

alfarok commented Dec 5, 2022

@DrW3RK I think this should be good to go for now. We can monitor the situation and determine how the missing auction gets re-added as more details become available. The automation script will tell us if future auctions continue as expected or if they don't begin and need to be addressed.

@alfarok alfarok changed the title Update auction caches by running the update script locally with fix to Kusama auction 63 Update auction caches by running the update script locally with fix to Kusama auction 63 & 64 Dec 5, 2022
const onboardStartBlock = auctionLeasePeriod * KusamaSlotLeasePeriod + KusamaSlotLeaseOffset;
const onboardEndBlock = onboardStartBlock + DaysToBlocks(KusamaLeasePeriodPerSlot * 6 * 7);
return [biddingStarts, auctionEndBlock, onboardStartBlock, onboardEndBlock]
try {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The only change here is wrapping all this logic in a try/catch for better error messaging related to auctions have inaccurate starting blocks defined in the cache.

@DrW3RK DrW3RK merged commit 8abeb7c into master Dec 7, 2022
@DrW3RK DrW3RK deleted the update-auction-cache branch December 7, 2022 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A2 - Please Review Pull request is ready for review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants