ci: build test fails randomly
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- github-actions, node.js, solidity, typescript
- 領域
- blockchain, ci-cd
調査の方向性
まず、失敗している GitHub Actions の build と、ログに表示されている Hardhat コンパイラのキャッシュパスを確認し、その後、リポジトリの Hardhat のバージョンをリンクされている upstream issue と比較します。src/deployments/network/actions/bridge-to-l1.ts、src/deployments/network/deployment/contracts/load.ts、src/helpers/epoch.ts で報告されている SDK エラーを確認します。完了とは、完全な build が 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/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)
- 主要言語
- Solidity
- スター
- 374
- フォーク
- 176
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
blocklist removal
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MetaMask/eth-phishing-detect#296544 · コメント 3 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
stellar/js-stellar-sdk#1750 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Uniswap/default-token-list#2589 ·
-
add-new-address Backend New Network
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
safe-global/safe-eth-py#2761 ·