Comments (6)
Thank you!
from hive.
Sorry @holiman , my fault
Retested all 3 configurations, master and local is ok, only develop downloads all dependencies on every test. I've fixed it with #89
from hive.
Thanks. It's a lot better now, but perhaps it can be improved further?
Running it with only one testcase below, the execution takes 21 seconds.
[0ceba324] Simulator started
DBUG[12-18|08:53:50] new simulator request client=ethereumj:develop simulator=ethereum/consensus req-id=1 from=172.18.0.2:55546 method=POST endpoint=/logs
INFO[12-18|08:53:50] message from simulator client=ethereumj:develop simulator=ethereum/consensus log="Commencing testfile [1] (./tests/BlockchainTests/bcBlockGasLimitTest/SuicideTransaction.json)\n "
DBUG[12-18|08:53:50] new simulator request client=ethereumj:develop simulator=ethereum/consensus req-id=2 from=172.18.0.2:55548 method=POST endpoint=/logs
INFO[12-18|08:53:50] message from simulator client=ethereumj:develop simulator=ethereum/consensus log="Starting client node for test SuicideTransaction_Frontier"
DBUG[12-18|08:53:50] new simulator request client=ethereumj:develop simulator=ethereum/consensus req-id=3 from=172.18.0.2:55550 method=POST endpoint=/nodes
DBUG[12-18|08:53:50] starting new client client=ethereumj:develop simulator=ethereum/consensus req-id=3
DBUG[12-18|08:53:51] attaching to container client=ethereumj:develop simulator=ethereum/consensus req-id=3 id=a0040aba
DBUG[12-18|08:53:51] starting container client=ethereumj:develop simulator=ethereum/consensus req-id=3 id=a0040aba
[a0040aba] Initializing database with genesis state...
[a0040aba] Loading initial blockchain...
[a0040aba] Loading remaining individual blocks...
[a0040aba] Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
[a0040aba] Flag enabled: using EthereumJ jar from maven local repo if exist
[a0040aba] :compileJava UP-TO-DATE
[a0040aba] :processResources UP-TO-DATE
[a0040aba] :classes UP-TO-DATE
[a0040aba] :importBlocks
[a0040aba] 08:53:57.825 INFO [general] Config ( yes ): default properties from resource 'ethereumj.conf'
[a0040aba] 08:53:57.827 INFO [general] Config ( no ): user properties from -Dethereumj.conf.res resource 'null'
[a0040aba] 08:53:57.830 INFO [general] Config ( yes ): user properties from resource 'user.conf'
[a0040aba] 08:53:57.831 INFO [general] Config ( no ): user properties from file '/ethereum-harmony/config/ethereumj.conf'
[a0040aba] 08:53:57.832 INFO [general] Config ( no ): test properties from resource 'test-ethereumj.conf'
[a0040aba] 08:53:57.832 INFO [general] Config ( no ): test properties from resource 'test-user.conf'
[a0040aba] 08:53:57.832 INFO [general] Config ( no ): user properties from -Dethereumj.conf.file file 'null'
[a0040aba] 08:53:57.832 INFO [general] Config ( no ): config passed via constructor
[a0040aba] 08:53:57.864 INFO [general] Starting EthereumJ...
[a0040aba] 08:53:58.706 INFO [general] Running frontier.json, core version: 1.7.0-SNAPSHOT
[a0040aba] 08:53:58.708 INFO [general] git.hash: [0d598eb]
[a0040aba] 08:53:58.708 INFO [general] build.time: [GMT]-[18/Dec/2017]-[08:43]
[a0040aba] 08:53:58.709 INFO [general] Created database version file
[a0040aba] 08:53:58.710 INFO [general] capability eth version: [62, 63]
[a0040aba] 08:53:58.710 INFO [general] capability shh version: [3]
[a0040aba] 08:53:58.711 INFO [general] capability bzz version: [0]
[a0040aba] 08:53:59.192 INFO [general] New nodeID generated: f01e8d1af8dd80c4b4fcdba488c7b47f744ec4acfbcac416bae6c619f057304dc16a4cc954a0ebbe863d3f6cd0cb0b8304e1ef8cd2a3cf8ed7ac2123e41e1aec
[a0040aba] 08:53:59.192 INFO [general] Generated nodeID and its private key stored in database/nodeId.properties
[a0040aba] 08:53:59.284 INFO [general] leveldb key-value data source created: blockchain
[a0040aba] 08:53:59.568 INFO [general] leveldb key-value data source created: peers
[a0040aba] 08:53:59.575 INFO [general] External IP wasn't set, using checkip.amazonaws.com to identify it...
[a0040aba] 08:53:59.850 INFO [general] External address identified: 84.55.65.82
[a0040aba]
[a0040aba] 08:53:59.883 INFO [general] EthereumJ node started: enode://f01e8d1af8dd80c4b4fcdba488c7b47f744ec4acfbcac416bae6c619f057304dc16a4cc954a0ebbe863d3f6cd0cb0b8304e1ef8cd2a3cf8ed7ac2123e41e1aec@84.55.65.82:0
[a0040aba] 08:53:59.908 INFO [general] DB is empty - adding Genesis
[a0040aba] 08:53:59.918 INFO [general] Genesis block loaded
[a0040aba] 08:53:59.943 INFO [general] Bind address wasn't set, Punching to identify it...
[a0040aba] 08:53:59.950 INFO [general] UDP local bound to: 172.18.0.3
[a0040aba] 08:53:59.962 INFO [sync] Sync Manager: OFF
[a0040aba] Loading blocks: /blocks/0001.rlp, format: rlp
[a0040aba] 08:54:00.171 INFO [db] Flush started
[a0040aba] 08:54:00.197 INFO [db] Flush completed in 26 ms
[a0040aba] * Done *
[a0040aba]
[a0040aba] BUILD SUCCESSFUL
[a0040aba]
[a0040aba] Total time: 8.524 secs
[a0040aba] Parameters -DgenesisFile=/genesis.json -Dethash.dir=/root/.ethash -Dserver.port=8545 -Ddatabase.dir=database -Dlogs.keepStdOut=true -Dlogging.level.sync=ERROR -Dlogging.level.net=INFO -Dlogging.level.discover=ERROR -Dlogging.level.general=ERROR -Dlogging.level.mine=ERROR -Dlogging.level.jsonrpc=ERROR -Dlogging.level.harmony=ERROR
[a0040aba] Running Harmony Develop...
[a0040aba] Flag enabled: using EthereumJ jar from maven local repo if exist
[a0040aba] :compileJava UP-TO-DATE
[a0040aba] :processResources UP-TO-DATE
[a0040aba] :classes UP-TO-DATE
[a0040aba] :findMainClass
[a0040aba] :bootRun
[a0040aba] 08:54:02.823 INFO [general] Config ( yes ): default properties from resource 'ethereumj.conf'
[a0040aba] 08:54:02.825 INFO [general] Config ( no ): user properties from -Dethereumj.conf.res resource 'null'
[a0040aba] 08:54:02.828 INFO [general] Config ( yes ): user properties from resource 'user.conf'
[a0040aba] 08:54:02.828 INFO [general] Config ( no ): user properties from file '/ethereum-harmony/config/ethereumj.conf'
[a0040aba] 08:54:02.829 INFO [general] Config ( no ): test properties from resource 'test-ethereumj.conf'
[a0040aba] 08:54:02.829 INFO [general] Config ( no ): test properties from resource 'test-user.conf'
[a0040aba] 08:54:02.829 INFO [general] Config ( no ): user properties from -Dethereumj.conf.file file 'null'
[a0040aba] 08:54:02.829 INFO [general] Config ( no ): config passed via constructor
[a0040aba] _____ _ _ _ _
[a0040aba] | ___| | | | | | | |
[a0040aba] | |__ | |_| |__ | |_| | __ _ _ __ _ __ ___ ___ _ __ _ _
[a0040aba] | __|| __| '_ \ | _ |/ _` | '__| '_ ` _ \ / _ \| '_ \| | | |
[a0040aba] | |___| |_| | | | | | | | (_| | | | | | | | | (_) | | | | |_| |
[a0040aba] \____/ \__|_| |_| \_| |_/\__,_|_| |_| |_| |_|\___/|_| |_|\__, |
[a0040aba] __/ |
[a0040aba] By <Ether.Camp> |___/
[a0040aba]
[a0040aba] 08:54:03.312 INFO [c.e.h.Application] Starting Application on a0040abae8ea with PID 245 (/ethereum-harmony/build/classes/main started by root in /ethereum-harmony)
[a0040aba] 08:54:03.312 INFO [c.e.h.Application] No active profile set, falling back to default profiles: default
[a0040aba] 08:54:05.865 INFO [o.a.c.c.StandardService] Starting service Tomcat
[a0040aba] 08:54:05.866 INFO [o.a.c.c.StandardEngine] Starting Servlet Engine: Apache Tomcat/8.5.5
[a0040aba] 08:54:06.000 INFO [o.a.c.c.C.[.[.[/]] Initializing Spring embedded WebApplicationContext
[a0040aba]
[a0040aba] 08:54:07.975 INFO [net] Listening for incoming connections, port: [30303]
[a0040aba] 08:54:07.978 INFO [net] NodeId: [f01e8d1af8dd80c4b4fcdba488c7b47f744ec4acfbcac416bae6c619f057304dc16a4cc954a0ebbe863d3f6cd0cb0b8304e1ef8cd2a3cf8ed7ac2123e41e1aec]
[a0040aba] 08:54:09.238 INFO [contracts] Initialized contracts. Synced block is #Undefined
[a0040aba] 08:54:11.583 INFO [o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-8545"]
[a0040aba] 08:54:11.608 INFO [o.a.c.h.Http11NioProtocol] Starting ProtocolHandler [http-nio-8545]
DBUG[12-18|08:54:11] client container online client=ethereumj:develop simulator=ethereum/consensus req-id=3 id=a0040aba time=19.977405518s
[a0040aba] 08:54:11.609 INFO [o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
DBUG[12-18|08:54:11] new simulator request client=ethereumj:develop simulator=ethereum/consensus req-id=4 from=172.18.0.2:55984 method=GET endpoint=/nodes/a0040aba
[a0040aba] EthereumJ database dir location: database
[a0040aba] EthereumJ keystore dir location: /root/.ethereum/keystore
[a0040aba] Server started at http://localhost:8545
[a0040aba] 08:54:11.699 INFO [c.e.h.Application] Started Application in 8.748 seconds (JVM running for 9.468)
[a0040aba] 08:54:11.720 INFO [o.a.c.c.C.[.[.[/]] Initializing Spring FrameworkServlet 'dispatcherServlet'
[a0040aba] 08:54:11.720 INFO [o.s.w.s.DispatcherServlet] FrameworkServlet 'dispatcherServlet': initialization started
[a0040aba] 08:54:11.751 INFO [o.s.w.s.DispatcherServlet] FrameworkServlet 'dispatcherServlet': initialization completed in 31 ms
DBUG[12-18|08:54:11] new simulator request client=ethereumj:develop simulator=ethereum/consensus req-id=5 from=172.18.0.2:55998 method=POST endpoint=/logs
INFO[12-18|08:54:11] message from simulator client=ethereumj:develop simulator=ethereum/consensus log="Test: ./tests/BlockchainTests/bcBlockGasLimitTest/SuicideTransaction.json SuicideTransaction_Frontier (success)"
DBUG[12-18|08:54:12] new simulator request client=ethereumj:develop simulator=ethereum/consensus req-id=6 from=172.18.0.2:56000 method=POST endpoint=/subresults
DBUG[12-18|08:54:12] new simulator request client=ethereumj:develop simulator=ethereum/consensus req-id=7 from=172.18.0.2:56004 method=DELETE endpoint=/nodes/a0040aba
DBUG[12-18|08:54:12] deleting client container client=ethereumj:develop simulator=ethereum/consensus id=a0040aba
DBUG[12-18|08:54:12] client container finished cleanly client=ethereumj:develop simulator=ethereum/consensus req-id=3 id=a0040aba
[0ceba324]
[0ceba324] Hive simulator: http://172.18.0.1:40477
[0ceba324]
[0ceba324] Client version: Harmony/v1.7.0/Linux/Java1.8/SNAPSHOT-0d598eb
DBUG[12-18|08:54:12] deleting simulator container client=ethereumj:develop simulator=ethereum/consensus id=0ceba324
DBUG[12-18|08:54:12] terminating simulator server client=ethereumj:develop simulator=ethereum/consensus
INFO[12-18|08:54:12] simulation passed client=ethereumj:develop simulator=ethereum/consensus time=22.439834414s
{
"clients": {
"ethereumj:develop": {
"branch": "develop",
"commit": "3ad868e3c247098cfb0afbe322f64655e80d0f95",
"repo": "https://github.com/ether-camp/ethereum-harmony.git"
}
},
"validations": {
"ethereumj:develop": {}
},
"simulations": {
"ethereumj:develop": {
"ethereum/consensus": {
"start": "2017-12-18T08:53:50.347573016Z",
"end": "2017-12-18T08:54:12.78740743Z",
"success": true,
"subresults": [
{
"name": "./tests/BlockchainTests/bcBlockGasLimitTest/SuicideTransaction.json:SuicideTransaction_Frontier",
"success": true,
"details": {
"instanceid": "a0040aba",
"errors": [],
"ms": 21210.39915084839
}
}
]
}
}
}
}
from hive.
@holiman I have an idea how to improve it, will PR later
from hive.
from hive.
@holiman @zilm13 hey its great seeing you testing and managinf the blockchain, can you please write an block from where newbie can learn the babysteps in testing
from hive.
Related Issues (20)
- Make consensus-tests ignore EIP-Tests HOT 2
- pyspec simulator failure
- Create Beacon API/P2P Tests Simulator
- Remove Pre-Merge Tests from `simulators/eth2/engine`, `simulators/ethereum/engine` HOT 1
- simulators/ethereum/pyspec: Fix `sim.limit` for sub tests within the json files HOT 3
- Simulator attempts to get genesis block prematurely before Besu finished starting HOT 1
- Remaining Engine API Cancun Tests HOT 1
- EIP 4788 Devnet 8 Testing Changes HOT 1
- Add test for Fork ID calculation on Pre-Merge Fork > 0
- Critical security flaw: User should not be root when the Dockerfile completes
- Major bugrisk: Use arguments JSON notation for CMD and ENTRYPOINT arguments
- Potential DoS vulnerability via decompression bomb
- Poor file permissions used when creating a file or using os.Chmod
- Potential slowloris attack
- Running hiveview on windows fails to an error HOT 2
- simulators/ethereum/engine: `BlockBy*` requests are failing for some clients due to blobs missing `v` field HOT 2
- go-ethereum eth-tests are hanging HOT 6
- Implement test changes to `simulators/ethereum/engine` for execution-apis#498
- reth doesn't build/run on prod HOT 4
- Rust Portal-Hive to Hive Transition Tracker Issue HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hive.