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

feat(zoe): cache bundles in bundleAndInstall of setUpZoeForTest #10554

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dckc
Copy link
Member

@dckc dckc commented Nov 22, 2024

DRAFT; goal:
closes: #10427
refs: #10550

Description / Testing Considerations

  • Make bundleAndInstall cache.
  • Remove pre-caching from tests using bundleAndInstall.
  • migrate direct uses of E(zoe).install(bundle) to use setUpZoeForTest and its caching bundleAndInstall.

Security / Documentation Considerations

It's not clear that the cache works correctly with multiple concurrent tests.
There's a bundleDir option, but using that would largely defeat the purpose.

Scaling Considerations

should make at least fast-usdc contract tests (#10550) run faster

Upgrade Considerations

n/a. test only

@dckc dckc requested a review from turadg November 22, 2024 22:04
@dckc dckc mentioned this pull request Nov 27, 2024
3 tasks
Copy link

cloudflare-workers-and-pages bot commented Nov 27, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: bb713ff
Status: ✅  Deploy successful!
Preview URL: https://3a9f7d72.agoric-sdk.pages.dev
Branch Preview URL: https://dc-ztest-cache.agoric-sdk.pages.dev

View logs

mergify bot added a commit that referenced this pull request Nov 27, 2024
refs: #10388
closes: #10577

doesn't close until
 - exercise all the code in the contract (analytic; best effort)

## Description / Testing Considerations

 - [x] test all the sequences in the product spec
    - [x] enumerate all the sequences in the product spec
 - [x] fix advancer/settler amount agreement bug

postponed:
 - 
 - #10510
    - [todo] C12 - Contract MUST only pay back the Pool only if they started the advance before USDC is minted
 - #10554

some `test.todo()`s are out of scope of contract flow tests. Some are more feasible as exo tests:
  - [todo] C18 - forward - MUST log and alert these incidents
  - [skip] LP borrow - TODO: move to exo test
  - [skip] LP repay - TODO: move to exo test

an some are after M1:
  - [todo] PERF: Target: settlement completes in a few minutes (after USDC is minted)
  - [todo] fee levels MUST be visible to external parties - i.e., written to public storage
  - [todo] C21 - Contract MUST log / timestamp each step in the transaction flow

### Security / Scaling / Upgrade Considerations

n/a

### Documentation Considerations

Internal design docs are assumed background knowledge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cache bundles in bundleAndInstall of setUpZoeForTest
1 participant