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

fix drone ci tests #932

Merged
merged 35 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
dab07de
allow all ica messages in ci
jhernandezb Nov 20, 2023
de1a1e1
decrease timeout, change port grpc
jhernandezb Nov 20, 2023
ec2df28
fix location
jhernandezb Nov 20, 2023
d52dfe9
increase vote height
jhernandezb Nov 20, 2023
f30c5b9
show config
jhernandezb Nov 20, 2023
a62e91d
Merge branch 'main' of github.com:public-awesome/stargaze into jherna…
jhernandezb Dec 26, 2023
43a42a1
update hermes dockerfile
jhernandezb Dec 26, 2023
48e9c34
upgrade hermes
jhernandezb Dec 26, 2023
325dc34
fix drone ci
jhernandezb Dec 26, 2023
de37eac
iIchange add key command
jhernandezb Dec 26, 2023
ee565f1
fix
jhernandezb Dec 26, 2023
49bc4fb
fix connection creation
jhernandezb Dec 26, 2023
27421c1
fix clock drift
jhernandezb Dec 26, 2023
a61c5d7
set port
jhernandezb Dec 26, 2023
d7fac51
fix channel creation
jhernandezb Dec 26, 2023
07c5555
fix home
jhernandezb Dec 26, 2023
e45baa9
fix stargaze init home
jhernandezb Dec 26, 2023
6e90372
fix
jhernandezb Dec 26, 2023
902c756
compat mode
jhernandezb Dec 26, 2023
111f450
set compat mode
jhernandezb Dec 26, 2023
3435893
add sleep
jhernandezb Dec 26, 2023
7136d99
update hermes commands
jhernandezb Dec 27, 2023
b5b19a7
fix denom
jhernandezb Dec 27, 2023
bac9706
update hermes and transfers
jhernandezb Dec 27, 2023
59d5c4e
rely ICA
jhernandezb Dec 27, 2023
a03e3ba
enable connection and channel workers
jhernandezb Dec 27, 2023
ae228fa
do not broadcast block
jhernandezb Dec 27, 2023
c1d539a
remove explicit compat mode
jhernandezb Dec 27, 2023
ea025fb
fix upgrade script
jhernandezb Dec 27, 2023
aee278d
remove wait for block
jhernandezb Dec 27, 2023
8c51d29
log balance
jhernandezb Dec 27, 2023
019b621
update timeout height
jhernandezb Dec 27, 2023
e6009e3
add params
jhernandezb Dec 27, 2023
b7bc6b4
increase timeout
jhernandezb Dec 27, 2023
0c49577
allow messages
jhernandezb Dec 27, 2023
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
36 changes: 19 additions & 17 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ steps:
path: /go
commands:
- apk add --no-cache ca-certificates build-base git
- wget https://github.com/CosmWasm/wasmvm/releases/download/v1.4.0/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.a
- echo "8ea2e3b5fae83e671da2bb51115adc88591045953f509955ec38dc02ea5a7b94 /lib/libwasmvm_muslc.a" | sha256sum -c
- wget https://github.com/CosmWasm/wasmvm/releases/download/v1.5.0/libwasmvm_muslc.x86_64.a -O /lib/libwasmvm_muslc.a
- echo "465e3a088e96fd009a11bfd234c69fb8a0556967677e54511c084f815cf9ce63 /lib/libwasmvm_muslc.a" | sha256sum -c
- LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build
- echo "Ensuring binary is statically linked ..." && (file $PWD/bin/starsd | grep "statically linked")
environment:
Expand Down Expand Up @@ -77,12 +77,13 @@ steps:
password:
from_secret: docker_password
tags:
- 12.0.0-alpha.1
- 13.0.0-alpha.3
when:
event:
- push
branch:
- spoorrthi/remove-claim
- jhernandez/fix-ci
- name: docker_release
image: plugins/docker
settings:
Expand Down Expand Up @@ -214,19 +215,19 @@ steps:
- http://osmosis:26657
- http://icad:26657
- name: relayer
image: publicawesome/hermes:0.15.0
image: publicawesome/hermes:1.7.3
commands:
- /bin/bash ./scripts/ci/setup-relayer.sh
- /bin/bash ./scripts/ci/setup-hermes-1.7.sh

- name: relayer-start
image: publicawesome/hermes:0.15.0
image: publicawesome/hermes:1.7.3
commands:
- /bin/bash ./scripts/ci/start-relayer.sh
- /bin/bash ./scripts/ci/start-relayer-v1.7.sh
detach: true
- name: relayer-sender
image: publicawesome/hermes:0.15.0
image: publicawesome/hermes:1.7.3
commands:
- /bin/bash ./scripts/ci/transfer-relayer.sh
- /bin/bash ./scripts/ci/transfer-relayer-v1.7.sh
- name: ica-test
image: publicawesome/icad:0.1.6-stargaze.1
pull: always
Expand Down Expand Up @@ -345,12 +346,12 @@ steps:
commands:
- /bin/bash ./scripts/ci/transfer-relayer.sh
- name: proposal
image: publicawesome/stargaze:11.0.0
image: publicawesome/stargaze:12.1.0
commands:
- ./scripts/ci/upgrade/proposal.sh
- name: stargaze-upgraded
pull: always
image: publicawesome/stargaze:12.0.0-alpha.1
image: publicawesome/stargaze:13.0.0-alpha.3
commands:
- ./scripts/ci/upgrade/run-upgrade.sh
environment:
Expand All @@ -369,25 +370,26 @@ steps:
- http://icad:26657
- name: check-params
pull: always
image: publicawesome/stargaze:12.0.0-alpha.1
image: publicawesome/stargaze:13.0.0-alpha.3
commands:
- starsd q mint params --node http://stargaze-upgraded:26657
- starsd q alloc params --node http://stargaze-upgraded:26657
- starsd q tokenfactory params --node http://stargaze-upgraded:26657
- starsd q bank balances stars1mnyrspq208uv5m2krdctan2dkyht0szje9s43h --node http://stargaze-upgraded:26657
- starsd q bank balances stars103y4f6h80lc45nr8chuzr3fyzqywm9n0gnr394 --node http://stargaze-upgraded:26657
- starsd q distribution community-pool --node http://stargaze-upgraded:26657
- starsd q interchain-accounts host params --node http://stargaze-upgraded:26657
environment:
GOPROXY: http://goproxy
- name: relayer-upgrade-start
image: publicawesome/hermes:0.15.0
image: publicawesome/hermes:1.7.3
commands:
- /bin/bash ./scripts/ci/upgrade/start-relayer.sh
- /bin/bash ./scripts/ci/upgrade/start-relayer-v1.7.sh
detach: true
- name: relayer-upgrade-sender
image: publicawesome/hermes:0.15.0
image: publicawesome/hermes:1.7.3
commands:
- /bin/bash ./scripts/ci/upgrade/transfer-relayer.sh
- /bin/bash ./scripts/ci/upgrade/transfer-relayer-v1.7.sh
- name: ica-upgrade-test
image: publicawesome/icad:0.1.6-stargaze.1
pull: always
Expand Down Expand Up @@ -416,6 +418,6 @@ volumes:

---
kind: signature
hmac: 46fe23976c6c247f19a426e0a9a60ae6083327b2c2dc4727e800749de1ddb227
hmac: a04c3f64897b2f98463520baec39b7d8112b730ef5bf1b513ef9f46cd6d5af8a

...
23 changes: 13 additions & 10 deletions docker/Dockerfile.hermes
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,26 @@
# Used for running hermes in docker containers
#
# Usage:
# docker build . --build-arg TAG=v1.0.0 -t publicawesome/hermes:1.0.0 -f docker/Dockerfile.hermes
# docker build . --build-arg TAG=v1.7.3 -t publicawesome/hermes:1.7.3 -f docker/Dockerfile.hermes

FROM rust:1.62-buster AS build-env
FROM rust:1-buster AS build-env

ARG TAG
WORKDIR /root

RUN git clone https://github.com/informalsystems/ibc-rs
RUN cd ibc-rs && git checkout $TAG && cargo build --release
RUN git clone https://github.com/informalsystems/hermes
RUN cd hermes && git checkout $TAG && cargo build --release
FROM ubuntu:latest
LABEL maintainer="hello@informal.systems"
ARG UID=1000
ARG GID=1000

RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl jq
RUN update-ca-certificates
RUN groupadd -g ${GID} hermes && useradd -l -m hermes -s /bin/bash -u ${UID} -g ${GID}

FROM debian:buster-slim
LABEL maintainer="hello@informal.systems"
RUN apt update && apt install curl jq -y
WORKDIR /home/hermes
USER hermes:hermes
ENTRYPOINT ["/usr/bin/hermes"]

COPY --chown=0:0 --from=build-env /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1
COPY --chown=0:0 --from=build-env /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
COPY --chown=0:0 --from=build-env /root/ibc-rs/target/release/hermes /usr/bin/hermes
COPY --chown=hermes:hermes --from=build-env /root/hermes/target/release/hermes /usr/bin/hermes
225 changes: 225 additions & 0 deletions scripts/ci/hermes/v1.7/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
[global]
log_level = "info"

[mode.clients]
enabled = true
refresh = true
misbehaviour = true

[mode.connections]
enabled = true

[mode.channels]
enabled = true

[mode.packets]
enabled = true
clear_interval = 100
clear_on_start = true
tx_confirmation = false
auto_register_counterparty_payee = false

[rest]
enabled = false
host = "127.0.0.1"
port = 3000

[telemetry]
enabled = false
host = "127.0.0.1"
port = 3001

[telemetry.buckets.latency_submitted]
start = 500
end = 20000
buckets = 10

[telemetry.buckets.latency_confirmed]
start = 1000
end = 30000
buckets = 10

[[chains]]
id = "stargaze"
type = "CosmosSdk"
rpc_addr = "http://stargaze:26657"
grpc_addr = "http://stargaze:9090"
rpc_timeout = "10s"
trusted_node = false
account_prefix = "stars"
key_name = "relayer"
key_store_type = "Test"
store_prefix = "ibc"
default_gas = 100000
max_gas = 400000
gas_multiplier = 1.1
max_msg_num = 30
max_tx_size = 180000
max_grpc_decoding_size = 33554432
clock_drift = "900s"
max_block_time = "5s"
ccv_consumer_chain = false
memo_prefix = ""
sequential_batch_tx = false


[chains.event_source]
mode = "push"
url = "ws://stargaze:26657/websocket"
batch_delay = "100ms"

[chains.trust_threshold]
numerator = "1"
denominator = "3"

[chains.gas_price]
price = 1.1
denom = "ustars"

[chains.packet_filter]
policy = "allow"
list = [["ica*", "*"], ["transfer", "*"]]


[chains.address_type]
derivation = "cosmos"


# Gaia
[[chains]]
id = "gaia"
type = "CosmosSdk"
rpc_addr = "http://gaia:26657"
grpc_addr = "http://gaia:9090"
rpc_timeout = "10s"
trusted_node = false
account_prefix = "cosmos"
key_name = "relayer"
key_store_type = "Test"
store_prefix = "ibc"
default_gas = 100000
max_gas = 400000
gas_multiplier = 1.1
max_msg_num = 30
max_tx_size = 180000
max_grpc_decoding_size = 33554432
clock_drift = "900s"
max_block_time = "5s"
ccv_consumer_chain = false
memo_prefix = ""
sequential_batch_tx = false


[chains.event_source]
mode = "push"
url = "ws://gaia:26657/websocket"
batch_delay = "100ms"

[chains.trust_threshold]
numerator = "1"
denominator = "3"

[chains.gas_price]
price = 1.1
denom = "stake"

[chains.packet_filter]
policy = "allowall"


[chains.address_type]
derivation = "cosmos"

# Osmosis
[[chains]]
id = "osmosis"
type = "CosmosSdk"
rpc_addr = "http://osmosis:26657"
grpc_addr = "http://osmosis:9090"
rpc_timeout = "10s"
trusted_node = false
account_prefix = "osmo"
key_name = "relayer"
key_store_type = "Test"
store_prefix = "ibc"
default_gas = 100000
max_gas = 400000
gas_multiplier = 1.1
max_msg_num = 30
max_tx_size = 180000
max_grpc_decoding_size = 33554432
clock_drift = "900s"
max_block_time = "5s"
ccv_consumer_chain = false
memo_prefix = ""
sequential_batch_tx = false


[chains.event_source]
mode = "push"
url = "ws://osmosis:26657/websocket"
batch_delay = "100ms"

[chains.trust_threshold]
numerator = "1"
denominator = "3"

[chains.gas_price]
price = 1.1
denom = "uosmo"

[chains.packet_filter]
policy = "allowall"


[chains.address_type]
derivation = "cosmos"

# ICAD
[[chains]]
id = "icad"
type = "CosmosSdk"
rpc_addr = "http://icad:26657"
grpc_addr = "http://icad:9090"
rpc_timeout = "10s"
trusted_node = false
account_prefix = "cosmos"
key_name = "relayer"
key_store_type = "Test"
store_prefix = "ibc"
default_gas = 100000
max_gas = 400000
gas_multiplier = 1.1
max_msg_num = 30
max_tx_size = 180000
max_grpc_decoding_size = 33554432
clock_drift = "900s"
max_block_time = "5s"
ccv_consumer_chain = false
memo_prefix = ""
sequential_batch_tx = false

[chains.event_source]
mode = "push"
url = "ws://icad:26657/websocket"
batch_delay = "100ms"

[chains.trust_threshold]
numerator = "1"
denominator = "3"

[chains.gas_price]
price = 1.1
denom = "stake"

[chains.packet_filter]
policy = "allow"
list = [["ica*", "*"], ["transfer", "*"]]

[chains.address_type]
derivation = "cosmos"


[tracing_server]
enabled = false
port = 5555
5 changes: 3 additions & 2 deletions scripts/ci/setup-gaia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ sed -i 's#tcp://127.0.0.1:26657#tcp://0.0.0.0:26657#g' ~/.gaia/config/config.tom
sed -i "s/\"stake\"/\"$DENOM\"/g" ~/.gaia/config/genesis.json
sed -i 's/pruning = "syncable"/pruning = "nothing"/g' ~/.gaia/config/app.toml
sed -i 's/enable = false/enable = true/g' ~/.gaia/config/app.toml
sed -i -e 's/timeout_commit = "5s"/timeout_commit = "1s"/g' ~/.gaia/config/config.toml
sed -i -e 's/timeout_propose = "3s"/timeout_propose = "1s"/g' ~/.gaia/config/config.toml
sed -i 's/localhost:9090/0.0.0.0:9090/g' ~/.gaia/config/app.toml
sed -i -e 's/timeout_commit = "5s"/timeout_commit = "100ms"/g' ~/.gaia/config/config.toml
sed -i -e 's/timeout_propose = "3s"/timeout_propose = "100ms"/g' ~/.gaia/config/config.toml
gaiad keys --keyring-backend test add validator

gaiad add-genesis-account $(gaiad keys --keyring-backend test show validator -a) 100000000000$DENOM
Expand Down
13 changes: 13 additions & 0 deletions scripts/ci/setup-hermes-1.7.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
set -ex
mkdir -p ~/.hermes/
cp ./scripts/ci/hermes/v1.7/config.toml ~/.hermes/
hermes keys add --chain stargaze --key-name relayer --key-file $PWD/scripts/ci/hermes/stargaze.json
hermes keys add --chain gaia --key-name relayer --key-file $PWD/scripts/ci/hermes/gaia.json
hermes keys add --chain osmosis --key-name relayer --key-file $PWD/scripts/ci/hermes/osmosis.json
hermes keys add --chain icad --key-name relayer --key-file $PWD/scripts/ci/hermes/icad.json
hermes create connection --a-chain stargaze --b-chain gaia
hermes create connection --a-chain stargaze --b-chain osmosis
hermes create connection --a-chain stargaze --b-chain icad
hermes create channel --a-port transfer --b-port transfer --a-chain stargaze --a-connection connection-0
hermes create channel --a-port transfer --b-port transfer --a-chain stargaze --a-connection connection-1

Loading
Loading