Skip to content

Commit

Permalink
Clean-up integration tests and Namada bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 committed Jun 6, 2024
1 parent f465d2f commit 76d3055
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 41 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/namada.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ jobs:
- name: Retrieve Namada repository path
id: namada-repo-path
run: |
ls
pwd
echo "NAMADA_REPO_PATH=$(pwd)/namada" >> "$GITHUB_ENV"
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
Expand Down Expand Up @@ -114,7 +112,6 @@ jobs:
ACCOUNT_PREFIXES: ${{ matrix.chain.account_prefix }}
NATIVE_TOKENS: ${{ matrix.chain.native_token }}
run: |
tree $NAMADA_REPO_PATH
nix shell ${{ matrix.chain.package }} -c \
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=1 \
--features namada
Expand Down Expand Up @@ -165,7 +162,10 @@ jobs:
release_url=$(curl -s "https://api.github.com/repos/anoma/namada/releases/v0.37.0" | grep "browser_download_url" | cut -d '"' -f 4 | grep "$OPERATING_SYSTEM")
wget "$release_url"
tar -xzvf namada*.tar.gz
sudo cp ./namada* ~/local/bin/
cp ./namada*/namadac ~/local/bin/namadac
cp ./namada*/namadan ~/local/bin/namadan
cp ./namada*/namadaw ~/local/bin/namadaw
cp ./namada*/namada ~/local/bin/namada
- name: Update environment path
run: |
echo "${HOME}/local/bin" >> $GITHUB_PATH
Expand All @@ -184,7 +184,6 @@ jobs:
ACCOUNT_PREFIXES: ''
NATIVE_TOKENS: nam
run: |
tree $NAMADA_REPO_PATH
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=1 \
--features namada
51 changes: 24 additions & 27 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable;
flake-utils.url = github:numtide/flake-utils;
cosmos-nix.url = github:informalsystems/cosmos.nix/luca_joss/expose-namada-repository;
cosmos-nix.url = github:informalsystems/cosmos.nix;
};

outputs = inputs: let
Expand Down Expand Up @@ -42,8 +42,6 @@
ibc-go-v8-simapp
interchain-security
migaloo
namada
namada-src
neutron
juno
osmosis
Expand Down
1 change: 1 addition & 0 deletions tools/integration-test/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pub mod memo;
#[cfg(not(feature = "namada"))]
pub mod python;
pub mod query_packet;
#[cfg(not(feature = "namada"))]
pub mod supervisor;
#[cfg(not(feature = "namada"))]
pub mod tendermint;
Expand Down
6 changes: 0 additions & 6 deletions tools/test-framework/src/bootstrap/namada.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ pub fn bootstrap_namada_node(
// Init network
let output = simple_exec_with_envs(
"namada",
//&chain_driver.command_path,
"namadac",
&[
//"client",
"utils",
"init-network",
"--chain-prefix",
Expand All @@ -116,12 +114,10 @@ pub fn bootstrap_namada_node(

simple_exec_with_envs(
&chain_id,
//&chain_driver.command_path,
"namadac",
&[
"--base-dir",
validator_base_dir,
//"client",
"utils",
"join-network",
"--chain-id",
Expand All @@ -140,10 +136,8 @@ pub fn bootstrap_namada_node(

simple_exec_with_envs(
&chain_id,
//&chain_driver.command_path,
"namadac",
&[
//"client",
"--base-dir",
home_path,
"utils",
Expand Down

0 comments on commit 76d3055

Please sign in to comment.