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

A3P commands without synthetic-chain #10396

Merged
merged 22 commits into from
Nov 8, 2024
Merged

A3P commands without synthetic-chain #10396

merged 22 commits into from
Nov 8, 2024

Conversation

turadg
Copy link
Member

@turadg turadg commented Nov 2, 2024

closes: #10369

Description

Many of the imports from @agoric/synthetic-chain are not about synthetics per se. They should be possible with the code in agoric-sdk.

This brings the new @agoric/client-utils into functional testing in a3p-integration. It makes the canonical source for sync-tool.js that was duplicated in different proposal tests.

This also demonstrates a style of smart-wallet offer execution without the @agoric/synthetic-chain package. See OpenVault. It still goes through execSwingsetTransaction spawning agd but that could also be optimized with an RPC client lib for SwingSet that does signing (see #9200). That's out of scope for this effort to simply stop reliable in another repo for testing utilities.

Review by commit is recommended

Security Considerations

n/a, tests

Scaling Considerations

n/a, tests

Documentation Considerations

When these patterns stabilize more we may want to write them down. For now I think let's keep it flexible.

Testing Considerations

per se

Upgrade Considerations

One impact to the upgrade process is that when moving a proposal from a3p-integration to agoric-3-proposals, the dependencies may have to be updated. Though it's likely they'll work on the /usr/src/agoric-sdk in the image

Copy link

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

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2740748
Status: ✅  Deploy successful!
Preview URL: https://efbbdff5.agoric-sdk.pages.dev
Branch Preview URL: https://10369-skip-cli.agoric-sdk.pages.dev

View logs

@turadg turadg added the force:integration Force integration tests to run on PR label Nov 4, 2024
@Chris-Hibbert

This comment was marked as resolved.

@turadg turadg force-pushed the 10369-skip-cli branch 2 times, most recently from 0d7f011 to 9a8474a Compare November 4, 2024 21:58
@turadg turadg force-pushed the 10369-skip-cli branch 13 times, most recently from 1fffdcb to 3a18e22 Compare November 7, 2024 00:08
@turadg turadg marked this pull request as ready for review November 7, 2024 00:29
@turadg turadg requested a review from a team as a code owner November 7, 2024 00:29
@turadg turadg changed the title spike A3P commands without synthetic-chain A3P commands without synthetic-chain Nov 7, 2024
@turadg turadg force-pushed the 10369-skip-cli branch 4 times, most recently from 3ea8635 to b97d772 Compare November 7, 2024 18:02
Copy link
Collaborator

@anilhelvaci anilhelvaci Nov 8, 2024

Choose a reason for hiding this comment

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

Moving log from options to io makes more sense. Thanks.


In agoric-sdk CI and development, we want the proposals to use the versions of the packages in the agoric-sdk source tree. To accomplish this we use `yarn link`. In Yarn 4 (berry) it uses a `portal` protocol to link to another Yarn project on the filesystem. One kink is that in development the command would,
```
yarn link --relative ../../.. --all
Copy link
Collaborator

Choose a reason for hiding this comment

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

So is this run only one time in your machine to create the resolutions in the n:upgrade-next/package.json?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct

@anilhelvaci
Copy link
Collaborator

LGTM, just asked a few small questions. I really appreciate the effort for this PR.

Looking forward to seeing it support signing transactions as well. Willing to help for this if the need arises.

@turadg turadg force-pushed the 10369-skip-cli branch 4 times, most recently from 6fdee12 to f57d920 Compare November 8, 2024 17:15
@mergify mergify bot merged commit bd0b2a9 into master Nov 8, 2024
81 checks passed
@mergify mergify bot deleted the 10369-skip-cli branch November 8, 2024 18:35
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 force:integration Force integration tests to run on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make a functional testing package
3 participants