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

For 1.10.0-namada CI #38

Closed
wants to merge 86 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
e35931e
add NamadaChain
yito88 Nov 2, 2023
8153fb6
fix wallet and PosParams
yito88 Nov 3, 2023
83211e7
add test scripts
yito88 Nov 3, 2023
ba2c88a
fix compat_mode
yito88 Nov 3, 2023
2ea4cdb
fix scripts for Namada v0.25.0
yito88 Nov 7, 2023
a0f26d1
add relaying tests
yito88 Nov 8, 2023
0a4bc26
fix config type and scripts
yito88 Nov 8, 2023
d0e75e8
minor fix for scripts
yito88 Nov 8, 2023
c17e112
install protoc for CI
yito88 Nov 8, 2023
b6cc2fa
fix tests
yito88 Nov 8, 2023
3cf5d17
fix tests
yito88 Nov 8, 2023
f01effc
fix sim test
yito88 Nov 8, 2023
d7b6c7a
fix test-framework doc
yito88 Nov 9, 2023
446787f
change Namada key handling
yito88 Nov 9, 2023
7fa06a2
fix scripts for adding namada keys
yito88 Nov 9, 2023
bb519c4
support encrypted key
yito88 Nov 10, 2023
6a96579
workaround for serde_json deserialization of ChainConfig
yito88 Nov 10, 2023
d87f272
fix after merge upstream
yito88 Nov 10, 2023
5e279ce
clean up Namada error
yito88 Nov 11, 2023
2d6272b
use only namada_sdk
yito88 Nov 11, 2023
c939c7b
Namada 0.27.0
yito88 Nov 21, 2023
764973d
check Namada WriteAck event in NewBlock
yito88 Nov 23, 2023
8cd572d
Namada 0.28.0
yito88 Dec 8, 2023
e22c2d5
Namada 0.29.0
yito88 Dec 30, 2023
a8d6b9b
Merge branch 'master' into yuji/1.7.1-namada
ljoss17 Feb 21, 2024
d0522c6
Fix issues post-merge
ljoss17 Feb 21, 2024
7a1f964
Merge pull request #25 from informalsystems/luca_joss/update-yuji-1.7…
yito88 Feb 21, 2024
4eee0e6
Namada 0.30.0
yito88 Jan 14, 2024
bca710b
Namada 0.30.2
yito88 Jan 26, 2024
3d9de30
Namada 0.31.0
yito88 Feb 3, 2024
3e6b7a1
shielded transfer test (#24)
yito88 Feb 15, 2024
31e4612
Support shielding transfers (#28)
yito88 Apr 12, 2024
280a438
fix config deserialization
yito88 Apr 12, 2024
37db82d
Merge branch 'master' into yuji/1.7.1-namada
yito88 May 12, 2024
f8b755e
fix for Namada #3032
yito88 Apr 17, 2024
254ed47
for Namada 0.35 draft
yito88 Apr 30, 2024
3d20ce3
small fixes for latest Hermes and fixed test scripts
yito88 May 14, 2024
025a69b
Namada 0.36 draft
yito88 May 17, 2024
6b72c1c
Namada 0.36.1
yito88 May 22, 2024
25d76a4
fix test
yito88 May 24, 2024
f3acb3c
Namada 0.37.0
yito88 May 28, 2024
18abd42
Merge branch 'master' into yuji/1.7.1-namada
yito88 May 28, 2024
bb01bd8
fix tests
yito88 May 28, 2024
5f083d1
Run tests with Namada chain (#18)
ljoss17 Jun 7, 2024
7abe00c
Merge commit 'master' into yuji/1.7.1-namada
yito88 Jun 7, 2024
1a13f8c
fix for Hermes v1.9.0
yito88 Jun 7, 2024
1a354b8
fix command and tests
yito88 Jun 7, 2024
90113e8
for CI
yito88 Jun 7, 2024
a3e7d13
WIP: fixing integration test with Namada
yito88 Jun 12, 2024
b20f474
WIP: fixing integration test with Namada
yito88 Jun 14, 2024
baa36f3
fixed some integration tests with Namada
yito88 Jun 14, 2024
947856f
Batching Namada transactions (#31)
yito88 May 31, 2024
cc148b3
for Namada/#3297 - split transfer tx
yito88 May 30, 2024
20bd3f5
Namada 0.39 draft
yito88 Jun 5, 2024
2231cd1
Namada 0.39.0
yito88 Jun 6, 2024
edf6b2b
fix tx event query
yito88 Jun 13, 2024
2adb118
for Namada 0.39.0 CI
yito88 Jun 14, 2024
19c5476
Namada gas estimation (#32)
yito88 Jun 21, 2024
d42fc23
fix error_events test
yito88 Jun 24, 2024
21ea6d7
fix to return a dummy failure response when simulation failure
yito88 Jun 24, 2024
1c5e071
return err when sim fails
yito88 Jun 27, 2024
5922e20
for connection events in NewBlock
yito88 Jun 27, 2024
6d9c1af
remove gen masp tx
yito88 Jun 28, 2024
30f468c
fix test scripts
yito88 Jul 1, 2024
aa380d2
minor fix
yito88 Jul 2, 2024
141be13
Namada for IBC shielding transfer
yito88 Jul 2, 2024
ecd0f98
fix integration tests for Namada
yito88 Jul 3, 2024
1dd59c3
fix batching txs
yito88 Jul 3, 2024
f401175
for Namada 0.40.0 draft
yito88 Jul 4, 2024
5550adf
fix genesis time
yito88 Jul 4, 2024
c1c12a8
Merge branch 'master'
yito88 Jul 8, 2024
f75f5b2
for CI with Namada v0.40.0
yito88 Jul 8, 2024
6899c72
gaia17
yito88 Jul 8, 2024
337f4dc
fix tests between gaia and namada
yito88 Jul 9, 2024
2d7fdaa
add retry for tests
yito88 Jul 9, 2024
a777772
fix ternary test
yito88 Jul 10, 2024
7fc3101
fix denom in ternary test
yito88 Jul 10, 2024
28d2bc6
add more transfer tests
yito88 Jul 11, 2024
d43eb78
revert nft transfer test script for shielding transfer
yito88 Jul 18, 2024
9c0d396
for Namada 3428 - Improve gas interface
yito88 Jul 9, 2024
4f20afa
fix gas-limit
yito88 Jul 30, 2024
b3d458d
implement queries for upgrade
yito88 Jul 30, 2024
047807a
fix upgrade path
yito88 Aug 7, 2024
f74de28
update time
yito88 Aug 7, 2024
b4cebde
Namada 0.42 draft
yito88 Aug 9, 2024
3cbee14
for https://github.com/anoma/namada/pull/3615
tzemanovic Aug 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/codespell/words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ crate
shs
ser
numer
nam
inout
wast
5 changes: 5 additions & 0 deletions .github/workflows/cargo-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2024-04-21
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build API documentation
uses: actions-rs/cargo@v1
env:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/guide-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check templates
run: bash scripts/auto_gen_templates.sh --mode "check"
- uses: actions-rs/cargo@v1
name: Update lockfile
with:
command: generate-lockfile
args: --manifest-path tools/check-guide/Cargo.toml
- uses: actions-rs/cargo@v1
name: Check guide
with:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: test
Expand Down Expand Up @@ -149,6 +154,11 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: test
Expand Down Expand Up @@ -192,6 +202,11 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: test
Expand Down Expand Up @@ -234,6 +249,11 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: test
Expand Down Expand Up @@ -276,6 +296,11 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: test
Expand Down Expand Up @@ -317,6 +342,11 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: test
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/misbehaviour.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Hermes
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -132,6 +137,11 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Hermes
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -184,6 +194,11 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Hermes
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -237,6 +252,11 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Hermes
uses: actions-rs/cargo@v1
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/multi-chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: test
Expand Down
191 changes: 191 additions & 0 deletions .github/workflows/namada.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
name: Namada Integration

on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/integration.yaml
- Cargo.toml
- Cargo.lock
- flake.nix
- flake.lock
- ci/**
- e2e/**
- crates/**
- tools/**

env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 1
CARGO_PROFILE_RELEASE_DEBUG: 1
RUST_BACKTRACE: short
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10

# Cancel previous runs of this workflow when a new commit is added to the PR, branch or tag
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
gaia-namada:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
chain:
- package: .#gaia17
command: gaiad,namada
account_prefix: cosmos,''
native_token: stake,nam
steps:
- uses: actions/checkout@v4
- name: Clone Namada
uses: actions/checkout@v4
with:
repository: anoma/namada
ref: yuji/for-hermes-ci
path: namada
- name: Retrieve Namada repository path
id: namada-repo-path
run: |
echo "NAMADA_REPO_PATH=$(pwd)/namada" >> "$GITHUB_ENV"
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
substituters = https://cache.nixos.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- name: Install Cachix
uses: cachix/cachix-action@v14
with:
name: cosmos-nix
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install libudev
run: sudo apt-get update && sudo apt-get -y install libudev-dev
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: test
args: -p ibc-integration-test --features namada --no-fail-fast --no-run
- name: Install cargo-nextest
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
- name: Download CometBFT
run: |
curl -o cometbft.tar.gz -LO https://github.com/cometbft/cometbft/releases/download/v0.37.2/cometbft_0.37.2_linux_amd64.tar.gz
tar -xvzf cometbft.tar.gz
chmod +x cometbft
mkdir -p $HOME/local/bin
mv cometbft ~/local/bin
- name: Download Namada binaries
env:
OPERATING_SYSTEM: Linux
run: |
release_url=$(curl -s "https://api.github.com/repos/anoma/namada/releases/167026354" | grep "browser_download_url" | cut -d '"' -f 4 | grep "$OPERATING_SYSTEM")
wget "$release_url"
tar -xzvf namada*.tar.gz
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
- name: Download MASP parameters
run: |
echo $HOME
mkdir -p $HOME/.masp-params
curl -o $HOME/.masp-params/masp-spend.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-spend.params\?raw\=true
curl -o $HOME/.masp-params/masp-output.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-output.params?raw=true
curl -o $HOME/.masp-params/masp-convert.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-convert.params?raw=true
- env:
RUST_LOG: info
RUST_BACKTRACE: 1
NO_COLOR_LOG: 1
NEXTEST_RETRIES: 2
CHAIN_COMMAND_PATHS: ${{ matrix.chain.command }}
ACCOUNT_PREFIXES: ${{ matrix.chain.account_prefix }}
NATIVE_TOKENS: ${{ matrix.chain.native_token }}
run: |
nix shell ${{ matrix.chain.package }} -c \
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=1 \
--features namada

namada:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Clone Namada
uses: actions/checkout@v4
with:
repository: anoma/namada
ref: yuji/for-hermes-ci
path: namada
- name: Retrieve Namada repository path
id: namada-repo-path
run: |
echo "NAMADA_REPO_PATH=$(pwd)/namada" >> "$GITHUB_ENV"
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install libudev
run: sudo apt-get update && sudo apt-get -y install libudev-dev
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: test
args: -p ibc-integration-test --features namada --no-fail-fast --no-run
- name: Install cargo-nextest
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
- name: Download CometBFT
run: |
curl -o cometbft.tar.gz -LO https://github.com/cometbft/cometbft/releases/download/v0.37.2/cometbft_0.37.2_linux_amd64.tar.gz
tar -xvzf cometbft.tar.gz
mkdir -p ~/local/bin
chmod +x cometbft
mv cometbft ~/local/bin
- name: Download Namada binaries
env:
OPERATING_SYSTEM: Linux
run: |
release_url=$(curl -s "https://api.github.com/repos/anoma/namada/releases/167026354" | grep "browser_download_url" | cut -d '"' -f 4 | grep "$OPERATING_SYSTEM")
wget "$release_url"
tar -xzvf namada*.tar.gz
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
- name: Download MASP parameters
run: |
echo $HOME
mkdir -p $HOME/.masp-params
curl -o $HOME/.masp-params/masp-spend.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-spend.params\?raw\=true
curl -o $HOME/.masp-params/masp-output.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-output.params?raw=true
curl -o $HOME/.masp-params/masp-convert.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-convert.params?raw=true
- env:
RUST_LOG: info
RUST_BACKTRACE: 1
NO_COLOR_LOG: 1
NEXTEST_RETRIES: 2
CHAIN_COMMAND_PATHS: namada
ACCOUNT_PREFIXES: ''
NATIVE_TOKENS: nam
run: |
cargo nextest run -p ibc-integration-test --no-fail-fast --failure-output final --test-threads=1 \
--features namada

5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v4
- name: Install Protoc
uses: heliaxdev/setup-protoc@v2
with:
version: "25.0"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: taiki-e/upload-rust-binary-action@v1
with:
# (required)
Expand Down
Loading
Loading