Skip to content

test: local ICP Ninja example deployment#217

Merged
lpahlavi merged 9 commits intomainfrom
lpahlavi/XC-454-test-ninja-deployment
Sep 2, 2025
Merged

test: local ICP Ninja example deployment#217
lpahlavi merged 9 commits intomainfrom
lpahlavi/XC-454-test-ninja-deployment

Conversation

@lpahlavi
Copy link
Contributor

@lpahlavi lpahlavi commented Aug 28, 2025

(XC-454) Test local deployment of ICP Ninja basic_solana example. This simulates what a user would do when downloading their project from ICP Ninja and deploying it locally. This includes downloading the latest SOL RPC canister WASM file from GitHub and changing the value of solana_network in the init_args in dfx.json from Devnet to Custom = record { url = \"https://api.devnet.solana.com\"; headers = null } as outlined in the basic_solana README.

@lpahlavi lpahlavi changed the title test: test local ICP Ninja example deployment test: local ICP Ninja example deployment Aug 28, 2025
@lpahlavi lpahlavi marked this pull request as ready for review August 28, 2025 12:19
@lpahlavi lpahlavi requested a review from a team as a code owner August 28, 2025 12:19
@lpahlavi lpahlavi marked this pull request as draft August 28, 2025 12:52
@lpahlavi lpahlavi requested a review from gregorydemay August 28, 2025 13:10
@lpahlavi lpahlavi marked this pull request as ready for review August 28, 2025 13:10
Copy link
Contributor

@gregorydemay gregorydemay left a comment

Choose a reason for hiding this comment

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

Thanks a lot @lpahlavi for this PR!

echo "$out" | grep -E "[1-9A-HJ-NP-Za-km-z]{32,44}" > /dev/null || { echo "❌ Call to 'solana_account' failed"; exit 1; }
out=$(dfx canister call basic_solana get_balance --output json)
echo "$out"
echo "$out" | grep -E "[0-9]+(?:_[0-9]+)*" > /dev/null || { echo "❌ Call to 'get_balance' failed"; exit 1; }
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: there might be a problem with the grep since the job issues a warning

grep: warning: ? at start of expression

Copy link
Contributor Author

@lpahlavi lpahlavi Sep 2, 2025

Choose a reason for hiding this comment

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

Very good catch! Turns out this is PCRE regex syntax for a non-capturing group, but we need POSIX syntax which doesn't support that. I've removed it (both in the icp-ninja-tests and ent-to-end-tests steps) as it's unnecessary for us.

@lpahlavi lpahlavi merged commit b8dd250 into main Sep 2, 2025
14 checks passed
@lpahlavi lpahlavi deleted the lpahlavi/XC-454-test-ninja-deployment branch September 2, 2025 07:08
lpahlavi added a commit that referenced this pull request Sep 2, 2025
(XC-454) Since #222 was merged, re-enable the CI pipeline step to ensure
the `Cargo.toml` for the ICP Ninja deployment of `basic_solana` is
up-to-date, and group it with the other `icp-ninja-tests` added in #217.
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.

2 participants