-
Notifications
You must be signed in to change notification settings - Fork 2
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
Check implementation using Mesh CLI, within GitHub Actions #85
Conversation
""" | ||
|
||
command = [ | ||
"rosetta-cli", |
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.
Still, this is the name of the binary installed through mesh-cli's installer.
data["metrics"].(map[string]interface{})["erd_app_version"] = "v1.2.3" | ||
data["metrics"].(map[string]interface{})["erd_public_key_block_sign"] = "00" |
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.
Here, we are using some dummy values.
- name: Install dependencies | ||
run: | | ||
pip3 install requests bottle | ||
curl -sSfL https://raw.githubusercontent.com/coinbase/mesh-cli/master/scripts/install.sh | sh -s -- -b "$HOME/.local/bin" |
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.
mode = args.mode | ||
configuration = CONFIGURATIONS[args.network] | ||
|
||
process_rosetta = run_rosetta(configuration) |
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.
We start 3 processes: Rosetta, the API adapter and Rosetta (Mesh) CLI checker.
f"--online-url=http://localhost:{constants.PORT_ROSETTA}", | ||
f"--offline-url=http://localhost:{constants.PORT_ROSETTA}", |
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.
Same URL for online & offline (on purpose).
"account_identifier": { | ||
"address": "erd1ldjsdetjvegjdnda0qw2h62kq6rpvrklkc5pw9zxm0nwulfhtyqqtyc4vq" | ||
}, | ||
"privkey": "3e4e89e501eb542c12403fb15c52479e8721f2f4dedc3b3ef0f3b47b37de006c", |
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.
The testing key is not hidden, but this shouldn't be an issue for now. In the future, we will have it as a GH secret.
Run Rosetta Checker (mesh-cli) on GitHub Actions, against the Testnet Gateway. Since Rosetta only knows to talk to an Observer, an additional proxy-to-observer API adapter was needed.