prysm-pulse/testing/endtoend
kasey 2e49fdb3d2
Start chain from bellatrix state (#11746)
* WIP trying to start from bellatrix state

* env var to control log path with unique paths

due to flaky test re-run behavior, logs from a failed test run are
overwritten by subsequent retries. This makes it difficult to retrieve
logs after the first failed run. It also takes some squinting through
output to find the location of the log file in the first place. This
flag enables logs to be placed in an arbitrary path. Note that bazel
sandboxing generally will force this path to be in the /tmp tree.

* WIP - grabbing changes from rm-pre-genesis branch

* combine bellatrix state w/ rm-pre-genesis branch

* WIP

* use encoding/detect for genesis state bytes

* WIP more fixes towards start from bellatrix

* remove debug wrapping

* WIP

* multiple bugfixes

* fix fork ordering bug and bellatrix genesis blocks

* send deposits, spam tx to advance, fix miner alloc

* WIP

* WIP mess

* WIP

* Print process ID information for purposes of attaching a debugger

* bugs: genesis body_root and deposit index mismatch

* fix voting period start, skip altair check

* add changes

* make it better

* rm startup FCU, rm logs

* cleanup import grouping&ordering

* restore FCU log, get rid of tmp var

* rm newline

* restore newline

* restore wrapped error

* rm newline

* removing boot node version override

this doesn't seem to matter?

* add issue number to todo comment

* rm commented code

* rm vmdebug geth flag

* unexport values only used with genesis test pkg

and add comments where missing from exported values.

* adding comments to special cases for testnets

* migrate comments from PR to actual code :)

* rm unused test param

* mark e2e spawns exempt from gosec warning

* Fix DeepSource errors in `proposer_bellatrix.go` (#11739)

* Fix DeepSource errors in

* Omit receiver name

* Address PR comments

* Remove unused variable

* Fix more DeepSource errors

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* Remove `Test_IsExecutionEnabledCapella` (#11752)

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* Add REST implementation for Validator's `ProposeBeaconBlock` (#11731)

* WIP

* WIP

* WIP

* Add tests

* WIP

* Add more tests

* Address DeepSource errors

* Remove unused param

* Add more tests

* Address PR comments

* Address PR comments

* Fix formatting

* Remove unused parameter

* Fix TestLittleEndianBytesToBigInt

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* fix validator client (#11755)

* fix validator client

(cherry picked from commit deb138959a2ffcb89cd2e3eb8304477526f4a168)

* Use signed changes in middleware block

Co-authored-by: Potuz <potuz@prysmaticlabs.com>

* API `finalized` metadata field - update protos (#11749)

* API `finalized` metadata field - update protos

* change nums

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>

* log breaks unit tests that don't do full arg setup

easiest to just remove it for now

* restore prior behavior of phase0 block for altair

* update unit tests to account for special case

* loosen condition for fork version to match config

we don't know which fork version genesis will start from, so we
shouldn't force it to be a phase0 genesis.

* skip until we can mod configs at runtime

* NewGenesisBlockForState computes state root itself

* rm noisy log

* this log would be noisy in mainnet

* fix format specifier, []byte -> string

* core.Genesis UnmarshalJson has a value receiver :)

* no longer needs to be exported

Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
Co-authored-by: Patrice Vignola <vignola.patrice@gmail.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 07:13:49 +08:00
..
components Start chain from bellatrix state (#11746) 2022-12-14 07:13:49 +08:00
evaluators Start chain from bellatrix state (#11746) 2022-12-14 07:13:49 +08:00
helpers E2E deposit testing overhaul (#11667) 2022-11-19 03:40:32 +00:00
params Start chain from bellatrix state (#11746) 2022-12-14 07:13:49 +08:00
policies Add V3 Suffix to All Prysm Packages (#11083) 2022-08-16 12:20:13 +00:00
static-files/eth1 Start chain from bellatrix state (#11746) 2022-12-14 07:13:49 +08:00
types Onboard validator's Beacon REST API usage to e2e tests (#11704) 2022-12-08 14:38:56 +00:00
BUILD.bazel Onboard validator's Beacon REST API usage to e2e tests (#11704) 2022-12-08 14:38:56 +00:00
component_handler_test.go e2e: Print process IDs for debugging. (#11734) 2022-12-08 04:48:16 +00:00
deps.bzl E2E: beacon APIs Part 1 (#11306) 2022-12-06 16:01:17 +00:00
endtoend_setup_test.go Add Back Cross Client Option (#11738) 2022-12-07 22:20:35 -06:00
endtoend_test.go Start chain from bellatrix state (#11746) 2022-12-14 07:13:49 +08:00
geth_deps.go Move EndtoEnd Tests to Testing/ Folder (#9586) 2021-09-15 14:42:05 +00:00
lighthouse.BUILD Multiclient E2E With Lighthouse (#10020) 2022-02-02 19:13:52 +00:00
mainnet_e2e_test.go Scenario End To End Testing (#10696) 2022-05-20 09:34:10 +00:00
mainnet_scenario_e2e_test.go Add Back Cross Client Option (#11738) 2022-12-07 22:20:35 -06:00
minimal_e2e_test.go Add V3 Suffix to All Prysm Packages (#11083) 2022-08-16 12:20:13 +00:00
minimal_scenario_e2e_test.go Onboard validator's Beacon REST API usage to e2e tests (#11704) 2022-12-08 14:38:56 +00:00
minimal_slashing_e2e_test.go Add V3 Suffix to All Prysm Packages (#11083) 2022-08-16 12:20:13 +00:00
README.md Add link to e2e docs in README (#10672) 2022-05-10 14:16:40 +00:00
slasher_simulator_e2e_test.go Deprecate native state flag (#11268) 2022-09-15 20:47:51 +02:00
web3signer.BUILD e2e: Add web3signer component (#10088) 2022-01-19 16:22:23 +00:00

End-to-end Testing Package

This is the main project folder of the end-to-end testing suite for Prysm. This performs a full end-to-end test for Prysm, including spinning up an ETH1 dev chain, sending deposits to the deposit contract, and making sure the beacon node and its validators are running and performing properly for a few epochs. It also performs a test on a syncing node, and supports feature flags to allow easy E2E testing of experimental features.

How it works

Please see our docs page, https://docs.prylabs.network/docs/devtools/end-to-end, to read more about the feature.