Skip to content

Commit ca897bb

Browse files
authored
Merge pull request #1164 from carver/lightchain-integration-test
Lightchain integration test
2 parents ba2806e + 915ebd8 commit ca897bb

File tree

16 files changed

+307
-37
lines changed

16 files changed

+307
-37
lines changed

.circleci/config.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,48 @@ common: &common
3939
- ./eggs
4040
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
4141

42+
geth_steps: &geth_steps
43+
working_directory: ~/repo
44+
steps:
45+
- checkout
46+
- restore_cache:
47+
keys:
48+
- cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
49+
- run:
50+
name: install dependencies
51+
command: pip install --user tox
52+
- run:
53+
name: build geth if missing
54+
command: |
55+
mkdir -p $HOME/.ethash
56+
pip install --user py-geth>=1.10.1
57+
export GOROOT=/usr/local/go
58+
export GETH_BINARY="$HOME/.py-geth/geth-$GETH_VERSION/bin/geth"
59+
if [ ! -e "$GETH_BINARY" ]; then
60+
curl -O https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz
61+
tar xvf go1.7.4.linux-amd64.tar.gz
62+
sudo chown -R root:root ./go
63+
sudo mv go /usr/local
64+
sudo ln -s /usr/local/go/bin/go /usr/local/bin/go
65+
sudo apt-get update;
66+
sudo apt-get install -y build-essential;
67+
python -m geth.install $GETH_VERSION;
68+
fi
69+
sudo ln -s /home/circleci/.py-geth/geth-$GETH_VERSION/bin/geth /usr/local/bin/geth
70+
geth version
71+
- run:
72+
name: run tox
73+
command: ~/.local/bin/tox -r
74+
- save_cache:
75+
paths:
76+
- .tox
77+
- ~/.cache/pip
78+
- ~/.local
79+
- ./eggs
80+
- ~/.ethash
81+
- ~/.py-geth
82+
key: cache-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}-{{ checksum "tox.ini" }}
83+
4284
jobs:
4385
lint-py35:
4486
<<: *common
@@ -223,6 +265,14 @@ jobs:
223265
- image: circleci/python:3.6
224266
environment:
225267
TOXENV: py36-trinity-integration
268+
py36-trinity-lightchain_integration:
269+
<<: *common
270+
<<: *geth_steps
271+
docker:
272+
- image: circleci/python:3.6
273+
environment:
274+
TOXENV: py36-lightchain_integration
275+
GETH_VERSION: v1.8.1
226276
py36-transactions:
227277
<<: *common
228278
docker:
@@ -294,6 +344,7 @@ workflows:
294344
- py36-core
295345
- py36-trinity
296346
- py36-trinity-integration
347+
- py36-trinity-lightchain_integration
297348
- py36-transactions
298349
- py36-p2p
299350
- py36-database

tests/trinity/integration/fixtures/geth_lightchain_datadir/geth/LOCK

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MANIFEST-000023

tests/trinity/integration/fixtures/geth_lightchain_datadir/geth/chaindata/LOCK

Whitespace-only changes.
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
=============== Aug 8, 2018 (PDT) ===============
2+
16:04:27.789101 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
3+
16:04:27.820465 db@open opening
4+
16:04:27.822697 version@stat F·[] S·0B[] Sc·[]
5+
16:04:27.826896 db@janitor F·2 G·0
6+
16:04:27.826910 db@open done T·6.431374ms
7+
16:05:18.141039 db@close closing
8+
16:05:18.141093 db@close done T·51.582µs
9+
=============== Aug 8, 2018 (PDT) ===============
10+
16:13:29.909819 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
11+
16:13:29.909895 version@stat F·[] S·0B[] Sc·[]
12+
16:13:29.909901 db@open opening
13+
16:13:29.909926 journal@recovery F·1
14+
16:13:29.912527 journal@recovery recovering @1
15+
16:13:29.919758 memdb@flush created L0@2 N·1579 S·112KiB "\x00\x15\xb7..\xd5=),v354":"\xff\x977..i\x90q,v398"
16+
16:13:29.922081 version@stat F·[1] S·112KiB[112KiB] Sc·[0.25]
17+
16:13:29.930067 db@janitor F·3 G·0
18+
16:13:29.930117 db@open done T·20.179578ms
19+
16:14:21.704863 db@close closing
20+
16:14:21.705038 db@close done T·167.94µs
21+
=============== Aug 9, 2018 (PDT) ===============
22+
09:57:10.440446 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
23+
09:57:10.440901 version@stat F·[1] S·112KiB[112KiB] Sc·[0.25]
24+
09:57:10.440909 db@open opening
25+
09:57:10.440936 journal@recovery F·1
26+
09:57:10.444659 journal@recovery recovering @3
27+
09:57:10.449520 memdb@flush created L0@5 N·4 S·678B "Dat..ion,v1582":"eth..\xcaJ-,v1581"
28+
09:57:10.451580 version@stat F·[2] S·113KiB[113KiB] Sc·[0.50]
29+
09:57:10.459912 db@janitor F·4 G·0
30+
09:57:10.459934 db@open done T·19.017515ms
31+
=============== Aug 9, 2018 (PDT) ===============
32+
10:04:14.514363 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
33+
10:04:14.514509 version@stat F·[2] S·113KiB[113KiB] Sc·[0.50]
34+
10:04:14.514517 db@open opening
35+
10:04:14.514555 journal@recovery F·1
36+
10:04:14.517014 journal@recovery recovering @6
37+
10:04:14.522190 memdb@flush created L0@8 N·3 S·484B "Dat..ion,v1587":"eth..\xcaJ-,v1586"
38+
10:04:14.524798 version@stat F·[3] S·114KiB[114KiB] Sc·[0.75]
39+
10:04:14.532960 db@janitor F·5 G·0
40+
10:04:14.533019 db@open done T·18.462619ms
41+
10:04:15.568766 db@close closing
42+
10:04:15.568800 db@close done T·33.576µs
43+
=============== Aug 9, 2018 (PDT) ===============
44+
10:05:46.610505 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
45+
10:05:46.610607 version@stat F·[3] S·114KiB[114KiB] Sc·[0.75]
46+
10:05:46.610615 db@open opening
47+
10:05:46.610645 journal@recovery F·1
48+
10:05:46.612772 journal@recovery recovering @9
49+
10:05:46.617227 memdb@flush created L0@11 N·4 S·672B "Dat..ion,v1591":"eth..\xcaJ-,v1590"
50+
10:05:46.620296 version@stat F·[4] S·114KiB[114KiB] Sc·[1.00]
51+
10:05:46.628423 db@janitor F·6 G·0
52+
10:05:46.628442 db@open done T·17.821353ms
53+
10:05:46.628515 table@compaction L0·4 -> L1·0 S·114KiB Q·1594
54+
10:05:46.633979 table@build created L1@14 N·1285 S·102KiB "\x00\x15\xb7..\xd5=),v354":"\xff\x977..i\x90q,v398"
55+
10:05:46.634021 version@stat F·[0 1] S·102KiB[0B 102KiB] Sc·[0.00 0.00]
56+
10:05:46.642018 table@compaction committed F-3 S-12KiB Ke·0 D·305 T·13.477728ms
57+
10:05:46.642079 table@remove removed @11
58+
10:05:46.642112 table@remove removed @8
59+
10:05:46.642140 table@remove removed @5
60+
10:05:46.642175 table@remove removed @2
61+
10:05:47.663408 db@close closing
62+
10:05:47.663445 db@close done T·36.266µs
63+
=============== Aug 9, 2018 (PDT) ===============
64+
10:09:08.220855 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
65+
10:09:08.220964 version@stat F·[0 1] S·102KiB[0B 102KiB] Sc·[0.00 0.00]
66+
10:09:08.220987 db@open opening
67+
10:09:08.221015 journal@recovery F·1
68+
10:09:08.223045 journal@recovery recovering @12
69+
10:09:08.227798 memdb@flush created L0@15 N·4 S·675B "Dat..ion,v1596":"eth..\xcaJ-,v1595"
70+
10:09:08.229852 version@stat F·[1 1] S·103KiB[675B 102KiB] Sc·[0.25 0.00]
71+
10:09:08.238244 db@janitor F·4 G·0
72+
10:09:08.238274 db@open done T·17.267272ms
73+
10:09:09.296242 db@close closing
74+
10:09:09.296276 db@close done T·33.916µs
75+
=============== Aug 9, 2018 (PDT) ===============
76+
10:14:45.018474 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
77+
10:14:45.018569 version@stat F·[1 1] S·103KiB[675B 102KiB] Sc·[0.25 0.00]
78+
10:14:45.018576 db@open opening
79+
10:14:45.018809 journal@recovery F·1
80+
10:14:45.020795 journal@recovery recovering @16
81+
10:14:45.025274 memdb@flush created L0@18 N·4 S·674B "Dat..ion,v1601":"eth..\xcaJ-,v1600"
82+
10:14:45.027478 version@stat F·[2 1] S·103KiB[1KiB 102KiB] Sc·[0.50 0.00]
83+
10:14:45.035732 db@janitor F·5 G·0
84+
10:14:45.035786 db@open done T·17.169426ms
85+
10:14:46.086859 db@close closing
86+
10:14:46.086892 db@close done T·32.183µs
87+
=============== Aug 9, 2018 (PDT) ===============
88+
10:19:27.322807 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed
89+
10:19:27.322937 version@stat F·[2 1] S·103KiB[1KiB 102KiB] Sc·[0.50 0.00]
90+
10:19:27.322945 db@open opening
91+
10:19:27.322977 journal@recovery F·1
92+
10:19:27.325079 journal@recovery recovering @19
93+
10:19:27.329408 memdb@flush created L0@21 N·4 S·673B "Dat..ion,v1606":"eth..\xcaJ-,v1605"
94+
10:19:27.331598 version@stat F·[3 1] S·104KiB[1KiB 102KiB] Sc·[0.75 0.00]
95+
10:19:27.340040 db@janitor F·6 G·0
96+
10:19:27.340058 db@open done T·17.105709ms
97+
10:19:28.398711 db@close closing
98+
10:19:28.398748 db@close done T·36.133µs

0 commit comments

Comments
 (0)