Commit 733a354c authored by Mark Tyneway's avatar Mark Tyneway

contracts-bedrock: log issues in ci

parent 8677175c
...@@ -1115,6 +1115,18 @@ jobs: ...@@ -1115,6 +1115,18 @@ jobs:
command: | command: |
docker logs ops-bedrock-op-proposer-1 || echo "No logs." docker logs ops-bedrock-op-proposer-1 || echo "No logs."
when: on_fail when: on_fail
- run:
name: Log deployment artifact
command: |
cat broadcast/Deploy.s.sol/900/run-latest.json || echo "No deployment file found"
when: on_fail
working_directory: packages/contracts-bedrock
- run:
name: Log artifacts directory
command: |
ls -R forge-artifacts || echo "No forge artifacts found"
when: on_fail
working_directory: packages/contracts-bedrock
- when: - when:
condition: condition:
and: and:
......
...@@ -104,7 +104,7 @@ abstract contract Deployer is Script { ...@@ -104,7 +104,7 @@ abstract contract Deployer is Script {
string memory deployTx = _getDeployTransactionByContractAddress(addr); string memory deployTx = _getDeployTransactionByContractAddress(addr);
string memory contractName = _getContractNameFromDeployTransaction(deployTx); string memory contractName = _getContractNameFromDeployTransaction(deployTx);
console.log("Syncing %s: %s", deploymentName, contractName); console.log("Syncing deployment %s: contract %s", deploymentName, contractName);
string memory fqn = getFullyQualifiedName(contractName); string memory fqn = getFullyQualifiedName(contractName);
string[] memory args = getDeployTransactionConstructorArguments(deployTx); string[] memory args = getDeployTransactionConstructorArguments(deployTx);
...@@ -117,6 +117,7 @@ abstract contract Deployer is Script { ...@@ -117,6 +117,7 @@ abstract contract Deployer is Script {
uint256 numDeployments = 0; uint256 numDeployments = 0;
try vm.readFile(artifactPath) returns (string memory res) { try vm.readFile(artifactPath) returns (string memory res) {
numDeployments = stdJson.readUint(string(res), "$.numDeployments"); numDeployments = stdJson.readUint(string(res), "$.numDeployments");
numDeployments++;
vm.removeFile(artifactPath); vm.removeFile(artifactPath);
} catch {} } catch {}
......
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