nimbus-eth2/tests
Jacek Sieka 233d756518
Logging and startup improvements (#3038)
* Logging and startup improvements

Color support for released binaries!

* startup scripts no longer log to file by default - this only affects
source builds - released binaries don't support file logging
* add --log-stdout option to control logging to stdout (colors, json)
* detect tty:s vs redirected logs and log accordingly
* add option to disable log colors at runtime
* simplify several "common" logs, showing the most important information
earlier and more clearly
* remove line numbers / file information / tid - these take up space and
are of little use to end users
  * still enabled in debug builds and tools
* remove `testnet_servers_image` compile-time option
* server images, released binaries and compile-from-source now offer
the same behaviour and features
* fixes https://github.com/status-im/nimbus-eth2/issues/2326
* fixes https://github.com/status-im/nimbus-eth2/issues/1794
* remove instanteneous block speed from sync message, keeping only
average

before:

```
INF 2021-10-28 16:45:59.000+02:00 Slot start                                 topics="beacnde" tid=386429 file=nimbus_beacon_node.nim:884 lastSlot=2384027 wallSlot=2384028 delay=461us84ns peers=0 head=75a10ee5:3348 headEpoch=104 finalized=cd6804ba:3264 finalizedEpoch=102 sync="wwwwwwwwww:0:0.0000:0.0000:00h00m (3348)"
INF 2021-10-28 16:45:59.046+02:00 Slot end                                   topics="beacnde" tid=386429 file=nimbus_beacon_node.nim:821 slot=2384028 nextSlot=2384029 head=75a10ee5:3348 headEpoch=104 finalizedHead=cd6804ba:3264 finalizedEpoch=102 nextAttestationSlot=-1 nextProposalSlot=-1 nextActionWait=n/a
```

after:

```
INF 2021-10-28 22:43:23.033+02:00 Slot start                                 topics="beacnde" slot=2385815 epoch=74556 sync="DDPDDPUDDD:10:5.2258:01h19m (2361088)" peers=37 head=eacd2dae:2361096 finalized=73782:a4751487 delay=33ms687us715ns
INF 2021-10-28 22:43:23.291+02:00 Slot end                                   topics="beacnde" slot=2385815 nextActionWait=n/a nextAttestationSlot=-1 nextProposalSlot=-1 head=eacd2dae:2361096
```

* fix comment

* documentation updates

* mention `--log-file` may be deprecated in the future
* update various docs
2021-11-02 18:06:36 +01:00
..
consensus_spec some spec refs to v1.1.3 (#3032) 2021-10-26 18:42:48 +00:00
fork_choice proc -> func in ncli/, research/, and test/ (#2818) 2021-08-25 14:51:52 +00:00
fuzzing test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
helpers proc -> func in ncli/, research/, and test/ (#2818) 2021-08-25 14:51:52 +00:00
mocking v1.1.3 spec refs URLs (#3036) 2021-10-27 18:40:17 +00:00
simulation Logging and startup improvements (#3038) 2021-11-02 18:06:36 +01:00
slashing_protection test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
spec_block_processing mechanical non-merge v1.1.2 to v1.1.3 spec URL updates (#3030) 2021-10-26 16:44:23 +00:00
spec_epoch_processing clean up fork enum and field names 2021-10-19 11:06:38 +03:00
ssz enable uint128 / uint256 SSZ serialization tests (#2960) 2021-10-06 06:14:52 +00:00
all_tests.nim register vc duties with subnet tracker (#2949) 2021-10-18 11:11:44 +02:00
all_tests.nim.cfg remove remaining traces of nim-prompt 2021-08-16 21:56:50 +03:00
test_action_tracker.nim register vc duties with subnet tracker (#2949) 2021-10-18 11:11:44 +02:00
test_attestation_pool.nim import cleanup (#2997) 2021-10-19 16:09:26 +02:00
test_beacon_chain_db.nim clean up fork enum and field names 2021-10-19 11:06:38 +03:00
test_beaconstate.nim rework spec imports (#2779) 2021-08-12 13:08:20 +00:00
test_bitseqs.nim forkedbeaconstate_helpers -> forks (#2772) 2021-08-10 22:46:35 +02:00
test_block_pool.nim import cleanup (#2997) 2021-10-19 16:09:26 +02:00
test_datatypes.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
test_discovery.nim odds and ends (#3015) 2021-10-21 15:09:19 +02:00
test_eth1_monitor.nim Introduce unittest2 and junit reports (#2522) 2021-04-28 18:41:02 +02:00
test_eth2_ssz_serialization.nim remove `updateRoot` param from SSZ 2021-08-23 16:49:43 +03:00
test_exit_pool.nim clean up fork enum and field names 2021-10-19 11:06:38 +03:00
test_gossip_validation.nim clean up sync subcommittee handling 2021-10-20 22:59:13 +03:00
test_helpers.nim clean up fork enum and field names 2021-10-19 11:06:38 +03:00
test_honest_validator.nim odds and ends (#3015) 2021-10-21 15:09:19 +02:00
test_interop.nim disentangle eth2 types from the ssz library (#2785) 2021-08-18 20:57:58 +02:00
test_keystore.nim unexport various parts of tests/ and remove unused code (#2794) 2021-08-18 13:58:43 +00:00
test_merge_vectors.nim add payloadId; add merge vector test script; remove consensusValidated (#2982) 2021-10-13 16:08:50 +02:00
test_message_signatures.nim always use static keys in tests (#2928) 2021-09-30 17:14:03 +02:00
test_peer_pool.nim proc -> func in ncli/, research/, and test/ (#2818) 2021-08-25 14:51:52 +00:00
test_statediff.nim import cleanup (#2997) 2021-10-19 16:09:26 +02:00
test_sync_committee_pool.nim clean up sync subcommittee handling 2021-10-20 22:59:13 +03:00
test_sync_manager.nim clean up fork enum and field names 2021-10-19 11:06:38 +03:00
test_sync_manager.nim.cfg Split Eth2Processor in prep for batching (#2396) 2021-03-11 11:10:57 +01:00
test_zero_signature.nim update spec references from eth2.0-specs to consensus-specs and to v1.1.0-beta.2 (#2822) 2021-08-26 10:21:52 +02:00
testblockutil.nim some spec refs to v1.1.3 (#3032) 2021-10-26 18:42:48 +00:00
testdbutil.nim rework spec imports (#2779) 2021-08-12 13:08:20 +00:00
teststateutil.nim clean up fork enum and field names 2021-10-19 11:06:38 +03:00
testutil.nim forkedbeaconstate_helpers -> forks (#2772) 2021-08-10 22:46:35 +02:00