-
Notifications
You must be signed in to change notification settings - Fork 208
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
Figure out how to sequentialize vaults core evals #9841
Comments
After some quick command line experiments we believe we can generate a We don't have CLI support to create such a tx, so either we need to modify the We also need to actually test this would be working (as an a3p integration test). We cannot rely on the a3p built-in core eval mechanism, and will need an explicit |
@dckc suggests using the promise space available in the bootstrap environment that proposals run in to resolve the timing. My requirement is that the vault upgrade shouldn't start until auctions, priceFeeds, and scaledPriceAuthorities have all been restarted. The simple solution to that is to have each of them resolve a promise when they finish, and have vaults wait for Is there a reason that approach wouldn't just work? |
we don't need multiple cosmos messages to run multiple scripts. The existing
likewise agd tx gov submit-proposal swingset-core-eval supports mutiple permit/script pairs. And likewise some code in |
I'm not sure why you say that. |
Any additional testing considerations with the promise space approach? |
We do need multiple messages to support sequential execution of the core-eval scripts
It requires changing the runtime logic of the core evals. I consider that much more complicated and risky, |
But we don't need to do them sequentially.
Really? I don't. And CH's comment suggests he doesn't either. |
I don't think so; not beyond migrating the existing chain-software-upgrade-based tests to a core-eval-based test. In another PR, we're discussing how existing tests exercise synchronization constraints: #9748 (comment) |
We can convert the existing software upgrade proposal in a3p-integration to a coreEval, and the tests will continue to work. If we add the promise dependency, they should run in order, and tests would be expected to pass. |
Well apparently the new Filed #9869 |
#9911 linked two proposals using promises in the promise space. |
What is the Problem Being Solved?
Currently multiple core evals scrips in a single core eval action all run in parallel. For vaults we need to have some steps done in sequential order. As part of a chain software upgrade we were able to easily do that because running core proposals there has more features (see #8908 for some related info). Now that we're switching to core eval, we need an equivalent mechnaism
Description of the Design
Either use a single core eval script that manually manages the sequential steps, or leverage the multi message support in the new cosmos x/gov module to submit multiple core eval actions in the same cosmos governance proposal (see #9015 for related info)
Security Considerations
None
Scaling Considerations
None
Test Plan
a3p integration test
Upgrade Considerations
See above
The text was updated successfully, but these errors were encountered: