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

featureset: herumi_bls feature flag #1745

Merged
merged 8 commits into from
Feb 1, 2023
Merged

Conversation

gsora
Copy link
Collaborator

@gsora gsora commented Jan 31, 2023

This PR adds support for the herumi_bls feature flag.

Right now the flag is used in app/app.go in preparation for #1744, but apart for that this is 100% dormant code.

I had to update the way we compile binaries for compose so that we don't end up with glibc issues between host and Docker.

category: feature
ticket: #1743

…ependencies

Needed because sometimes the environment in which we execute the binary (Docker, Debian) might run a different version of glibc than host, leading to runtime errors.
@gsora gsora added the enhancement New feature or request label Jan 31, 2023
@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Base: 54.76% // Head: 54.54% // Decreases project coverage by -0.23% ⚠️

Coverage data is based on head (c40b8c5) compared to base (9e4b92b).
Patch coverage: 28.57% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1745      +/-   ##
==========================================
- Coverage   54.76%   54.54%   -0.23%     
==========================================
  Files         162      162              
  Lines       20820    20831      +11     
==========================================
- Hits        11402    11362      -40     
- Misses       7894     7944      +50     
- Partials     1524     1525       +1     
Impacted Files Coverage Δ
app/featureset/featureset.go 100.00% <ø> (ø)
testutil/compose/define.go 37.97% <0.00%> (ø)
app/app.go 61.93% <33.33%> (-0.13%) ⬇️
core/qbft/qbft.go 73.73% <0.00%> (-9.67%) ⬇️
testutil/promrated/rated.go 54.66% <0.00%> (-2.48%) ⬇️
testutil/promrated/promrated.go 0.00% <0.00%> (ø)
app/vmock.go 74.09% <0.00%> (+1.03%) ⬆️

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.

app/app.go Outdated
blsv2.SetImplementation(kryptology.Kryptology{})

if featureset.Enabled(featureset.HerumiBLS) {
log.Info(ctx, "enabling Herumi BLS signature backend")
Copy link
Contributor

Choose a reason for hiding this comment

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

log lines should start with a capital

Copy link
Contributor

Choose a reason for hiding this comment

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

this should've been covered in pre-commit hooks. @gsora do you have pre-commit installed on your local?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did! That's how I fix the pre-commit issues that appear in CI. For some reason it isn't executing at commit time... I re-tried installation, hopefully this stuff will get caught from now on.

Sorry!

@gsora gsora added the merge when ready Indicates bulldozer bot may merge when all checks pass label Feb 1, 2023
@obol-bulldozer obol-bulldozer bot merged commit 1268a2c into main Feb 1, 2023
@obol-bulldozer obol-bulldozer bot deleted the gsora/featureset-herumibls branch February 1, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 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