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

Add getting-started-test-pipeline.yml #1091

Merged
merged 9 commits into from
May 30, 2024

Conversation

ansabgillani
Copy link
Contributor

@ansabgillani ansabgillani commented May 14, 2024

Adding getting-started-test-pipeline.yml to the pipeline and ensure it runs as mentioned in the docs.

Will only run on main branch on dapp-offer-up

fixes #892

@ansabgillani ansabgillani marked this pull request as draft May 14, 2024 18:44
Copy link

cloudflare-workers-and-pages bot commented May 14, 2024

Deploying documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: c506d4d
Status: ✅  Deploy successful!
Preview URL: https://7fc91b5b.documentation-7tp.pages.dev
Branch Preview URL: https://awg-add-getting-started-test.documentation-7tp.pages.dev

View logs

Copy link

github-actions bot commented May 14, 2024

Cloudflare deployment logs are available here

@dckc
Copy link
Member

dckc commented May 14, 2024

Good to see progress on this.

It looks like this is intended to address #892. Want to edit the description to say so?
If I don't hear otherwise, I may go ahead and do that.

@ghost ghost mentioned this pull request May 15, 2024
@ansabgillani ansabgillani force-pushed the awg/add-getting-started-test-pipeline.yml branch 2 times, most recently from 90585e8 to 8a22f89 Compare May 15, 2024 10:29
@ansabgillani ansabgillani marked this pull request as ready for review May 15, 2024 11:32
@ansabgillani ansabgillani changed the title Awg/add getting started test pipeline.yml Add getting-started-test-pipeline.yml May 15, 2024
Comment on lines 29 to 55
- name: Wait for Docker container to be ready
# cd demo
# yarn install
# yarn start:docker
# # - name: yarn docker:logs
# # run: yarn docker:logs
# yarn build
# # Borrowed from https://github.com/DCFoundation/cosmos-proposal-builder/blob/main/.github/workflows/pr.yml#L43-L61
run: |
cd demo
timeout 300 bash -c '
TARGET_HEIGHT=1111
SLEEP=10
echo "Waiting for the Agoric service to be fully ready..."
echo "Target block height: $TARGET_HEIGHT"
while true; do
response=$(curl --silent http://localhost:26657/abci_info);
height=$(echo $response | jq -r ".result.response.last_block_height | tonumber");
if [ "$height" -ge $TARGET_HEIGHT ]; then
echo "Service is ready! Last block height: $height";
break;
else
echo "Waiting for last block height to reach $TARGET_HEIGHT. Current height: $height";
fi;
sleep $SLEEP;
done
'
Copy link
Member

Choose a reason for hiding this comment

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

consider pushing this wait-for-blocks code down into contract/Makefile or a script in contract/scripts/

see also:

https://github.com/Agoric/agoric-sdk/blob/2dc53d7552650c5d46319d0cd5341eeec275663a/packages/cosmic-swingset/Makefile#L197-L209

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @dckc, a little late on this but fixed it here. Please feel free to add any further comments.

@ansabgillani ansabgillani requested a review from dckc May 30, 2024 09:24
@ansabgillani ansabgillani force-pushed the awg/add-getting-started-test-pipeline.yml branch from 3cefc44 to 3e43d0b Compare May 30, 2024 10:46
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.

looks good.

please squash.

@ansabgillani ansabgillani merged commit c7e91b3 into main May 30, 2024
5 checks passed
@ansabgillani ansabgillani deleted the awg/add-getting-started-test-pipeline.yml branch May 30, 2024 17:41
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.

CI verify that changes to agoric-sdk/dapps and other components do not break the docs instructions
3 participants