Skip to content

Commit a055f4a

Browse files
committed
update the way we execute gaia
1 parent a6538b0 commit a055f4a

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/integration_attester_test.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
EVNODE_VERSION: "v1.0.0-beta.2.0.20250908090838-0584153217ed"
2020
IGNITE_VERSION: "v29.3.1"
2121
IGNITE_EVOLVE_APP_VERSION: "main"
22+
GAIAD_VERSION: "v24.0.0"
2223

2324
steps:
2425
- uses: actions/checkout@v5
@@ -52,6 +53,42 @@ jobs:
5253
echo "DA_PID=$!" >> $GITHUB_ENV
5354
sleep 3
5455
56+
- name: Download Gaia Binary
57+
run: |
58+
echo "Downloading gaiad ${GAIAD_VERSION} for Linux amd64"
59+
wget -q https://github.com/cosmos/gaia/releases/download/${GAIAD_VERSION}/gaiad-${GAIAD_VERSION}-linux-amd64 -O gaiad
60+
chmod +x gaiad
61+
sudo mv gaiad /usr/local/bin/gaiad
62+
63+
- name: Init and Start Gaia
64+
env:
65+
GAIA_CHAIN_ID: localnet-1
66+
run: |
67+
echo "Initializing Gaia (${GAIA_CHAIN_ID}) and starting in background"
68+
gaiad init gaia-local --chain-id ${GAIA_CHAIN_ID}
69+
# Use a deterministic validator mnemonic as in parent repo
70+
MNEMONIC="abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon art"
71+
echo "$MNEMONIC" | gaiad keys add validator --keyring-backend test --recover > /dev/null 2>&1
72+
gaiad genesis add-genesis-account validator 10000000000000000stake --keyring-backend test
73+
gaiad genesis gentx validator 1000000000stake --chain-id ${GAIA_CHAIN_ID} --keyring-backend test
74+
gaiad genesis collect-gentxs
75+
# Configure app (API + gas) and consensus for quicker blocks
76+
sed -i 's/^minimum-gas-prices = ".*"/minimum-gas-prices = "0stake"/' ~/.gaia/config/app.toml || true
77+
# Enable API server and bind to 0.0.0.0:1317
78+
sed -i 's/^enable = false/enable = true/' ~/.gaia/config/app.toml || true
79+
sed -i 's#^address = "tcp://localhost:1317"#address = "tcp://0.0.0.0:1317"#' ~/.gaia/config/app.toml || true
80+
sed -i 's/^timeout_commit = ".*"/timeout_commit = "1s"/' ~/.gaia/config/config.toml || true
81+
sed -i 's/^timeout_propose = ".*"/timeout_propose = "1s"/' ~/.gaia/config/config.toml || true
82+
# Start Gaia using standard ports (like gm/integration-tests)
83+
gaiad start \
84+
--p2p.laddr tcp://0.0.0.0:26656 \
85+
--rpc.laddr tcp://0.0.0.0:26657 \
86+
--grpc.address 0.0.0.0:9090 \
87+
--log_format=json > gaia.log 2>&1 &
88+
echo "GAIA_PID=$!" >> $GITHUB_ENV
89+
echo "Waiting a few seconds for Gaia to come up"
90+
sleep 5
91+
5592
- name: Replace Modules and Prepare Chain
5693
run: |
5794
echo "Replacing modules (ev-node @ ${EVNODE_VERSION}, ev-abci -> local)"
@@ -74,3 +111,7 @@ jobs:
74111
echo "Stopping local DA (PID ${DA_PID})"
75112
kill -9 $DA_PID || true
76113
fi
114+
if [[ -n "${GAIA_PID}" ]]; then
115+
echo "Stopping Gaia (PID ${GAIA_PID})"
116+
kill -9 $GAIA_PID || true
117+
fi

0 commit comments

Comments
 (0)