Merge pull request #13850 from ethereum/zeppelin-ci-sandbox

Silence version check and up node heap limit for Zeppelin tests
This commit is contained in:
Nikola Matić 2023-01-05 11:42:42 -05:00 committed by GitHub
commit 090a9d0937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -345,7 +345,7 @@ function truffle_verify_compiler_version
local full_solc_version="$2"
printLog "Verify that the correct version (${solc_version}/${full_solc_version}) of the compiler was used to compile the contracts..."
grep "$full_solc_version" --with-filename --recursive build/contracts || fail "Wrong compiler version detected."
grep "$full_solc_version" --recursive --quiet build/contracts || fail "Wrong compiler version detected."
}
function hardhat_verify_compiler_version
@ -357,8 +357,8 @@ function hardhat_verify_compiler_version
local build_info_files
build_info_files=$(find . -path '*artifacts/build-info/*.json')
for build_info_file in $build_info_files; do
grep '"solcVersion":[[:blank:]]*"'"${solc_version}"'"' --with-filename "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}."
grep '"solcLongVersion":[[:blank:]]*"'"${full_solc_version}"'"' --with-filename "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}."
grep '"solcVersion":[[:blank:]]*"'"${solc_version}"'"' --quiet "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}."
grep '"solcLongVersion":[[:blank:]]*"'"${full_solc_version}"'"' --quiet "$build_info_file" || fail "Wrong compiler version detected in ${build_info_file}."
done
}

View File

@ -23,6 +23,8 @@
# shellcheck disable=SC2016
set -e
# Temporary(?) fix to up the heap limit for node in order to prevent 'out of heap errors'
export NODE_OPTIONS="--max-old-space-size=4096"
source scripts/common.sh
source test/externalTests/common.sh