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

Check implementation using Mesh CLI, within GitHub Actions #85

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Aug 5, 2024

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.

@andreibancioiu andreibancioiu self-assigned this Aug 5, 2024
"""

command = [
"rosetta-cli",
Copy link
Contributor Author

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.

Comment on lines +83 to +84
data["metrics"].(map[string]interface{})["erd_app_version"] = "v1.2.3"
data["metrics"].(map[string]interface{})["erd_public_key_block_sign"] = "00"
Copy link
Contributor Author

@andreibancioiu andreibancioiu Aug 5, 2024

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"
Copy link
Contributor Author

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)
Copy link
Contributor Author

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.

Comment on lines +108 to +109
f"--online-url=http://localhost:{constants.PORT_ROSETTA}",
f"--offline-url=http://localhost:{constants.PORT_ROSETTA}",
Copy link
Contributor Author

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",
Copy link
Contributor Author

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.

@andreibancioiu andreibancioiu merged commit 26c328f into main Aug 5, 2024
6 checks passed
@andreibancioiu andreibancioiu deleted the mesh-cli-ci branch August 5, 2024 13:33
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