git.delta.rocks / unique-network / refs/commits / bb78c7a27ce8

difftreelog

Clean up workflow. Add docker builder cleanup.

Alexander Aksenov2022-08-30parent: #6c48590.patch.diff
in: master

2 files changed

modified.docker/Dockerfile-parachain-node-onlydiffbeforeafterboth
27RUN mkdir /unique_parachain27RUN mkdir /unique_parachain
28WORKDIR /unique_parachain28WORKDIR /unique_parachain
2929
30
30# ===== BUILD current version ======31# ===== BUILD current version ======
31FROM rust-builder as builder-unique-current32FROM rust-builder as builder-unique-current
3233
4546
46ARG PROFILE=release47ARG PROFILE=release
47ARG FEATURE=48ARG FEATURE=
48ARG BRANCH=
49ARG REPO_URL=
5049
51COPY . /unique_parachain50COPY . /unique_parachain
52WORKDIR /unique_parachain51WORKDIR /unique_parachain
modified.github/workflows/nodes-only-update.ymldiffbeforeafterboth
142 node-version: 16142 node-version: 16
143143
144 - name: Build the stack144 - name: Build the stack
145 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" up -d --build --force-recreate --timeout 300145 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" up -d --build --remove-orphans --force-recreate --timeout 300
146146
147 # 🚀 POLKADOT LAUNCH COMPLETE 🚀147 # 🚀 POLKADOT LAUNCH COMPLETE 🚀
148 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.148 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.
191 shell: bash191 shell: bash
192192
193 - name: Run tests before Node Parachain upgrade193 - name: Run tests before Node Parachain upgrade
194 working-directory: tests
194 run: |195 run: |
195 cd tests196 yarn install
196 yarn install197 yarn add mochawesome
197 yarn add mochawesome198 echo "Ready to start tests"
198 echo "Ready to start tests"199 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
199 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
200 env:200 env:
201 RPC_URL: http://127.0.0.1:9933/201 RPC_URL: http://127.0.0.1:9933/
202202
211 fail-on-error: 'false'211 fail-on-error: 'false'
212212
213 - name: Send SIGUSR1 to polkadotlaunch process213 - name: Send SIGUSR1 to polkadotlaunch process
214 if: success()214 if: success() || failure()
215 run: |215 run: |
216 #Get PID of polkadot-launch216 #Get PID of polkadot-launch
217 PID=$(docker exec node-parachain pidof 'polkadot-launch')217 PID=$(docker exec node-parachain pidof 'polkadot-launch')
266 shell: bash266 shell: bash
267267
268 - name: Run tests after Node Parachain upgrade268 - name: Run tests after Node Parachain upgrade
269 working-directory: tests
269 run: |270 run: |
270 cd tests271 yarn install
271 yarn install272 yarn add mochawesome
272 yarn add mochawesome273 echo "Ready to start tests"
273 echo "Ready to start tests"274 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
274 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
275 env:275 env:
276 RPC_URL: http://127.0.0.1:9933/276 RPC_URL: http://127.0.0.1:9933/
277277
288288
289 - name: Stop running containers289 - name: Stop running containers
290 if: always() # run this step always290 if: always() # run this step always
291 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down291 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down --volumes
292292
293 #docker-compose rm -f
294 - name: Remove Docker build artefacts293 - name: Remove builder cache
295 if: always() # run this step always294 if: always() # run this step always
296 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" rm -f295 run: |
296 docker builder prune -f
297 docker system prune -f
298
299 - name: Clean Workspace
300 if: always()
301 uses: AutoModality/action-clean@v1.1.0
297302