ci: build test fails randomly
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- github-actions, node.js, solidity, typescript
- 领域
- blockchain, ci-cd
调研方向
先从失败的 GitHub Actions 构建以及日志中显示的 Hardhat 编译器缓存路径入手,然后将仓库的 Hardhat 版本与链接的上游 issue 进行比较。检查 src/deployments/network/actions/bridge-to-l1.ts、src/deployments/network/deployment/contracts/load.ts 和 src/helpers/epoch.ts 中报告的 SDK 错误。完成的标准是完整构建能够在 CI 中可靠通过。
由索引模型根据 Issue 内容生成。
描述
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/[email protected] 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)
- 主要语言
- Solidity
- 星标
- 373
- 派生
- 175
- 平均合并
- 17 小时 29 分钟
- 30 天内合并 PR
- 3
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graphprotocol/contracts 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
graphprotocol/contracts#1361 ·
-
难度 4/5 3-5 天 新手友好度 45/100
graphprotocol/contracts#1360 ·
-
难度 4/5 3-5 天 新手友好度 35/100
graphprotocol/contracts#1355 ·
-
难度 4/5 3-5 天 新手友好度 35/100
graphprotocol/contracts#1033 ·
-
难度 3/5 1-2 天 新手友好度 30/100
graphprotocol/contracts#985 ·
查看 graphprotocol/contracts 的全部 Issue
相似的 Issue
-
resources: add a regression test confirming admin mint still works after the #16 SAC handoff可能已有人在做 @Daniexie 于 1 天前认领。 未关闭contracts good first issue
难度 2/5 1-3 小时 新手友好度 72/100
OlaGreat/starbound-realms#137 · 1 条评论 ·
-
enhancement good first issue module:scaffold trivial
难度 2/5 1-3 小时 新手友好度 74/100
soroban-forge-labs/soroban-forge#606 ·
维护者通常 1 天内回复
-
bug difficulty: easy priority: low sdk testing
难度 2/5 1-3 小时 新手友好度 66/100
trustflow-protocol/trustflow-sdk#505 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
complexity: medium contracts enhancement
难度 2/5 1-3 小时 新手友好度 78/100
milepost-labs/milepost#469 ·
维护者通常 1 天内回复