-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
Deploying documentation with Cloudflare Pages
|
Cloudflare deployment logs are available here |
Good to see progress on this. It looks like this is intended to address #892. Want to edit the description to say so? |
90585e8
to
8a22f89
Compare
- 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 | ||
' |
There was a problem hiding this comment.
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:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3cefc44
to
3e43d0b
Compare
There was a problem hiding this 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.
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-upfixes #892