Skip to content

Commit

Permalink
ci: rename docker-compose-runner.yml and fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
antomor committed Oct 27, 2023
1 parent 415e5f6 commit 16b1216
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-iov-sim-tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: start-services
run: |
docker-compose -f docker-compose-runner.yml up --build -d zk
docker-compose -f docker-compose.ci.yml up --build -d zk
- name: init
run: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci-iov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
- name: start-services
run: |
docker-compose -f docker-compose-runner.yml down
docker-compose -f docker-compose-runner.yml pull
docker-compose -f docker-compose-runner.yml -f docker-compose-runner.unit-tests.yml up --build -d rskj postgres zk
docker-compose -f docker-compose.ci.yml down
docker-compose -f docker-compose.ci.yml pull
docker-compose -f docker-compose.ci.yml -f docker-compose.ci.unit-tests.yml up --build -d rskj postgres zk
ci_run sccache --start-server &
- name: generate SSL certificates
Expand Down Expand Up @@ -70,9 +70,9 @@ jobs:

- name: start-services (rskj, postgres, zk)
run: |
docker-compose -f docker-compose-runner.yml down
docker-compose -f docker-compose-runner.yml pull
docker-compose -f docker-compose-runner.yml up --build -d rskj postgres zk
docker-compose -f docker-compose.ci.yml down
docker-compose -f docker-compose.ci.yml pull
docker-compose -f docker-compose.ci.yml up --build -d rskj postgres zk
ci_run sccache --start-server &
- name: run zk init
Expand All @@ -81,7 +81,7 @@ jobs:
ci_run zk init
- name: restart dev-ticker
run: docker-compose -f docker-compose-runner.yml restart dev-ticker
run: docker-compose -f docker-compose.ci.yml restart dev-ticker

- name: run-services
run: |
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
ci_run cat dummy_prover.log
ci_run mkdir -p ./target/release/coverage/
ci_run "grcov . --binary-path ./target/release/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore '/*' -o ./target/release/coverage/lcov.info"
docker compose -f docker-compose-runner.yml cp zk:/usr/src/zksync/target/release/coverage/lcov.info lcov.info
docker compose -f docker-compose.ci.yml cp zk:/usr/src/zksync/target/release/coverage/lcov.info lcov.info
du lcov.info
- uses: codecov/codecov-action@v3
Expand Down
2 changes: 1 addition & 1 deletion bin/ci_run
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Runs the command from within CI docker-compose environment.
export ZKSYNC_HOME=$(pwd) && \
cd $ZKSYNC_HOME || exit 1 && \
docker-compose -f docker-compose-runner.yml exec -T zk $@
docker-compose -f docker-compose.ci.yml exec -T zk $@
File renamed without changes.
2 changes: 1 addition & 1 deletion docker-compose-runner.yml → docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
dev-ticker:
image: "rsksmart/rollup-dev-ticker:1.1.2-beta"
env_file:
- ./etc/env/${ZKSYNC_ENV-dev}.env
- ./etc/env/${ZKSYNC_ENV-deploy}.env # default to deploy instead of dev.env, since dev.env is not versioned
- ./etc/env/docker.env
environment:
- ZKSYNC_HOME=/
Expand Down
2 changes: 1 addition & 1 deletion docker/rskj/node.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ rpc {
hosts = [
"localhost",
"127.0.0.1",
"rskj", # rskj is the service name in docker-compose-runner.ymlfor CI
"rskj", # rskj is the service name in docker-compose.ci.yml for CI
"host.docker.internal", # host.docker.internal localhost from container Windows and Mac
"172.17.0.1" # 172.17.0.1 localhost from container Linux
]
Expand Down

0 comments on commit 16b1216

Please sign in to comment.