Commit 5d0a3af6 authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

ci: Dump devnet logs on error, disable DLC (#4558)

Failed devnet jobs will now dump op-node, op-geth, batcher, proposer, and l1 logs in distinct steps in order to make debugging easier. Also disables CCI's Docker Layer Caching, which was introducing issues. The cache sometimes gets stale, leading to situations where the tested software doesn't match the source being pulled.
parent 42afadf3
...@@ -548,7 +548,6 @@ jobs: ...@@ -548,7 +548,6 @@ jobs:
devnet: devnet:
machine: machine:
image: ubuntu-2204:2022.10.2 image: ubuntu-2204:2022.10.2
docker_layer_caching: true
parameters: parameters:
deploy: deploy:
description: Deploy contracts description: Deploy contracts
...@@ -595,16 +594,41 @@ jobs: ...@@ -595,16 +594,41 @@ jobs:
working_directory: packages/contracts-bedrock working_directory: packages/contracts-bedrock
- run: - run:
name: Deposit ERC20 through the bridge name: Deposit ERC20 through the bridge
command: timeout 5m npx hardhat deposit-erc20 --network devnetL1 --l1-contracts-json-path ../../.devnet/sdk-addresses.json command: timeout 8m npx hardhat deposit-erc20 --network devnetL1 --l1-contracts-json-path ../../.devnet/sdk-addresses.json
working_directory: packages/sdk working_directory: packages/sdk
- run: - run:
name: Deposit ETH through the bridge name: Deposit ETH through the bridge
command: timeout 5m npx hardhat deposit-eth --network devnetL1 --l1-contracts-json-path ../../.devnet/sdk-addresses.json command: timeout 8m npx hardhat deposit-eth --network devnetL1 --l1-contracts-json-path ../../.devnet/sdk-addresses.json
working_directory: packages/sdk working_directory: packages/sdk
- run: - run:
name: Check the status name: Check the status
command: npx hardhat check-op-node command: npx hardhat check-op-node
working_directory: packages/contracts-bedrock working_directory: packages/contracts-bedrock
- run:
name: Dump op-node logs
command: |
docker logs ops-bedrock-op-node-1 || echo "No logs."
when: on_fail
- run:
name: Dump op-geth logs
command: |
docker logs ops-bedrock-l2-1 || echo "No logs."
when: on_fail
- run:
name: Dump l1 logs
command: |
docker logs ops-bedrock-l1-1 || echo "No logs."
when: on_fail
- run:
name: Dump op-batcher logs
command: |
docker logs ops-bedrock-op-batcher-1 || echo "No logs."
when: on_fail
- run:
name: Dump op-proposer logs
command: |
docker logs ops-bedrock-op-proposer-1 || echo "No logs."
when: on_fail
- when: - when:
condition: condition:
and: and:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment