Skip to content

Commit 1f298c4

Browse files
committed
try ci
1 parent 13a908b commit 1f298c4

File tree

6 files changed

+63
-5
lines changed

6 files changed

+63
-5
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: E2E Nix Tests
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- release/**
7+
pull_request:
8+
branches:
9+
- main
10+
- release/**
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
integration_tests:
18+
runs-on: ubuntu-latest-x64-xlarge
19+
timeout-minutes: 240
20+
strategy:
21+
matrix:
22+
tests: [all]
23+
env:
24+
TESTS_TO_RUN: ${{ matrix.tests }}
25+
steps:
26+
- name: Create more disk space
27+
run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
28+
- uses: actions/checkout@v3
29+
with:
30+
submodules: recursive
31+
fetch-depth: 1
32+
- id: changed-files
33+
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
34+
with:
35+
files: |
36+
docs
37+
*.md
38+
**/*.md
39+
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
40+
with:
41+
nix_path: nixpkgs=channel:nixos-24.11
42+
if: steps.changed-files.outputs.only_changed == 'false'
43+
- name: Run integration tests
44+
if: steps.changed-files.outputs.only_changed == 'false'
45+
run: make test-e2e-nix
46+
- name: 'Tar debug files'
47+
if: failure()
48+
run: tar cfz debug_files.tar.gz -C "${TMPDIR-/tmp}/pytest-of-runner" .
49+
- uses: actions/upload-artifact@v4
50+
if: failure()
51+
with:
52+
name: debug-files
53+
path: debug_files.tar.gz
54+
if-no-files-found: ignore

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ test-solidity:
205205
@echo "Beginning solidity tests..."
206206
./scripts/run-solidity-tests.sh
207207

208+
test-e2e-nix:
209+
@bash ./tests/scripts/restore_envs.sh
210+
@nix-shell ./tests/integration_tests/shell.nix --run "CHAIN_CONFIG=$(CHAIN_CONFIG) ./tests/scripts/run-integration-tests.sh"
211+
208212
.PHONY: run-tests test test-all $(TEST_TARGETS)
209213

210214
benchmark:

tests/integration_tests/configs/fee-history.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ config {
88
params+: {
99
elasticity_multiplier: 3,
1010
base_fee_change_denominator: 100000000,
11-
// min_gas_price: '0.000000000000000000', # TODO: remove after basefee fix
11+
min_gas_price: '0.000000000000000000', # TODO: remove after basefee fix
1212
},
1313
},
1414
},

tests/integration_tests/configs/min_gas_price.jsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ config {
2020
params+: {
2121
base_fee_change_denominator: '3',
2222
elasticity_multiplier: '4',
23-
base_fee: gas_price,
24-
min_gas_price: gas_price,
23+
base_fee: gas_price + '',
24+
min_gas_price: gas_price + '',
2525
},
2626
},
2727
},

tests/integration_tests/configs/staking.jsonnet

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
local config = import 'default.jsonnet';
22
local chain = (import 'chains.jsonnet')[std.extVar('CHAIN_CONFIG')];
3+
local gas_price = 1000000000;
34

45
config {
56
'evm-canary-net-1'+: {
67
validators: super.validators + [{
78
'coin-type': 60,
89
coins: '100000000000000000000' + chain.evm_denom,
910
staked: '10000000000000000000' + chain.evm_denom,
10-
gas_prices: '0.01' + chain.evm_denom,
11+
gas_prices: gas_price + chain.evm_denom,
1112
min_self_delegation: 1000000000000000000,
1213
mnemonic: '${VALIDATOR4_MNEMONIC}',
1314
}],

tests/integration_tests/test_ledger.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def test_ledger(custom_evm):
4343
rsp = cli.transfer(
4444
hw, community, f"{amt2}{DEFAULT_DENOM}", ledger=True, sign_mode="amino-json"
4545
)
46-
print("mm-rsp", rsp)
4746
assert rsp["code"] == 0, rsp["raw_log"]
4847
assert cli.balance(hw) == amt2 - find_fee(rsp)
4948
assert cli.balance(community) == community_balance + amt2

0 commit comments

Comments
 (0)