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

app: refactor VC readyz checks #1761

Merged
merged 1 commit into from
Feb 3, 2023
Merged

app: refactor VC readyz checks #1761

merged 1 commit into from
Feb 3, 2023

Conversation

corverroos
Copy link
Contributor

Changes VC readyz statuses:

  • vc not connected indicates no vapi calls
  • vc missing validators indicates some or all validators not configured in VC

category: refactor
ticket: #1612

@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Base: 55.08% // Head: 55.03% // Decreases project coverage by -0.05% ⚠️

Coverage data is based on head (907c3c1) compared to base (58b682b).
Patch coverage: 93.75% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1761      +/-   ##
==========================================
- Coverage   55.08%   55.03%   -0.05%     
==========================================
  Files         164      164              
  Lines       21387    21392       +5     
==========================================
- Hits        11780    11774       -6     
- Misses       8067     8075       +8     
- Partials     1540     1543       +3     
Impacted Files Coverage Δ
app/metrics.go 100.00% <ø> (ø)
app/app.go 59.36% <85.71%> (-0.48%) ⬇️
app/monitoringapi.go 80.79% <100.00%> (ø)
app/vmock.go 73.05% <0.00%> (-3.63%) ⬇️
app/eth2wrap/synthproposer.go 66.56% <0.00%> (+0.31%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

for {
select {
case <-ctx.Done():
return
case <-epochTicker.Chan():
// Copy current to previous and clear current.
previous, current = current, newCurrent()
prevPKs, currPKs = currPKs, make(map[core.PubKey]bool)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
prevPKs, currPKs = currPKs, make(map[core.PubKey]bool)
prevPubkeys, currPubkeys = currPubkeys, make(map[core.PubKey]bool)

Copy link
Contributor

Choose a reason for hiding this comment

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

same for other places as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel PKs is a clear enough

Copy link
Contributor

@dB2510 dB2510 left a comment

Choose a reason for hiding this comment

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

Let's test this on our performance cluster

}

return current
currVAPICount := 0
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this vapi count can be boolean too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, but a count is more representative

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Feb 3, 2023
@obol-bulldozer obol-bulldozer bot merged commit 931daa5 into main Feb 3, 2023
@obol-bulldozer obol-bulldozer bot deleted the corver/vapicalls branch February 3, 2023 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants