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

ci: add integration test to GitHub Action #24

Merged
merged 8 commits into from
Mar 18, 2024
Merged

ci: add integration test to GitHub Action #24

merged 8 commits into from
Mar 18, 2024

Conversation

LuqiPan
Copy link
Collaborator

@LuqiPan LuqiPan commented Mar 15, 2024

Adding an integration job to verify this project can build and contract can deploy

@LuqiPan LuqiPan requested review from dckc and 0xpatrickdev March 15, 2024 19:09
@LuqiPan LuqiPan marked this pull request as ready for review March 15, 2024 19:09
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.

yes, please.

done
'
- name: yarn start:contract
run: yarn start:contract
Copy link
Member

Choose a reason for hiding this comment

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

Here's hoping we can test that the contracts actually got started.

One way is:

agoric follow -lF :published.agoricNames.instance | grep sellConcertTickets

but that presumes the agoric CLI is available; I'm not sure that's the case.

agoric follow -lF ... is just an HTTP GET, so it can be done with curl too.

I'm working on running the tests for contract functionality in an end-to-end context too. But we're not quite there yet.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We do now! Jim's slides this morning gave me an idea and we're testing that. Though I don't know why the CI couldn't see swaparoo contract onchain. The other 2 contracts are available on based on the curl response.

Ref: https://github.com/Agoric/dapp-agoric-basics/actions/runs/8332287701/job/22801091735?pr=24

Copy link
Member

Choose a reason for hiding this comment

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

We do now!

nice!

I don't know why the CI couldn't see swaparoo contract onchain.

very strange. it's certainly in the ci log: [\\\\\\\"sellConcertTickets\\\\\\\",\\\\\\\"$23.Alleged: InstanceHandle\\\\\\\"]

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It could grep sellConcertTickets and postalService, but not swaparoo

I tried to CTRL+F on the blob and I couldn't find swaparoo in the data blob. Do we need to wait for some time before curling and greping?

Copy link
Member

Choose a reason for hiding this comment

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

oic. I was reading too quickly.

I'm not sure what's up with swaparoo there. But the way it's deployed changes significantly with the addition of governance (#21) so I'm not inclined to worry about it now.

- name: Wait for Docker container to be ready
run: |
timeout 180 bash -c '
TARGET_HEIGHT=1001
Copy link
Member

Choose a reason for hiding this comment

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

This was a bit of a hack to make sure all of the (replay?) is complete before submitting new tx's. This number might be a bit higher now with the addition of more proposals to a3p. I'm not sure of a good way to make this more dynamic, or if a different solution could be sourced from a3p.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

... or if a different solution could be sourced from a3p.

Yeah I think so, filed Agoric/agoric-3-proposals#130

@LuqiPan LuqiPan merged commit 1b7c376 into main Mar 18, 2024
2 checks passed
@LuqiPan LuqiPan deleted the integration-test branch March 18, 2024 20:11
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.

3 participants