-
Notifications
You must be signed in to change notification settings - Fork 3.9k
yarn build step of docker-compose build failing (exit code: 137) #658
Copy link
Copy link
Closed
Labels
C-bugCategory: bugsCategory: bugs
Description
Describe the bug
Something related to yarn build causes docker-compose build to fail
To Reproduce
Steps to reproduce the behavior:
- clone optimism repo
- follow readme up to "integration tests"
cdintoopsfolder, set env vars and trydocker-compose build
Expected behavior
Docker compose to build the images so I can run the containers locally
Terminal Output
(base) ➜ optimism git:(master) cd ops \
export COMPOSE_DOCKER_CLI_BUILD=1 \
export DOCKER_BUILDKIT=1 \
docker-compose build
Building builder
[+] Building 55.0s (28/30)
=> => transferring context: 199B 0.0s
=> [internal] load metadata for docker.io/library/alpine:latest 1.6s
=> [internal] load metadata for docker.io/library/node:14-buster-slim 1.6s
=> https://github.com/ethereum-optimism/solc-bin/raw/gh-pages/bin/soljson-v0.7.6.js 1.2s
=> [internal] load build context 3.6s
=> => transferring context: 81.94MB 3.5s
=> [downloader 1/3] FROM docker.io/library/alpine@sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145e7bddb55ccc04e13cf8f 0.0s
=> [node 1/2] FROM docker.io/library/node:14-buster-slim@sha256:f5ca34ff9a862fd26e803778b0c96638c2a20a3ca60fbf4ed959005aa8132290 0.0s
=> https://github.com/ethereum/solc-bin/raw/gh-pages/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f 1.2s
=> CACHED [downloader 2/3] ADD https://github.com/ethereum/solc-bin/raw/gh-pages/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f ./solc 0.0s
=> CACHED [downloader 3/3] ADD https://github.com/ethereum-optimism/solc-bin/raw/gh-pages/bin/soljson-v0.7.6.js ./ovm-solc 0.0s
=> CACHED [node 2/2] RUN apt-get update -y && apt-get install -y git 0.0s
=> CACHED [stage-3 1/9] WORKDIR /optimism 0.0s
=> CACHED [builder 2/10] COPY *.json yarn.lock ./ 0.0s
=> CACHED [builder 3/10] COPY packages/core-utils/package.json ./packages/core-utils/package.json 0.0s
=> CACHED [builder 4/10] COPY packages/hardhat-ovm/package.json ./packages/hardhat-ovm/package.json 0.0s
=> CACHED [builder 5/10] COPY packages/smock/package.json ./packages/smock/package.json 0.0s
[+] Building 55.2s (28/30)
=> [internal] load build definition from Dockerfile.monorepo 0.0ss
=> => transferring dockerfile: 2.70kB 0.0ss
=> [internal] load .dockerignore 0.0ss
=> => transferring context: 199B 0.0ss
=> [internal] load metadata for docker.io/library/alpine:latest 1.6ss
=> [internal] load metadata for docker.io/library/node:14-buster-slim 1.6ss
=> https://github.com/ethereum-optimism/solc-bin/raw/gh-pages/bin/soljson-v0.7.6.js 1.2ss
=> [internal] load build context 3.6ss
=> => transferring context: 81.94MB 3.5ss
=> [downloader 1/3] FROM docker.io/library/alpine@sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145e7bddb55ccc04e13cf8f 0.0ss
=> [node 1/2] FROM docker.io/library/node:14-buster-slim@sha256:f5ca34ff9a862fd26e803778b0c96638c2a20a3ca60fbf4ed959005aa8132290 0.0ss
=> https://github.com/ethereum/solc-bin/raw/gh-pages/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f 1.2s
=> CACHED [downloader 2/3] ADD https://github.com/ethereum/solc-bin/raw/gh-pages/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f ./solc 0.0s
=> CACHED [downloader 3/3] ADD https://github.com/ethereum-optimism/solc-bin/raw/gh-pages/bin/soljson-v0.7.6.js ./ovm-solc 0.0s
=> CACHED [node 2/2] RUN apt-get update -y && apt-get install -y git 0.0s
=> CACHED [stage-3 1/9] WORKDIR /optimism 0.0s
=> CACHED [builder 2/10] COPY *.json yarn.lock ./ 0.0s
=> CACHED [builder 3/10] COPY packages/core-utils/package.json ./packages/core-utils/package.json 0.0s
=> CACHED [builder 4/10] COPY packages/hardhat-ovm/package.json ./packages/hardhat-ovm/package.json 0.0[+] [+] Building 56.0[+] Building 88.6s (29/30)
=> [internal] load build definition from Dockerfile.monorepo 0.0si => => transferring dockerfile: 2.70kB 0.0s
=> [internal] load .dockerignore 0.0si => => transferring context: 199B 0.0s
=> [internal] load metadata for docker.io/library/alpine:latest 1.6so => [internal] load metadata for docker.io/library/node:14-buster-slim 1.6s
=> https://github.com/ethereum-optimism/solc-bin/raw/gh-pages/bin/soljson-v0.7.6.js 1.2so => [internal] load build context 3.6s
=> => transferring context: 81.94MB 3.5s1 => [downloader 1/3] FROM docker.io/library/alpine@sha256:69e70a79f2d41ab5d637de98c1e0b055206ba40a8145e7bddb55ccc04e13cf8f 0.0s
=> [node 1/2] FROM docker.io/library/node:14-buster-slim@sha256:f5ca34ff9a862fd26e803778b0c96638c2a20a3ca60fbf4ed959005aa8132290 0.0su => https://github.com/ethereum/solc-bin/raw/gh-pages/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f 1.2s
=> CACHED [downloader 2/3] ADD https://github.com/ethereum/solc-bin/raw/gh-pages/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f ./solc 0.0sl => CACHED [downloader 3/3] ADD https://github.com/ethereum-optimism/solc-bin/raw/gh-pages/bin/soljson-v0.7.6.js ./ovm-solc 0.0s
=> CACHED [node 2/2] RUN apt-get update -y && apt-get install -y git 0.0se => CACHED [stage-3 1/9] WORKDIR /optimism 0.0s
=> CACHED [builder 2/10] COPY *.json yarn.lock ./ 0.0sd => CACHED [builder 3/10] COPY packages/core-utils/package.json ./packages/core-utils/package.json 0.0s
=> CACHED [builder 4/10] COPY packages/hardhat-ovm/package.json ./packages/hardhat-ovm/package.json 0.0sd => CACHED [builder 5/10] COPY packages/smock/package.json ./packages/smock/package.json 0.0s
=> CACHED [builder 6/10] COPY packages/contracts/package.json ./packages/contracts/package.json 0.0sd => CACHED [builder 7/10] COPY packages/data-transport-layer/package.json ./packages/data-transport-layer/package.json 0.0s
=> CACHED [builder 8/10] COPY packages/batch-submitter/package.json ./packages/batch-submitter/package.json 0.0sd => CACHED [builder 9/10] COPY packages/message-relayer/package.json ./packages/message-relayer/package.json 0.0s
=> CACHED [builder 10/10] RUN yarn install --frozen-lockfile 0.0se => CACHED [stage-3 2/9] COPY --from=builder /optimism/node_modules ./node_modules 0.0s
=> CACHED [stage-3 3/9] COPY --from=builder /optimism/packages ./packages 0.0se => CACHED [stage-3 4/9] COPY *.json yarn.lock ./ 0.0s
=> [stage-3 5/9] COPY ./packages ./packages 2.8s] => [stage-3 6/9] COPY --from=downloader solc /root/.cache/hardhat-nodejs/compilers/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f 0.1s
=> [stage-3 7/9] COPY --from=downloader ovm-solc /root/.cache/hardhat-nodejs/compilers/ovm/0.7.6.js 0.1s] => ERROR [stage-3 8/9] RUN yarn build 80.0s
------ > [stage-3 8/9] RUN yarn build:
#29 0.869 yarn run v1.22.5 #29 1.044 $ yarn lerna run build
#29 1.492 $ /optimism/node_modules/.bin/lerna run build #29 2.755 lerna notice cli v4.0.0
#29 2.767 lerna info versioning independent
#29 2.907 lerna info Executing command in 7 packages: "yarn run build"
#29 7.793 lerna info run Ran npm script 'build' in '@eth-optimism/hardhat-ovm' in 4.9s:
#29 7.794 $ tsc -p tsconfig.build.json
#29 8.299 lerna info run Ran npm script 'build' in '@eth-optimism/core-utils' in 5.4s:
#29 8.299 $ tsc -p tsconfig.build.json
#29 15.04 lerna info run Ran npm script 'build' in '@eth-optimism/smock' in 6.7s:
#29 15.04 $ tsc -p tsconfig.build.json
#29 79.51 lerna ERR! yarn run build exited 137 in '@eth-optimism/contracts'
#29 79.52 lerna ERR! yarn run build stdout:
#29 79.52 $ ./scripts/build.sh
#29 79.52 $ hardhat compile --network optimism
#29 79.52 $ hardhat compile --show-stack-traces
#29 79.52 $ tsc -p ./tsconfig.build.json
#29 79.52 Compiling 97 files with 0.7.6
#29 79.52 Compiling 97 files with 0.7.6
#29 79.52 Downloading OVM compiler version 0.7.6-allow_kall_2
#29 79.52 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
#29 79.52 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
#29 79.52 Compilation finished successfully
#29 79.52 Creating Typechain artifacts in directory dist/types for target ethers-v5
#29 79.52 Successfully generated Typechain artifacts!
#29 79.52 lerna ERR! yarn run build stderr:
#29 79.52 Killed
#29 79.52 error Command failed with exit code 137.
#29 79.52 error Command failed with exit code 137.
#29 79.52 @openzeppelin/contracts/access/Ownable.sol:26:5: Warning: Visibility for constructor is ignored. If you want the contract to be non-deployable, making it "abstract" is sufficient.
#29 79.52 constructor () internal {
#29 79.52 ^ (Relevant source part starts here and spans across multiple lines).
#29 79.52
#29 79.52 @openzeppelin/contracts/utils/ReentrancyGuard.sol:38:5: Warning: Visibility for constructor is ignored. If you want the contract to be non-deployable, making it "abstract" is sufficient.
#29 79.52 constructor () internal {
#29 79.52 ^ (Relevant source part starts here and spans across multiple lines).
#29 79.52
#29 79.52 contracts/optimistic-ethereum/OVM/bridge/tokens/OVM_L1ETHGateway.sol:41:5: Warning: Visibility for constructor is ignored. If you want the contract to be non-deployable, making it "abstract" is sufficient.
#29 79.52 constructor()
#29 79.52 ^ (Relevant source part starts here and spans across multiple lines).
#29 79.52
#29 79.52 contracts/optimistic-ethereum/OVM/execution/OVM_ExecutionManager.sol:1068:9: Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
#29 79.52 uint _gasLimit,
#29 79.52 ^------------^
#29 79.52
#29 79.52 contracts/optimistic-ethereum/libraries/codec/Lib_OVMCodec.sol:160:5: Warning: Function state mutability can be restricted to pure
#29 79.52 function decompressEIP155Transaction(
#29 79.52 ^ (Relevant source part starts here and spans across multiple lines).
#29 79.52
#29 79.52 contracts/optimistic-ethereum/OVM/predeploys/OVM_DeployerWhitelist.sol:131:5: Warning: Function state mutability can be restricted to view
#29 79.52 function isDeployerAllowed(
#29 79.52 ^ (Relevant source part starts here and spans across multiple lines).
#29 79.52
#29 79.52 contracts/optimistic-ethereum/OVM/execution/OVM_ExecutionManager.sol:357:5: Warning: Function state mutability can be restricted to view
#29 79.52 function ovmREVERT(
#29 79.52 ^ (Relevant source part starts here and spans across multiple lines).
#29 79.52
#29 79.52 contracts/optimistic-ethereum/OVM/execution/OVM_ExecutionManager.sol:1551:5: Warning: Function state mutability can be restricted to view
#29 79.52 function _revertWithFlag(
#29 79.52 ^ (Relevant source part starts here and spans across multiple lines).
#29 79.52
#29 79.52 lerna ERR! yarn run build exited 137 in '@eth-optimism/contracts'
#29 79.67 error Command failed with exit code 137.
#29 79.67 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
#29 79.82 error Command failed with exit code 137.
#29 79.82 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
------
executor failed running [/bin/sh -c yarn build]: exit code: 137
ERROR: Service 'builder' failed to build
System Specs:
- OS: Mac OS Big Sur
- commit hash:
2d63f2f94ab2ba3ec3ee8bc038a11260a09f240c
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugsCategory: bugs