-
Notifications
You must be signed in to change notification settings - Fork 160
feat: CL Anoncreds tink primitives #3271
feat: CL Anoncreds tink primitives #3271
Conversation
f663293
to
d07dfab
Compare
Codecov Report
@@ Coverage Diff @@
## main #3271 +/- ##
==========================================
+ Coverage 88.28% 88.32% +0.04%
==========================================
Files 315 311 -4
Lines 42658 42398 -260
==========================================
- Hits 37659 37448 -211
+ Misses 3674 3638 -36
+ Partials 1325 1312 -13
Continue to review full report at Codecov.
|
//go:build ursa | ||
// +build ursa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be helpful to have a make target for Ursa build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's in progress.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added make unit-test-ursa
target.
scripts/check_unit.sh
Outdated
#PKGS=$(go list -tags ursa github.com/hyperledger/aries-framework-go/pkg/... 2> /dev/null | grep -v /mocks | grep -v /aries-js-worker) | ||
#$GO_TEST_CMD -tags ursa $PKGS -count=1 -race -coverprofile=profile.out -covermode=atomic -timeout=10m | ||
#amend_coverage_file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#PKGS=$(go list -tags ursa github.com/hyperledger/aries-framework-go/pkg/... 2> /dev/null | grep -v /mocks | grep -v /aries-js-worker) | |
#$GO_TEST_CMD -tags ursa $PKGS -count=1 -race -coverprofile=profile.out -covermode=atomic -timeout=10m | |
#amend_coverage_file | |
PKGS=$(go list -tags ursa github.com/hyperledger/aries-framework-go/pkg/... 2> /dev/null | grep -v /mocks | grep -v /aries-js-worker) | |
$GO_TEST_CMD -tags ursa $PKGS -count=1 -race -coverprofile=profile.out -covermode=atomic -timeout=10m | |
amend_coverage_file |
I don't mind adding ursa unit tests in the build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a separate make unit-test-ursa
target and a separate job in the CI pipeline to run unit tests with the ursa
build tag.
There is a reason why it's not easily possible to get rid of ursa
build tag and just run ursa/CL test as other unit tests: ursa-wrapper-go requires libursa
to be installed. Current development process and CI unit tests are not based on Docker, so that it may be challenging to require libursa library to be installed for every developer.
CI job for the ursa
tag is run in a container (ghcr.io/hyperledger/ursa-wrapper-go/uwg-build
for now) where libursa
is already installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the explanation
also another suggestion: Eventually, it would be great to not limit this PR to an ursa build tag and have it part of afgo core once it's stable, for the benefit of everyone. (the less build tags, the better) |
Yes, we are planning to integrate CL crypto to the
The problem here is that |
7c99059
to
152aff4
Compare
152aff4
to
d32c748
Compare
BTW it seems there are some intermittent test failures in places not related to the PR changes (noticed for other PRs as well)... |
simply push an empty update to retrigger the build, the CI does this intermittently (we can't control GH Action runs) |
d32c748
to
3280407
Compare
it's bdd-tests that are now failing, you can push another empty update |
Signed-off-by: alexander.shcherbakov <alexander.shcherbakov@avast.com>
3280407
to
343be87
Compare
@fqutishat can you please merge the PR? |
…chives#3271) Signed-off-by: alexander.shcherbakov <alexander.shcherbakov@avast.com>
Title:
CL Anoncreds tink primitives
Description:
pkg/crypto/api
API interface andpkg/kms
(separate PRs for each).ursa
build tag).libursa
lib to be installed, that's whyursa
build tag has been introduced.Summary:
ursa
build tag).libursa
is required, the CI job for theursa
tag is run in a container (ghcr.io/hyperledger/ursa-wrapper-go/uwg-build for now) where libursa is already installed.