Commit Graph

30 Commits

Author SHA1 Message Date
Paul Hauner
c4ced3e0d2
Fix block processing blowup, upgrade metrics (#500)
* Renamed fork_choice::process_attestation_from_block

* Processing attestation in fork choice

* Retrieving state from store and checking signature

* Looser check on beacon state validity.

* Cleaned up get_attestation_state

* Expanded fork choice api to provide latest validator message.

* Checking if the an attestation contains a latest message

* Correct process_attestation error handling.

* Copy paste error in comment fixed.

* Tidy ancestor iterators

* Getting attestation slot via helper method

* Refactored attestation creation in test utils

* Revert "Refactored attestation creation in test utils"

This reverts commit 4d277fe4239a7194758b18fb5c00dfe0b8231306.

* Integration tests for free attestation processing

* Implicit conflicts resolved.

* formatting

* Do first pass on Grants code

* Add another attestation processing test

* Tidy attestation processing

* Remove old code fragment

* Add non-compiling half finished changes

* Simplify, fix bugs, add tests for chain iters

* Remove attestation processing from op pool

* Fix bug with fork choice, tidy

* Fix overly restrictive check in fork choice.

* Ensure committee cache is build during attn proc

* Ignore unknown blocks at fork choice

* Various minor fixes

* Make fork choice write lock in to read lock

* Remove unused method

* Tidy comments

* Fix attestation prod. target roots change

* Fix compile error in store iters

* Reject any attestation prior to finalization

* Begin metrics refactor

* Move beacon_chain to new metrics structure.

* Make metrics not panic if already defined

* Use global prometheus gather at rest api

* Unify common metric fns into a crate

* Add heavy metering to block processing

* Remove hypen from prometheus metric name

* Add more beacon chain metrics

* Add beacon chain persistence metric

* Prune op pool on finalization

* Add extra prom beacon chain metrics

* Prefix BeaconChain metrics with "beacon_"

* Add more store metrics

* Add basic metrics to libp2p

* Add metrics to HTTP server

* Remove old `http_server` crate

* Update metrics names to be more like standard

* Fix broken beacon chain metrics, add slot clock metrics

* Add lighthouse_metrics gather fn

* Remove http args

* Fix wrong state given to op pool prune

* Make prom metric names more consistent

* Add more metrics, tidy existing metrics

* Fix store block read metrics

* Tidy attestation metrics

* Fix minor PR comments

* Allow travis failures on beta (see desc)

There's a non-backward compatible change in `cargo fmt`. Stable and beta
do not agree.

* Tidy `lighthouse_metrics` docs

* Fix typo
2019-08-19 21:02:34 +10:00
Paul Hauner
7738d51a72
Add cargo fmt to .travis.yml (#474)
* Run cargo fmt

* Add cargo fmt to travis.yml
2019-07-31 14:45:09 +10:00
Paul Hauner
59883603ac
Remove state_processing tests, update travis 2019-05-10 10:28:18 +10:00
Luke Anderson
ac3616251a
Updated Travis config, to not test the --release builds, since they're done on GitLab, and to keep the registry in the cache for now. 2019-05-08 12:32:57 +10:00
Paul Hauner
6ae0083843
Add travis caching.
Reference for commands: https://levans.fr/rust_travis_cache.html
2019-04-24 11:41:33 +10:00
Paul Hauner
2ee3b05bd3
Only build in debug for beta and nightly 2019-04-18 19:10:13 +10:00
Paul Hauner
381388d9c2
Move state processing test into own build 2019-04-18 06:45:25 +10:00
Paul Hauner
7b853b33d5
Add env vars to travis 2019-04-17 21:57:48 +10:00
Michael Sproul
a19f8580f5
travis: state transition tests 2019-04-17 12:00:23 +10:00
Luke Anderson
d38f4ed547
Fixed merge conflicts with master, with new release testing options. 2019-03-28 19:57:00 +11:00
Paul Hauner
7cbee46227
Add FakeSignature and FakeAggregateSignature
They replace Signature and FakeAggregateSignature when compling with
debug. Compiling with release uses the real structs.
2019-03-22 10:08:40 +11:00
Luke Anderson
6d5bba1dcc
Commenting out clippy, since he's not coming until later. 2019-03-21 16:08:14 +11:00
Luke Anderson
ed5f697118
Added clippy component installation to Travis CI yml file. 2019-03-12 22:36:20 +11:00
Luke Anderson
6bc977b9e6
Moved rustfmt commands after build, so that it passes.
Also added clippy into CI checks, but allowing warnings to pass for now.
2019-03-12 22:26:01 +11:00
Luke Anderson
08f15517f2
Added rustfmt check to Jenkins build, and moved to top of Travis build. 2019-03-12 19:45:58 +11:00
Paul Hauner
35c914baa6
Revert "Merge pull request #200 from sigp/new-structure"
This reverts commit d7a3545be1, reversing
changes made to 1da06c156c.
2019-02-14 12:09:18 +11:00
Paul Hauner
655875acf9
Remove cargo fmt from travis.yml 2019-02-13 18:44:23 +11:00
Paul Hauner
c228178aa9
Fix cargo fmt cmd in travis.yml 2019-02-13 17:20:13 +11:00
Paul Hauner
433345e6e7
Update travis.yml to fix SSH permission denied.
For more info: https://stackoverflow.com/questions/15674064/how-to-fix-a-permission-denied-publickey-error-for-a-git-submodule-update-in-t
2019-02-13 16:20:24 +11:00
Paul Hauner
122bdb3c0b
Update travis to test all components 2019-02-13 16:16:41 +11:00
Paul Hauner
bf1795a94e
Move rustfmt check down in travis yml
This is because we need to make sure the protos build before rustfmt
runs.
2019-01-22 15:14:04 +11:00
Paul Hauner
80e37f8d49
Merge branch 'master' into grpc-rs 2019-01-22 12:58:17 +11:00
Paul Hauner
4fd5424fca
Fix bad zip name in travis 2019-01-22 10:07:28 +11:00
Paul Hauner
fc3c94f66d
Add custom proto install to travis 2019-01-22 10:02:48 +11:00
Paul Hauner
52561323e5
Move travis to ubuntu xenial to obtain proto3 2019-01-22 09:42:45 +11:00
Paul Hauner
4499ffe5c3
Add protobuf-compiler to travis.yml 2019-01-22 09:09:21 +11:00
Alex Stokes
bc053ba415
Tweaks for travis 2019-01-10 15:05:50 -06:00
Alex Stokes
32d9699541
Add cargo fmt as a build step to pass CI 2019-01-10 14:59:15 -06:00
Paul Hauner
050364cf9a
Add --all scripts to travis.yml 2018-12-06 10:05:03 +11:00
Paul Hauner
ae15382911 Add travis.yml 2018-07-12 15:04:02 +10:00