ci: build test fails randomly
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- github-actions, node.js, solidity, typescript
- Lĩnh vực
- blockchain, ci-cd
Hướng nghiên cứu
Bắt đầu với bản build GitHub Actions đang thất bại và đường dẫn bộ nhớ đệm của trình biên dịch Hardhat được hiển thị trong log, sau đó so sánh phiên bản Hardhat của repository với các upstream issue được liên kết. Kiểm tra các lỗi SDK được báo cáo trong src/deployments/network/actions/bridge-to-l1.ts, src/deployments/network/deployment/contracts/load.ts và src/helpers/epoch.ts. Hoàn thành nghĩa là bản build đầy đủ chạy qua ổn định trong CI.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Build test fails randomly when ran on GitHub actions:
[@graphprotocol/contracts]: An unexpected error occurred:
[@graphprotocol/contracts]:
[@graphprotocol/contracts]: Error: spawn /home/runner/.cache/hardhat-nodejs/compilers-v2/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f EACCES
[@graphprotocol/contracts]: at Process.ChildProcess._handle.onexit (node:internal/child_process:284:19)
[@graphprotocol/contracts]: at onErrorNT (node:internal/child_process:477:16)
[@graphprotocol/contracts]: at processTicksAndRejections (node:internal/process/task_queues:82:21) {
[@graphprotocol/contracts]: errno: -13,
[@graphprotocol/contracts]: code: 'EACCES',
[@graphprotocol/contracts]: syscall: 'spawn /home/runner/.cache/hardhat-nodejs/compilers-v2/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f',
[@graphprotocol/contracts]: path: '/home/runner/.cache/hardhat-nodejs/compilers-v2/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f',
[@graphprotocol/contracts]: spawnargs: [ '--standard-json' ],
[@graphprotocol/contracts]: cmd: '/home/runner/.cache/hardhat-nodejs/compilers-v2/linux-amd64/solc-linux-amd64-v0.7.6+commit.7338295f --standard-json'
[@graphprotocol/contracts]: }
[@graphprotocol/contracts]: Process exited (exit code 1), completed in 8s 876ms
[@graphprotocol/sdk]: Process started
[@graphprotocol/sdk]:
[@graphprotocol/sdk]: > @graphprotocol/sdk@0.3.0 clean
[@graphprotocol/sdk]: > rm -rf build
[@graphprotocol/sdk]:
Error: [@graphprotocol/sdk]: src/deployments/network/actions/bridge-to-l1.ts(10,56): error TS2306: File '/home/runner/work/contracts/contracts/packages/contracts/index.d.ts' is not a module.
Error: [@graphprotocol/sdk]: src/deployments/network/actions/bridge-to-l1.ts(141,54): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string | TransactionReceipt'.
[@graphprotocol/sdk]: Type 'undefined' is not assignable to type 'string | TransactionReceipt'.
Error: [@graphprotocol/sdk]: src/deployments/network/deployment/contracts/load.ts(44,8): error TS2306: File '/home/runner/work/contracts/contracts/packages/contracts/index.d.ts' is not a module.
Error: [@graphprotocol/sdk]: src/helpers/epoch.ts(2,35): error TS2306: File '/home/runner/work/contracts/contracts/packages/contracts/index.d.ts' is not a module.
[@graphprotocol/sdk]: Process exited (exit code 1), completed in 2s 756ms
Done in 11s 639ms
Error: Process completed with exit code 1.
This is a known problem with hardhat:
- https://github.com/NomicFoundation/hardhat/issues/4490 (if this is the root cause, updating to latest hardhat could solve it)
- https://github.com/NomicFoundation/hardhat/issues/4491 (this is most likely the root cause)
- Ngôn ngữ chính
- Solidity
- Star
- 374
- Fork
- 176
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 4
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của graphprotocol/contracts
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
graphprotocol/contracts#1361 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
graphprotocol/contracts#1360 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
graphprotocol/contracts#1355 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
graphprotocol/contracts#1033 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
graphprotocol/contracts#985 ·
Tất cả issue của graphprotocol/contracts
Issue tương tự
-
blocklist removal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
MetaMask/eth-phishing-detect#296544 · 3 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
stellar/js-stellar-sdk#1750 ·
-
Stellar RPC settings: placeholder shows a non-working URL, and the field can't be left empty Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Uniswap/default-token-list#2589 ·
-
add-new-address Backend New Network
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
safe-global/safe-eth-py#2761 ·