Closed ulmentflam closed 1 year ago
This is an additional sample of a similar error that has been occurring in the action when installing mythx-cli leveraging py-solc-x
to install hardhat through Python, a similar re-run of the workflow was also able to fix this run.
npm ERR! npm ERR! Solidity 0.8.9 is not fully supported yet. You can still use Hardhat, but some features, like stack traces, might not work correctly.
npm ERR! npm ERR!
npm ERR! npm ERR! Learn more at https://hardhat.org/reference/solidity-support"
npm ERR! npm ERR!
npm ERR! npm ERR! Error HH503: Couldn't download compiler version 0.8.9. Checksum verification failed. Please check your connection.
npm ERR! npm ERR! For more info go to https://hardhat.org/HH503 or run Hardhat with --show-stack-traces
npm ERR! npm ERR! error Command failed with exit code 1.
npm ERR! npm ERR! npm ERR! code 1
npm ERR! npm ERR! npm ERR! path /home/runner/.npm/_cacache/tmp/git-cloneMPSkdY
npm ERR! npm ERR! npm ERR! command failed
npm ERR! npm ERR! npm ERR! command sh /tmp/prepare-26a68cad.sh
npm ERR! npm ERR!
npm ERR! npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! npm ERR! /home/runner/.npm/_logs/2023-06-26T20_48_21_178Z-debug-0.log
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /home/runner/.npm/_logs/2023-06-26T20_48_18_353Z-debug-0.log
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2023-06-26T20_47_47_423Z-debug-0.log
make: *** [Makefile:32: setup] Error 1
This github action runner can replicate the above behavior:
name: CI
on:
push:
branches: '*'
jobs:
analyzer:
defaults:
run:
working-directory: .
name: Mythx Analyzer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11.4
- name: Install Mythx
run: pip3 install mythx-cli
This:
Solidity 0.8.9 is not fully supported yet. You can still use Hardhat, but some features, like stack traces, might not work correctly.
Makes me think that you are using a quite old version of Hardhat. Can you upgrade to the latest version and see if that fixes your problem?
@fvictorio I'm bumping to 2.17.0 now to see if that fixes the issue.
I am facing a similar issue of the build getting failed on Github actions. I am trying to set up react-snap
for my react project.
This is the error logged
The process '/opt/hostedtoolcache/node/18.16.1/x64/bin/npm'
Things I have tried:
Any insights would be a lot helpful.
I get a similar issue when try to uses ArtiomTr/jest-coverage-report-action@v2 on a Github action.
Error: Error: The process '/opt/hostedtoolcache/node/18.16.1/x64/bin/npx' failed with exit code 1
@csgeeek @monterocjl can you give me a link to the failed runs?
Sure, here you go @fvictorio https://github.com/csgeeek/csgeeek.github.io/actions/runs/5567192020 Let me know if anymore details are required from my side.
@csgeeek but... that's not a Hardhat project? It seems like your personal website. Am I missing something here?
@csgeeek @monterocjl can you give me a link to the failed runs?
I resolved the issue. Just adding 'npm install npx' in the .yml file, before run ArtiomTr/jest-coverage-report-action@v2
Ok, I'm gonna close this issue because I'm pretty sure that most of the comments here are unrelated to Hardhat. If someone has a similar problem and is sure that it's Hardhat related and has reproduction steps, please open a new issue.
Version of Hardhat
2.16.1
What happened?
When running in the github actions docker container
ubuntu-latest
, hardhat will occasionally fail to compile solidity v0.8.9 duringnpm install
with the following error:If the action is run a second time, this error resolves. It is very strange that this issue is resolved with it is run again. It's hit or miss when this error appears. It could also be related to dependencies,
@0xsequence
and@openzepplin
are both installed with npm, but npm installs dependencies without issues elsewhere. I have also experienced the same issue with runningpy-solc-x
with the mythx-cli. This same error occurs occasionally at the same compile step for different dependencies.Minimal reproduction steps
The GitHub actions yaml to reproduce this is as follows:
A sample package.json is as follows:
Search terms
hardhat compile fails occasionally github actions npm install