-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(e2e): add backwards compatibility test (#1762)
Adds a `backwards.toml` that ensures backwards compatibility of `main` with `v0.4.0` our first omega LTS version. issue: #1537
- Loading branch information
1 parent
6210097
commit 4e01a6b
Showing
11 changed files
with
274 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 146 additions & 0 deletions
146
e2e/docker/testdata/TestComposeTemplate_empheral_network_upgrade.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
version: '2.4' | ||
networks: | ||
test: | ||
labels: | ||
e2e: true | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 10.186.73.0/24 | ||
|
||
services: | ||
node0: | ||
labels: | ||
e2e: true | ||
container_name: node0 | ||
image: omniops/halo:v1.0 | ||
restart: unless-stopped | ||
init: true | ||
ports: | ||
- 26656 # Consensus P2P | ||
- 8584:26657 # Consensus RPC | ||
- 6060 # Pprof | ||
volumes: | ||
- ./node0/config:/halo/config | ||
- ./node0/data:/halo/data | ||
networks: | ||
test: | ||
ipv4_address: 10.186.73.0 | ||
|
||
mock_rollup: | ||
labels: | ||
e2e: true | ||
container_name: mock_rollup | ||
platform: linux/amd64 | ||
image: omniops/anvilproxy:main | ||
environment: | ||
- ANVILPROXY_CHAIN_ID=99 | ||
- ANVILPROXY_BLOCK_TIME=1 | ||
- ANVILPROXY_SLOTS_IN_AN_EPOCH=4 # Finality in 4*2*BlockPeriod | ||
|
||
ports: | ||
- 9000:8545 | ||
networks: | ||
test: | ||
ipv4_address: 10.186.73.0 | ||
|
||
mock_l1: | ||
labels: | ||
e2e: true | ||
container_name: mock_l1 | ||
platform: linux/amd64 | ||
image: omniops/anvilproxy:main | ||
environment: | ||
- ANVILPROXY_CHAIN_ID=1 | ||
- ANVILPROXY_BLOCK_TIME=3600 | ||
- ANVILPROXY_SLOTS_IN_AN_EPOCH=4 # Finality in 4*2*BlockPeriod | ||
- FORKPROXY_LOAD_STATE=/anvil/state.json | ||
ports: | ||
- 9000:8545 | ||
networks: | ||
test: | ||
ipv4_address: 10.186.73.0 | ||
|
||
volumes: | ||
- path/to/anvil/state.json:/anvil/state.json | ||
|
||
|
||
# Use geth as the omni EVMs. | ||
omni_evm_0: | ||
labels: | ||
e2e: true | ||
container_name: omni_evm_0 | ||
image: "ethereum/client-go:v1.14.7" | ||
restart: unless-stopped | ||
command: | ||
- --config=/geth/config.toml | ||
# Flags not available via config.toml | ||
- --nat=extip:10.186.73.0 | ||
- --pprof | ||
- --pprof.addr=0.0.0.0 | ||
- --metrics | ||
- --graphql | ||
|
||
ports: | ||
- 8551 # Auth RPC | ||
- 8000:8545 # HTTP RPC | ||
- 30303 # Execution P2P | ||
- 8546 # Websockets RPC | ||
- 6060 # Prometheus metrics and pprof | ||
healthcheck: | ||
test: "nc -z localhost 8545" | ||
interval: 1s | ||
retries: 30 | ||
volumes: | ||
- ./omni_evm_0:/geth | ||
networks: | ||
test: | ||
ipv4_address: 10.186.73.0 | ||
|
||
relayer: | ||
labels: | ||
e2e: true | ||
container_name: relayer | ||
image: omniops/relayer:v2 | ||
restart: unless-stopped | ||
ports: | ||
- 26660 # Prometheus and pprof | ||
volumes: | ||
- ./relayer:/relayer | ||
networks: | ||
test: | ||
ipv4_address: 10.186.73.200 | ||
|
||
monitor: | ||
labels: | ||
e2e: true | ||
container_name: monitor | ||
image: omniops/monitor:v3 | ||
restart: unless-stopped | ||
ports: | ||
- 26660 # Prometheus and pprof | ||
volumes: | ||
- ./monitor:/monitor | ||
networks: | ||
test: | ||
ipv4_address: 10.186.73.201 | ||
|
||
prometheus: | ||
labels: | ||
e2e: true | ||
container_name: prometheus | ||
image: prom/prometheus:latest | ||
command: | ||
- --config.file=/etc/prometheus/prometheus.yml | ||
- --web.console.libraries=/usr/share/prometheus/console_libraries | ||
- --web.console.templates=/usr/share/prometheus/consoles | ||
- --enable-feature=exemplar-storage | ||
- --enable-feature=agent | ||
restart: unless-stopped | ||
volumes: | ||
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml | ||
networks: | ||
test: | ||
ipv4_address: 10.186.73.202 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Backwards ensures backwards-compatibility with v0.4.0. | ||
network = "devnet" | ||
anvil_chains = ["mock_l1", "mock_l2"] | ||
|
||
multi_omni_evms = true | ||
|
||
[node.validator01] | ||
[node.validator02] | ||
mode = "archive" | ||
|
||
[node.validator03] | ||
version="omniops/halovisor:v0.4.0" | ||
perturb = ["upgrade"] | ||
|
||
[node.validator04] | ||
version="omniops/halovisor:v0.4.0" | ||
perturb = ["upgrade"] |
Oops, something went wrong.