mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1780 from ethereum/storebytecode
Push bytecode of all test contracts to remote repository.
This commit is contained in:
commit
fefb3fad6f
@ -44,6 +44,7 @@ env:
|
|||||||
- SOLC_INSTALL_DEPS_TRAVIS=On
|
- SOLC_INSTALL_DEPS_TRAVIS=On
|
||||||
- SOLC_RELEASE=On
|
- SOLC_RELEASE=On
|
||||||
- SOLC_TESTS=On
|
- SOLC_TESTS=On
|
||||||
|
- SOLC_STOREBYTECODE=Off
|
||||||
- SOLC_DOCKER=Off
|
- SOLC_DOCKER=Off
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
@ -61,6 +62,7 @@ matrix:
|
|||||||
compiler: gcc
|
compiler: gcc
|
||||||
env:
|
env:
|
||||||
- ZIP_SUFFIX=ubuntu-trusty
|
- ZIP_SUFFIX=ubuntu-trusty
|
||||||
|
- SOLC_STOREBYTECODE=On
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
@ -68,6 +70,7 @@ matrix:
|
|||||||
compiler: clang
|
compiler: clang
|
||||||
env:
|
env:
|
||||||
- ZIP_SUFFIX=ubuntu-trusty-clang
|
- ZIP_SUFFIX=ubuntu-trusty-clang
|
||||||
|
- SOLC_STOREBYTECODE=On
|
||||||
|
|
||||||
# Documentation target, which generates documentation using Phoenix / ReadTheDocs.
|
# Documentation target, which generates documentation using Phoenix / ReadTheDocs.
|
||||||
- os: linux
|
- os: linux
|
||||||
@ -113,6 +116,8 @@ matrix:
|
|||||||
- SOLC_INSTALL_DEPS_TRAVIS=Off
|
- SOLC_INSTALL_DEPS_TRAVIS=Off
|
||||||
- SOLC_RELEASE=Off
|
- SOLC_RELEASE=Off
|
||||||
- SOLC_TESTS=Off
|
- SOLC_TESTS=Off
|
||||||
|
- ZIP_SUFFIX=emscripten
|
||||||
|
- SOLC_STOREBYTECODE=On
|
||||||
|
|
||||||
# OS X Mavericks (10.9)
|
# OS X Mavericks (10.9)
|
||||||
# https://en.wikipedia.org/wiki/OS_X_Mavericks
|
# https://en.wikipedia.org/wiki/OS_X_Mavericks
|
||||||
@ -175,6 +180,7 @@ cache:
|
|||||||
install:
|
install:
|
||||||
- test $SOLC_INSTALL_DEPS_TRAVIS != On || (scripts/install_deps.sh)
|
- test $SOLC_INSTALL_DEPS_TRAVIS != On || (scripts/install_deps.sh)
|
||||||
- test "$TRAVIS_OS_NAME" != "linux" || (scripts/install_cmake.sh)
|
- test "$TRAVIS_OS_NAME" != "linux" || (scripts/install_cmake.sh)
|
||||||
|
- if [ "$TRAVIS_BRANCH" = release ]; then echo -n > prerelease.txt; else date -u +"nightly.%Y.%-m.%-d" > prerelease.txt; fi
|
||||||
- echo -n "$TRAVIS_COMMIT" > commit_hash.txt
|
- echo -n "$TRAVIS_COMMIT" > commit_hash.txt
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
@ -187,6 +193,7 @@ before_script:
|
|||||||
script:
|
script:
|
||||||
- test $SOLC_DOCS != On || (scripts/docs.sh)
|
- test $SOLC_DOCS != On || (scripts/docs.sh)
|
||||||
- test $SOLC_TESTS != On || (cd $TRAVIS_BUILD_DIR && scripts/tests.sh)
|
- test $SOLC_TESTS != On || (cd $TRAVIS_BUILD_DIR && scripts/tests.sh)
|
||||||
|
- test $SOLC_STOREBYTECODE != On || (cd $TRAVIS_BUILD_DIR && scripts/bytecodecompare/storebytecode.sh)
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
# This is the deploy target for the Emscripten build.
|
# This is the deploy target for the Emscripten build.
|
||||||
|
12
appveyor.yml
12
appveyor.yml
@ -34,6 +34,10 @@ branches:
|
|||||||
os: Visual Studio 2015
|
os: Visual Studio 2015
|
||||||
configuration:
|
configuration:
|
||||||
- RelWithDebInfo
|
- RelWithDebInfo
|
||||||
|
environment:
|
||||||
|
# This is used for pushing to solidity-test-bytecodes
|
||||||
|
priv_key:
|
||||||
|
secure: yYGwg4rhCdH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|
||||||
# NB: Appveyor cache is disabled, because it is proving very unreliable.
|
# NB: Appveyor cache is disabled, because it is proving very unreliable.
|
||||||
# We can re-enable it when we find a way to mitigate the unreliability
|
# We can re-enable it when we find a way to mitigate the unreliability
|
||||||
# issues. Have automated builds be reliable is the more important thing.
|
# issues. Have automated builds be reliable is the more important thing.
|
||||||
@ -43,7 +47,14 @@ configuration:
|
|||||||
#init:
|
#init:
|
||||||
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||||
install:
|
install:
|
||||||
|
- ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n"
|
||||||
|
- ps: $fileContent += $env:priv_key.Replace(' ', "`n")
|
||||||
|
- ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n"
|
||||||
|
- ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
|
- ps: $prerelease = "nightly."
|
||||||
|
- ps: $prerelease += Get-Date -format "yyyy.M.d"
|
||||||
|
- ps: Set-Content prerelease.txt $prerelease
|
||||||
- scripts/install_deps.bat
|
- scripts/install_deps.bat
|
||||||
- set ETHEREUM_DEPS_PATH=%APPVEYOR_BUILD_FOLDER%\deps\install
|
- set ETHEREUM_DEPS_PATH=%APPVEYOR_BUILD_FOLDER%\deps\install
|
||||||
before_build:
|
before_build:
|
||||||
@ -54,6 +65,7 @@ build_script:
|
|||||||
- msbuild solidity.sln /p:Configuration=%CONFIGURATION% /m:%NUMBER_OF_PROCESSORS% /v:minimal
|
- msbuild solidity.sln /p:Configuration=%CONFIGURATION% /m:%NUMBER_OF_PROCESSORS% /v:minimal
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
- cd %APPVEYOR_BUILD_FOLDER%
|
||||||
- scripts\release.bat %CONFIGURATION%
|
- scripts\release.bat %CONFIGURATION%
|
||||||
|
- scripts\bytecodecompare\storebytecode.bat %CONFIGURATION% %APPVEYOR_REPO_COMMIT%
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cd %APPVEYOR_BUILD_FOLDER%
|
- cd %APPVEYOR_BUILD_FOLDER%
|
||||||
|
@ -29,12 +29,6 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ "$OSTYPE" != "darwin"* ]]; then
|
if [[ "$OSTYPE" != "darwin"* ]]; then
|
||||||
if [ "$TRAVIS_BRANCH" = release ]
|
|
||||||
then
|
|
||||||
echo -n > prerelease.txt
|
|
||||||
else
|
|
||||||
date -u +"nightly.%Y.%-m.%-d" > prerelease.txt
|
|
||||||
fi
|
|
||||||
./scripts/travis-emscripten/install_deps.sh
|
./scripts/travis-emscripten/install_deps.sh
|
||||||
docker run -v $(pwd):/src trzeci/emscripten:sdk-tag-1.35.4-64bit ./scripts/travis-emscripten/build_emscripten.sh
|
docker run -v $(pwd):/src trzeci/emscripten:sdk-tag-1.35.4-64bit ./scripts/travis-emscripten/build_emscripten.sh
|
||||||
fi
|
fi
|
||||||
|
BIN
scripts/bytecodecompare/deploy_key.enc
Normal file
BIN
scripts/bytecodecompare/deploy_key.enc
Normal file
Binary file not shown.
24
scripts/bytecodecompare/prepare_report.py
Executable file
24
scripts/bytecodecompare/prepare_report.py
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
import subprocess
|
||||||
|
import json
|
||||||
|
|
||||||
|
solc = sys.argv[1]
|
||||||
|
report = open("report.txt", "w")
|
||||||
|
|
||||||
|
for optimize in [False, True]:
|
||||||
|
for f in sorted(glob.glob("*.sol")):
|
||||||
|
args = [solc, '--combined-json', 'bin,metadata', f]
|
||||||
|
if optimize:
|
||||||
|
args += ['--optimize']
|
||||||
|
proc = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
(out, err) = proc.communicate()
|
||||||
|
try:
|
||||||
|
result = json.loads(out.strip())
|
||||||
|
for contractName in sorted(result['contracts'].keys()):
|
||||||
|
report.write(contractName + ' ' + result['contracts'][contractName]['bin'] + '\n')
|
||||||
|
report.write(contractName + ' ' + result['contracts'][contractName]['metadata'] + '\n')
|
||||||
|
except:
|
||||||
|
report.write(f + ": ERROR\n")
|
41
scripts/bytecodecompare/storebytecode.bat
Normal file
41
scripts/bytecodecompare/storebytecode.bat
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
@ECHO OFF
|
||||||
|
|
||||||
|
REM ---------------------------------------------------------------------------
|
||||||
|
REM This file is part of solidity.
|
||||||
|
REM
|
||||||
|
REM solidity is free software: you can redistribute it and/or modify
|
||||||
|
REM it under the terms of the GNU General Public License as published by
|
||||||
|
REM the Free Software Foundation, either version 3 of the License, or
|
||||||
|
REM (at your option) any later version.
|
||||||
|
REM
|
||||||
|
REM solidity is distributed in the hope that it will be useful,
|
||||||
|
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
REM GNU General Public License for more details.
|
||||||
|
REM
|
||||||
|
REM You should have received a copy of the GNU General Public License
|
||||||
|
REM along with solidity. If not, see <http://www.gnu.org/licenses/>
|
||||||
|
REM
|
||||||
|
REM Copyright (c) 2017 solidity contributors.
|
||||||
|
REM ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
set CONFIGURATION=%1
|
||||||
|
set COMMIT=%2
|
||||||
|
|
||||||
|
mkdir bytecode
|
||||||
|
cd bytecode
|
||||||
|
..\scripts\isolate_tests.py ..\test\
|
||||||
|
..\scripts\bytecodecompare\prepare_report.py ..\build\solc\%CONFIGURATION%\solc.exe
|
||||||
|
|
||||||
|
git clone --depth 2 git@github.com:ethereum/solidity-test-bytecode.git
|
||||||
|
cd solidity-test-bytecode
|
||||||
|
git config user.name "travis"
|
||||||
|
git config user.email "chris@ethereum.org"
|
||||||
|
git clean -f -d -x
|
||||||
|
|
||||||
|
mkdir %COMMIT%
|
||||||
|
set REPORT=%COMMIT%/windows.txt
|
||||||
|
cp ../report.txt %REPORT%
|
||||||
|
git add %REPORT%
|
||||||
|
git commit -a -m "Added report."
|
||||||
|
git push origin
|
101
scripts/bytecodecompare/storebytecode.sh
Executable file
101
scripts/bytecodecompare/storebytecode.sh
Executable file
@ -0,0 +1,101 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Script used for cross-platform comparison as part of the travis automation.
|
||||||
|
# Splits all test source code into multiple files, generates bytecode and
|
||||||
|
# uploads the bytecode into github.com/ethereum/solidity-test-bytecode where
|
||||||
|
# another travis job is triggered to do the actual comparison.
|
||||||
|
#
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# This file is part of solidity.
|
||||||
|
#
|
||||||
|
# solidity is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# solidity is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with solidity. If not, see <http://www.gnu.org/licenses/>
|
||||||
|
#
|
||||||
|
# (c) 2017 solidity contributors.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
REPO_ROOT="$(dirname "$0")"/../..
|
||||||
|
|
||||||
|
echo "Compiling all test contracts into bytecode..."
|
||||||
|
TMPDIR=$(mktemp -d)
|
||||||
|
(
|
||||||
|
cd "$REPO_ROOT"
|
||||||
|
REPO_ROOT=$(pwd) # make it absolute
|
||||||
|
cd "$TMPDIR"
|
||||||
|
|
||||||
|
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/
|
||||||
|
|
||||||
|
if [[ "$SOLC_EMSCRIPTEN" = "On" ]]
|
||||||
|
then
|
||||||
|
cp "$REPO_ROOT/build/solc/soljson.js" .
|
||||||
|
npm install solc
|
||||||
|
cat > solc <<EOF
|
||||||
|
#!/usr/bin/env node
|
||||||
|
var process = require('process')
|
||||||
|
var fs = require('fs')
|
||||||
|
|
||||||
|
var compiler = require('solc/wrapper.js')(require('./soljson.js'))
|
||||||
|
|
||||||
|
for (var optimize of [false, true])
|
||||||
|
{
|
||||||
|
for (var filename of process.argv.slice(2))
|
||||||
|
{
|
||||||
|
if (filename !== undefined)
|
||||||
|
{
|
||||||
|
var inputs = {}
|
||||||
|
inputs[filename] = fs.readFileSync(filename).toString()
|
||||||
|
var result = compiler.compile({sources: inputs}, optimize)
|
||||||
|
if (!('contracts' in result) || Object.keys(result['contracts']).length === 0)
|
||||||
|
{
|
||||||
|
console.log(filename + ': ERROR')
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (var contractName in result['contracts'])
|
||||||
|
{
|
||||||
|
console.log(contractName + ' ' + result['contracts'][contractName].bytecode)
|
||||||
|
console.log(contractName + ' ' + result['contracts'][contractName].metadata)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
chmod +x solc
|
||||||
|
./solc *.sol > report.txt
|
||||||
|
else
|
||||||
|
$REPO_ROOT/scripts/bytecodecompare/prepare_report.py $REPO_ROOT/build/solc/solc
|
||||||
|
fi
|
||||||
|
|
||||||
|
openssl aes-256-cbc -K $encrypted_60701c962b9c_key -iv $encrypted_60701c962b9c_iv -in "$REPO_ROOT"/scripts/bytecodecompare/deploy_key.enc -out deploy_key -d
|
||||||
|
chmod 600 deploy_key
|
||||||
|
eval `ssh-agent -s`
|
||||||
|
ssh-add deploy_key
|
||||||
|
|
||||||
|
git clone --depth 2 git@github.com:ethereum/solidity-test-bytecode.git
|
||||||
|
cd solidity-test-bytecode
|
||||||
|
git config user.name "travis"
|
||||||
|
git config user.email "chris@ethereum.org"
|
||||||
|
git clean -f -d -x
|
||||||
|
|
||||||
|
mkdir -p "$TRAVIS_COMMIT"
|
||||||
|
REPORT="$TRAVIS_COMMIT/$ZIP_SUFFIX.txt"
|
||||||
|
cp ../report.txt "$REPORT"
|
||||||
|
git add "$REPORT"
|
||||||
|
git commit -a -m "Added report $REPORT"
|
||||||
|
git push origin
|
||||||
|
)
|
||||||
|
rm -rf "$TMPDIR"
|
@ -15,7 +15,7 @@ REPO_ROOT="$(dirname "$0")"/..
|
|||||||
then
|
then
|
||||||
versionstring="$version"
|
versionstring="$version"
|
||||||
else
|
else
|
||||||
versionstring="$version-develop-$commitdate-$commithash"
|
versionstring="$version-nightly-$commitdate-$commithash"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TEMPDIR=$(mktemp -d)
|
TEMPDIR=$(mktemp -d)
|
||||||
|
@ -8,10 +8,12 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
import os
|
||||||
|
import hashlib
|
||||||
|
from os.path import join
|
||||||
|
|
||||||
def extract_cases(path):
|
def extract_cases(path):
|
||||||
lines = open(path).read().splitlines()
|
lines = open(path, 'rb').read().splitlines()
|
||||||
|
|
||||||
inside = False
|
inside = False
|
||||||
delimiter = ''
|
delimiter = ''
|
||||||
@ -33,16 +35,14 @@ def extract_cases(path):
|
|||||||
return tests
|
return tests
|
||||||
|
|
||||||
|
|
||||||
def write_cases(tests, start=0):
|
def write_cases(tests):
|
||||||
for i, test in enumerate(tests, start=start):
|
for test in tests:
|
||||||
open('test%d.sol' % i, 'w').write(test)
|
open('test_%s.sol' % hashlib.sha256(test).hexdigest(), 'wb').write(test)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
files = sys.argv[1:]
|
path = sys.argv[1]
|
||||||
|
|
||||||
i = 0
|
for root, dir, files in os.walk(path):
|
||||||
for path in files:
|
for f in files:
|
||||||
cases = extract_cases(path)
|
cases = extract_cases(join(root, f))
|
||||||
write_cases(cases, start=i)
|
write_cases(cases)
|
||||||
i += len(cases)
|
|
||||||
|
@ -73,7 +73,7 @@ TMPDIR=$(mktemp -d)
|
|||||||
cd "$REPO_ROOT"
|
cd "$REPO_ROOT"
|
||||||
REPO_ROOT=$(pwd) # make it absolute
|
REPO_ROOT=$(pwd) # make it absolute
|
||||||
cd "$TMPDIR"
|
cd "$TMPDIR"
|
||||||
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/contracts/* "$REPO_ROOT"/test/libsolidity/*EndToEnd*
|
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/
|
||||||
for f in *.sol
|
for f in *.sol
|
||||||
do
|
do
|
||||||
"$REPO_ROOT"/build/test/solfuzzer < "$f"
|
"$REPO_ROOT"/build/test/solfuzzer < "$f"
|
||||||
|
Loading…
Reference in New Issue
Block a user