Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit 9be8910

Browse files
authored
Merge pull request #2967 from EOSIO/slim
Merge slim into master
2 parents 716e752 + b6f0842 commit 9be8910

File tree

282 files changed

+19745
-16293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+19745
-16293
lines changed

.buildkite/coverage.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
steps:
2+
- command: |
3+
echo "--- :hammer: Building" && \
4+
/usr/bin/cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++-4.0 -DCMAKE_C_COMPILER=clang-4.0 -DWASM_ROOT=/root/opt/wasm -DOPENSSL_ROOT_DIR=/usr/include/openssl -DBUILD_MONGO_DB_PLUGIN=true -DENABLE_COVERAGE_TESTING=true -DBUILD_DOXYGEN=false && \
5+
/usr/bin/ninja
6+
echo "--- :spiral_note_pad: Generating Code Coverage Report" && \
7+
/usr/bin/ninja EOS_ut_coverage && \
8+
echo "--- :arrow_up: Publishing Code Coverage Report" && \
9+
buildkite-agent artifact upload "EOS_ut_coverage/**/*" s3://eosio-coverage/$BUILDKITE_JOB_ID && \
10+
cp /config/.coveralls.yml . && \
11+
/usr/local/bin/coveralls-lcov EOS_ut_coverage_filtered.info && \
12+
echo "+++ View Report" && \
13+
printf "\033]1339;url=https://eosio-coverage.s3-us-west-2.amazonaws.com/$BUILDKITE_JOB_ID/EOS_ut_coverage/index.html;content=View Full Coverage Report\a\n"
14+
label: ":spiral_note_pad: Generate Report"
15+
agents:
16+
- "role=linux-coverage"
17+
plugins:
18+
docker#v1.1.1:
19+
image: "eosio/ci:ubuntu18"
20+
workdir: /data/job
21+
mounts:
22+
- /etc/buildkite-agent/config:/config
23+
environment:
24+
- BOOST_ROOT=/root/opt/boost_1_66_0
25+
- OPENSSL_ROOT_DIR=/usr/include/openssl
26+
- WASM_ROOT=/root/opt/wasm
27+
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/opt/wasm/bin
28+
- CI=true
29+
timeout: 30

.buildkite/pipeline.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ steps:
2525
docker#v1.1.1:
2626
image: "eosio/ci:ubuntu"
2727
workdir: /data/job
28+
timeout: 30
29+
30+
- command: |
31+
echo "+++ :hammer: Building" && \
32+
echo 1 | ./eosio_build.sh && \
33+
echo "--- :compression: Compressing build directory" && \
34+
tar -pczf build.tar.gz build/
35+
label: ":ubuntu: 18.04 Build"
36+
agents:
37+
- "role=linux-builder"
38+
artifact_paths: "build.tar.gz"
39+
plugins:
40+
docker#v1.1.1:
41+
image: "eosio/ci:ubuntu18"
42+
workdir: /data/job
43+
timeout: 30
2844
2945
- command: |
3046
echo "+++ :hammer: Building" && \
@@ -39,6 +55,7 @@ steps:
3955
docker#v1.1.1:
4056
image: "eosio/ci:fedora"
4157
workdir: /data/job
58+
timeout: 30
4259
4360
- command: |
4461
echo "+++ :hammer: Building" && \
@@ -53,6 +70,7 @@ steps:
5370
docker#v1.1.1:
5471
image: "eosio/ci:centos"
5572
workdir: /data/job
73+
timeout: 30
5674
5775
- command: |
5876
echo "+++ :hammer: Building" && \
@@ -67,6 +85,7 @@ steps:
6785
docker#v1.1.1:
6886
image: "eosio/ci:amazonlinux"
6987
workdir: /data/job
88+
timeout: 30
7089
7190
- wait
7291

@@ -112,6 +131,31 @@ steps:
112131
docker#v1.1.1:
113132
image: "eosio/ci:ubuntu"
114133
workdir: /data/job
134+
timeout: 30
135+
136+
- command: |
137+
echo "--- :arrow_down: Downloading build directory" && \
138+
buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: 18.04 Build" &&
139+
tar -zxf build.tar.gz && \
140+
echo "--- :m: Starting MongoDB" && \
141+
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
142+
echo "+++ :microscope: Running tests" && \
143+
cd /data/job/build && ctest --output-on-failure
144+
retry:
145+
automatic:
146+
limit: 1
147+
label: ":ubuntu: 18.04 Tests"
148+
agents:
149+
- "role=linux-tester"
150+
artifact_paths:
151+
- "mongod.log"
152+
- "build/genesis.json"
153+
- "build/config.ini"
154+
plugins:
155+
docker#v1.1.1:
156+
image: "eosio/ci:ubuntu18"
157+
workdir: /data/job
158+
timeout: 30
115159
116160
- command: |
117161
echo "--- :arrow_down: Downloading build directory" && \
@@ -135,6 +179,7 @@ steps:
135179
docker#v1.1.1:
136180
image: "eosio/ci:fedora"
137181
workdir: /data/job
182+
timeout: 30
138183
139184
- command: |
140185
echo "--- :arrow_down: Downloading build directory" && \
@@ -158,6 +203,7 @@ steps:
158203
docker#v1.1.1:
159204
image: "eosio/ci:centos"
160205
workdir: /data/job
206+
timeout: 30
161207
162208
- command: |
163209
echo "--- :arrow_down: Downloading build directory" && \
@@ -181,3 +227,4 @@ steps:
181227
docker#v1.1.1:
182228
image: "eosio/ci:amazonlinux"
183229
workdir: /data/job
230+
timeout: 30

.gitignore

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*.dot
1111
*.abi.hpp
1212
*.cmake
13+
*.ninja
1314
\#*
1415
\.#*
1516
CMakeCache.txt
@@ -29,6 +30,9 @@ libraries/egenesis/egenesis_full.cpp
2930
libraries/egenesis/embed_genesis
3031
libraries/types/type_generator
3132
libraries/types/types_test
33+
libraries/fc/test/crypto/test_cypher_suites
34+
libraries/testing/chain_tester
35+
3236

3337
libraries/wallet/Doxyfile
3438
libraries/wallet/api_documentation.cpp
@@ -39,24 +43,24 @@ libraries/wasm-jit/Source/Programs/Disassemble
3943
libraries/wasm-jit/Source/Programs/Test
4044
libraries/wasm-jit/Source/Programs/wavm
4145

42-
programs/cli_wallet/cli_wallet
46+
programs/cleos/cleos
4347
programs/js_operation_serializer/js_operation_serializer
44-
programs/witness_node/witness_node
4548
programs/data-dir
46-
programs/eos-walletd/eos-walletd
47-
programs/eosiod/eosiod
48-
programs/eosioc/eosioc
49-
programs/launcher/launcher
5049
programs/eosio-abigen/eosio-abigen
50+
programs/cleos/config.hpp
51+
programs/eosio-applesedemo/eosio-applesedemo
52+
programs/eosio-launcher/config.hpp
53+
programs/eosio-launcher/eosio-launcher
54+
programs/keosd/keosd
55+
programs/nodeos/config.hpp
56+
programs/nodeos/nodeos
5157

5258
scripts/tn_init.sh
5359

54-
tests/app_test
55-
tests/chain_bench
56-
tests/chain_test
57-
tests/intense_test
58-
tests/performance_test
59-
tests/tests/config.hpp
60+
tests/plugin_test
61+
tests/config.hpp
62+
unittests/config.hpp
63+
unittests/unit_test
6064

6165
doxygen
6266

@@ -65,10 +69,6 @@ witness_node_data_dir
6569

6670
*.wallet
6771

68-
programs/witness_node/object_database/*
69-
70-
object_database/*
71-
7272
*.pyc
7373
*.pyo
7474

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set( CMAKE_CXX_STANDARD 14 )
1818
set( CMAKE_CXX_EXTENSIONS ON )
1919
set( CXX_STANDARD_REQUIRED ON)
2020

21-
set(VERSION_MAJOR 3)
21+
set(VERSION_MAJOR 4)
2222
set(VERSION_MINOR 0)
2323
set(VERSION_PATCH 0)
2424

@@ -187,6 +187,7 @@ add_subdirectory( contracts )
187187
add_subdirectory( plugins )
188188
add_subdirectory( programs )
189189
add_subdirectory( scripts )
190+
add_subdirectory( unittests )
190191
add_subdirectory( tests )
191192
add_subdirectory( tools )
192193
add_subdirectory( debian )

CMakeModules/wasm.cmake

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,22 @@ macro(add_wast_executable)
151151

152152
add_custom_command(OUTPUT ${DESTINATION_FOLDER}/${target}.wast
153153
DEPENDS ${target}.s
154-
COMMAND $<TARGET_FILE:eosio-s2wasm> -o ${DESTINATION_FOLDER}/${target}.wast -s 8192 ${MAX_MEMORY_PARAM} ${target}.s
154+
COMMAND $<TARGET_FILE:eosio-s2wasm> -o ${DESTINATION_FOLDER}/${target}.wast -s 10240 ${MAX_MEMORY_PARAM} ${target}.s
155155
COMMENT "Generating WAST ${target}.wast"
156156
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
157157
VERBATIM
158158
)
159159
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${target}.wast)
160+
161+
add_custom_command(OUTPUT ${DESTINATION_FOLDER}/${target}.wasm
162+
DEPENDS ${target}.wast
163+
COMMAND $<TARGET_FILE:eosio-wast2wasm> ${DESTINATION_FOLDER}/${target}.wast ${DESTINATION_FOLDER}/${target}.wasm -n
164+
COMMENT "Generating WASM ${target}.wasm"
165+
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
166+
VERBATIM
167+
)
168+
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${target}.wasm)
169+
160170
STRING (REPLACE "." "_" TARGET_VARIABLE "${target}")
161171

162172
add_custom_command(OUTPUT ${DESTINATION_FOLDER}/${target}.wast.hpp
@@ -182,7 +192,7 @@ macro(add_wast_executable)
182192
else()
183193
endif()
184194

185-
add_custom_target(${target} ALL DEPENDS ${DESTINATION_FOLDER}/${target}.wast.hpp ${extra_target_dependency})
195+
add_custom_target(${target} ALL DEPENDS ${DESTINATION_FOLDER}/${target}.wast.hpp ${extra_target_dependency} ${DESTINATION_FOLDER}/${target}.wasm)
186196

187197
set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${DESTINATION_FOLDER}/${target}.wast.hpp)
188198

Docker/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ After `docker-compose up -d`, two services named `nodeosd` and `keosd` will be s
6161
You can run the `cleos` commands via a bash alias.
6262

6363
```bash
64-
alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -u http://nodeosd:8888' # For DAWN3.0, use '-H nodeosd' instead of '-u http://nodeosd:8888'
64+
alias cleos='docker-compose exec keosd /opt/eosio/bin/cleos -u http://nodeosd:8888'
6565
cleos get info
6666
cleos get account inita
6767
```
@@ -171,13 +171,13 @@ volumes:
171171

172172
*NOTE:* the default version is the latest, you can change it to what you want
173173

174-
run `docker pull eosio/eos:latest`
174+
run `docker pull eosio/eos:latest`
175175

176176
run `docker-compose up`
177177

178-
### Dawn3.0 Testnet
178+
### Dawn 4.0 Testnet
179179

180-
We can easliy set up a dawn3.0 local testnet using docker images. Just run the following commands:
180+
We can easily set up a Dawn 4.0 local testnet using docker images. Just run the following commands:
181181

182182
Note: if you want to use the mongo db plugin, you have to enable it in your `data-dir/config.ini` first.
183183

@@ -190,13 +190,13 @@ docker volume create --name=nodeos-data-volume
190190
docker volume create --name=keosd-data-volume
191191
docker volume create --name=mongo-data-volume
192192
# start containers
193-
docker-compose -f docker-compose-dawn3.0.yaml up -d
193+
docker-compose -f docker-compose-dawn4.0.yaml up -d
194194
# get chain info
195195
curl http://127.0.0.1:8888/v1/chain/get_info
196196
# get logs
197197
docker-compose logs nodeosd
198198
# stop containers
199-
docker-compose -f docker-compose-dawn3.0.yaml down
199+
docker-compose -f docker-compose-dawn4.0.yaml down
200200
```
201201

202202
The `blocks` data are stored under `--data-dir` by default, and the wallet files are stored under `--wallet-dir` by default, of course you can change these as you want.

0 commit comments

Comments
 (0)