Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post-genesis deposit testing to long-running E2E #5449

Merged
merged 22 commits into from
Apr 27, 2020

Conversation

0xKiwi
Copy link
Contributor

@0xKiwi 0xKiwi commented Apr 16, 2020

This PR adds deposit testing support to E2E to fully test validator deposits and activation.

Due to the time it takes to test this, it is only run as part of the "Long Running" E2E, now split up into its own file.

If E2E_EPOCHS is not set, the test will not run. Testing show allow for at least 16 epochs to ensure deposited validators are performing correctly.

@0xKiwi 0xKiwi requested a review from a team as a code owner April 16, 2020 00:41
@0xKiwi 0xKiwi marked this pull request as draft April 16, 2020 16:55
@0xKiwi 0xKiwi changed the title Add deposit testing to E2E Add post-genesis deposit testing to long-running E2E Apr 25, 2020
@0xKiwi 0xKiwi marked this pull request as ready for review April 25, 2020 22:51
@0xKiwi 0xKiwi added the Ready For Review A pull request ready for code review label Apr 25, 2020
@@ -46,6 +49,13 @@ func afterNthEpoch(afterEpoch uint64) func(uint64) bool {
}
}

// Not including first epoch because of issues with genesis.
func betweenEpochs(fromEpoch uint64, toEpoch uint64) func(uint64) bool {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change to boolean type name

Suggested change
func betweenEpochs(fromEpoch uint64, toEpoch uint64) func(uint64) bool {
func isBetweenEpochs(fromEpoch uint64, toEpoch uint64) func(uint64) bool {

var err error
if epochs, ok := os.LookupEnv("E2E_EPOCHS"); ok {
if !ok {
return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return
t.Skip("E2E_EPOCHS not set")

var err error
if epochs, ok := os.LookupEnv("E2E_EPOCHS"); ok {
if !ok {
t.Skip("E2E EPOCHS not set")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
t.Skip("E2E EPOCHS not set")
t.Skip("E2E_EPOCHS not set")

@0xKiwi 0xKiwi requested a review from prestonvanloon April 27, 2020 06:44
@rauljordan
Copy link
Contributor

@0xKiwi can we open future PR's into prysm directly so that bulldozer can auto-update? (it doesn't always work, but it can help sometimes). @prestonvanloon ready for another look

@prylabs-bulldozer prylabs-bulldozer bot merged commit f70635a into prysmaticlabs:master Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants