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

Improve migration logging, reports, and export broken slabs that were fixed to a new payloads file #5803

Merged

Conversation

fxamacker
Copy link
Member

This PR reduces logging, improves reports, and creates a payload file containing all slabs with broken references (currently only 10 testnet slabs and none on mainnet).

Changes include:

  • Log filtered slab count instead of slab IDs to reduce overly verbose logging
  • Write hex encoded account (instead of raw bytes) in reports
  • Write all slabs with broken references to a payload file
  • Refactor code

This commits reduces logging, improves reports, and creates
a payload file containing all slabs with broken references
(currently only 10 testnet slabs and none on mainnet).

Changes include:
- log filtered slab count instead of slab IDs to reduce logging
- write hex encoded account (instead of raw bytes) in reports
- write slabs with broken references to payload file
- refactor code
@fxamacker fxamacker requested review from a team April 29, 2024 14:40
@fxamacker fxamacker self-assigned this Apr 29, 2024
Copy link
Member

@turbolent turbolent left a comment

Choose a reason for hiding this comment

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

Nice!

Once merged (to the Cadence 1.0 branch), could you please also port it to the v0.42 + atree inlining branch?

@turbolent turbolent requested a review from a team April 29, 2024 15:54
@turbolent turbolent merged commit 030191d into feature/stable-cadence Apr 29, 2024
55 checks passed
@turbolent turbolent deleted the fxamacker/improve-migration-logging branch April 29, 2024 16:12
@fxamacker
Copy link
Member Author

Once merged (to the Cadence 1.0 branch), could you please also port it to the v0.42 + atree inlining branch?

@turbolent I opened PR #5805 to port this to v0.42 + atree inlining branch. PTAL 🙏

@fxamacker fxamacker changed the title Improve migration logging, reports, and new file for very old problematic slabs Improve migration logging, reports, and export broken slabs that were fixed to a new payloads file Apr 30, 2024
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants