Skip to content

Commit

Permalink
fix kgw test with kwil-js
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaiba committed Mar 4, 2025
1 parent 90ccff1 commit ef59ad2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/kgw-test-reuse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ jobs:
run: |
cd contrib/docker/compose/kwil
echo "run kwild in docker"
docker compose up -d
# NOTE: we use the default hardhat signer address
KWIL_DB_OWNER=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 docker compose up -d
# clone kwil-js
git clone https://github.com/kwilteam/kwil-js.git /tmp/kwil-js
cd /tmp/kwil-js
Expand All @@ -214,12 +215,14 @@ jobs:
-b "http://kwild:8484" \
--chain-id $chain_id \
--allow-adhoc-query \
--log-level debug
--log-level debug \
--ip-request-rate-authn 0
echo "run KWIL-JS TEST against kwild(http://localhost:8484), with $chain_id"
PRIVATE_KEY=0000000000000000000000000000000000000000000000000000000000000001 CHAIN_ID=$chain_id GATEWAY_ON=false GAS_ON=false KWIL_PROVIDER=http://localhost:8484 npm run integration
# NOTE: we use the default hardhat private key
PRIVATE_KEY=ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 CHAIN_ID=$chain_id KWIL_PROVIDER=http://localhost:8484 npm run integration
echo "run KWIL-JS TEST against kgw(http://localhost:8090), with $chain_id"
# assume the test above will drop the database, so we can deploy again
PRIVATE_KEY=0000000000000000000000000000000000000000000000000000000000000001 CHAIN_ID=$chain_id GATEWAY_ON=true GAS_ON=false KWIL_PROVIDER=http://localhost:8090 npm run integration
PRIVATE_KEY=ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 CHAIN_ID=$chain_id GATEWAY_ON=TRUE KWIL_PROVIDER=http://localhost:8090 npm run integration
echo "stop running kwild & kgw"
docker rm -f kgwcontainer
cd -
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ configuration changes. Start it by running the following from the
```sh
cd contrib/docker/compose/kwil
docker compose up --build -d
KWIL_DB_OWNER=YOUR_ETH_ADDRESS docker compose up --build -d
```
With the `-d` option, the service(s) will be started as background processes. To
Expand Down
1 change: 1 addition & 0 deletions contrib/docker/compose/kwil/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ services:
command: |
start
--autogen
--db-owner=$KWIL_DB_OWNER
--root=/app/.kwild
--log.format=plain
--log.level=debug
Expand Down

0 comments on commit ef59ad2

Please sign in to comment.