Skip to content

Commit

Permalink
Merge branch 'bat/refactor-masp-e2e-history' (#1714)
Browse files Browse the repository at this point in the history
* bat/refactor-masp-e2e-history:
  refator e2e masp tests
  • Loading branch information
Fraccaman committed Jul 22, 2023
2 parents 61ef516 + f258a9b commit 4c87758
Show file tree
Hide file tree
Showing 41 changed files with 4,176 additions and 2,454 deletions.
3 changes: 3 additions & 0 deletions .changelog/unreleased/testing/1714-refactor-e2e-tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Added integration testing infrastructure for node, client and
the wallet and replaced MASP E2E tests with integration tests.
([\#1714](https://github.com/anoma/namada/pull/1714))
19 changes: 6 additions & 13 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ jobs:
if: matrix.os == 'ubuntu-20.04'
env:
LINK: https://github.com/mozilla/sccache/releases/download
SCCACHE_VERSION: v0.5.4
SCCACHE_VERSION: v0.3.0
run: |
SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl
mkdir -p $HOME/.local/bin
Expand Down Expand Up @@ -314,7 +314,7 @@ jobs:
if: matrix.os == 'ubuntu-20.04'
env:
LINK: https://github.com/mozilla/sccache/releases/download
SCCACHE_VERSION: v0.5.4
SCCACHE_VERSION: v0.3.0
run: |
SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl
mkdir -p $HOME/.local/bin
Expand Down Expand Up @@ -386,7 +386,6 @@ jobs:
os: [ubuntu-20.04]
nightly_version: [nightly-2023-06-01]
mold_version: [1.7.0]
comet_bft: [0.37.2]
make:
- name: e2e
suffix: ''
Expand Down Expand Up @@ -443,7 +442,7 @@ jobs:
if: matrix.os == 'ubuntu-20.04'
env:
LINK: https://github.com/mozilla/sccache/releases/download
SCCACHE_VERSION: v0.5.4
SCCACHE_VERSION: v0.3.0
run: |
SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl
mkdir -p $HOME/.local/bin
Expand Down Expand Up @@ -489,12 +488,6 @@ jobs:
run: make build-test
env:
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold"
- name: Download MASP parameters
run: |
mkdir -p /home/runner/.masp-params
curl -o /home/runner/.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/runner/.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/runner/.masp-params/masp-convert.params -L https://github.com/anoma/masp-mpc/releases/download/namada-trusted-setup/masp-convert.params?raw=true
- name: Wait for release binaries
uses: lewagon/[email protected]
with:
Expand All @@ -515,7 +508,7 @@ jobs:
path: ./target/release/
- name: Download CometBFT
run: |
curl -o cometbft.tar.gz -LO https://github.com/cometbft/cometbft/releases/download/v${{ matrix.comet_bft }}/cometbft_${{ matrix.comet_bft }}_linux_amd64.tar.gz
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
mv cometbft /usr/local/bin
- name: Change permissions
Expand All @@ -526,9 +519,9 @@ jobs:
chmod +x target/release/namadac
chmod +x /usr/local/bin/cometbft
- name: Run e2e test
run: python3 .github/workflows/scripts/schedule-e2e.py
run: |
python3 .github/workflows/scripts/schedule-e2e.py
env:
NAMADA_MASP_PARAMS_DIR: /home/runner/.masp-params
NAMADA_E2E_USE_PREBUILT_BINARIES: "true"
NAMADA_E2E_KEEP_TEMP: "true"
NAMADA_TM_STDOUT: "false"
Expand Down
Loading

0 comments on commit 4c87758

Please sign in to comment.