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
dev docs: Document how to fix cached state issues #7558
Comments
Here is how to test a change to the cached state CI workflows: |
Here is an example of a test that passes in Rust, but fails in the CI workflow: |
Here's how to manually rebuild a cached state: And what it looks like when the test passes: |
Here's how to delete an invalid cached state: |
I think we should probably document how to check the cached state details to identify whether it may have a problem or not, so:
|
An example of how to find the cached state used by a test: The cached state used by the failing PR is not from #7531, it was generated by the self-hosted runners branch (the branch name and commit are after the cache type prefix): Here is where the cached state is logged in CI: That cached state was created using a full sync. Full syncs have different tags from updates (the start height, original version, and update flag The tags also contain other useful data about the cached state, such as the heights, versions, and the name of the cached state it was updated from (once PR #7560 merges). |
Cached states are only written if they are higher than the previous state by at least 1000 blocks (1 day). Here's how to force a new cached state to be saved, regardless of its height: |
Sometimes cached states are saved with a very low number of blocks due to a Rust test or CI bug. This issue has come up recently with both Zebra and lightwalletd cached states. Here's an analysis of one bug like that: |
Fix steps from ticket #7661:
|
Motivation
We want any developer to be able to fix CI issues. Sometimes fixing cached states is complex.
Rough Plan
-u
in the name is an update)25.2
), so the checkpoint tests might be the only tests that fail due to upgrade bugsThe text was updated successfully, but these errors were encountered: