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

run rosetta-cli check:construction in CI #31

Merged
merged 2 commits into from
Aug 7, 2020

Conversation

pro-wh
Copy link
Collaborator

@pro-wh pro-wh commented Aug 6, 2020

works around the way it runs forever

fixes #28

# We'll cause a sigpipe on this process, so ignore the exit status.
# The downstream awk will exit with nonzero status if this test actually fails without confirming any transactions.
./rosetta-cli --configuration-file rosetta-cli-config.json check:construction || true
} | awk '{ print $0 }; $1 == "[STATS]" && $4 > 0 { confirmed = 1; exit }; END { exit !confirmed }'
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could wait for some more transactions to be confirmed instead of just one ($4 > 0)?

Copy link
Collaborator Author

@pro-wh pro-wh Aug 7, 2020

Choose a reason for hiding this comment

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

to answer a question of how, then yes that's how we could do that.

currently we're using this test for a few things: (1) that the transaction hash is correct, (2) that a submitted transaction can go all the way and back to the gateway, and (3) that our modeling in operation sequences is correct. these are all tested in the first round trip.

@pro-wh pro-wh merged commit 2e080ff into pro-wh/feature/cli4 Aug 7, 2020
@pro-wh pro-wh deleted the pro-wh/feature/checkcons branch August 7, 2020 18:02
@kostko kostko linked an issue Aug 18, 2020 that may be closed by this pull request
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.

integrate rosetta-cli check:construction in CI
2 participants