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

test(orchestration): skip non-invitation-based boot tests #9573

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

0xpatrickdev
Copy link
Member

@0xpatrickdev 0xpatrickdev commented Jun 24, 2024

refs: #9449

Description

Disables @agoric/orchestration tests in packages/boot that interact directly with Vows. EV does not currently support vows, and these tests block efforts related to #9449.

For tests that are skipped and not deleted, I propose testing these paths after the completion of #9572.

Testing Considerations

Skips tests instead deleting them. Taking on some tech debt until #9572

Copy link

cloudflare-workers-and-pages bot commented Jun 24, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5ba21bc
Status: ✅  Deploy successful!
Preview URL: https://20b0729b.agoric-sdk.pages.dev
Branch Preview URL: https://pc-9449-orch-returns-vows.agoric-sdk.pages.dev

View logs

@0xpatrickdev 0xpatrickdev requested a review from dckc June 24, 2024 19:06
@dckc
Copy link
Member

dckc commented Jun 24, 2024

EV does not currently support vows

it doesn't make working with vows convenient, but I think you can sort of write it out long-hand. A vow is a tagged thing with a certain payload and such

Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

ok... explored some options... this seems best for now.

const publicFacet = await EV(zoe).getPublicFacet(instance);
t.truthy(publicFacet, 'stakeAtom publicFacet is available');

const account = await EV(publicFacet).makeAccount();
Copy link
Member

Choose a reason for hiding this comment

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

makeAccount is tested below stakeAtom - smart wallet and delegate

};
await t.notThrowsAsync(EV(account).delegate(validatorAddress, atomAmount));

await t.throwsAsync(EV(account).getBalance('uatom'), {
Copy link
Member

Choose a reason for hiding this comment

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

not a likely flow; probably front-end

@0xpatrickdev
Copy link
Member Author

0xpatrickdev commented Jun 24, 2024

ok... explored some options... this seems best for now.

Pushed up our spike on EV support of Vows to pc/EV-supports-vows:

TLDR;

  • we got things working with an EV.whenVow(), but didn't have immediate success teaching EV to conditionally unwrap
  • edits packages/vats/src/core/lib-boot.js, which is more than a test utility, so the pull request may have upgrade considerations

- towards #9449
- deletes tests where paths are covered by other tests
- skips tests until functionality is tested elsewhere. see #9572 which blocks easily porting these to unit tests in @agoric/orchestration
@0xpatrickdev 0xpatrickdev force-pushed the pc/9449-orch-returns-vows branch from 7e83a07 to 5ba21bc Compare June 24, 2024 23:44
@0xpatrickdev 0xpatrickdev added the automerge:rebase Automatically rebase updates, then merge label Jun 24, 2024
@0xpatrickdev 0xpatrickdev changed the title test(orchestration): skip non-invitation boot tests test(orchestration): skip non-invitation-based boot tests Jun 24, 2024
@mergify mergify bot merged commit ba6eb45 into master Jun 25, 2024
85 checks passed
@mergify mergify bot deleted the pc/9449-orch-returns-vows branch June 25, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants