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

Ubuntu 22.04 #1716

Draft
wants to merge 26 commits into
base: ubuntu-22.04
Choose a base branch
from
Draft

Conversation

R3CK0
Copy link

@R3CK0 R3CK0 commented Feb 25, 2025

Modified all tests to no longer require on indy-sdk. Started from where Adam left off. Please correct any changes where I am using wrong inputs/outputs

Comment on lines +138 to +140
'indy_vdr==0.4.2',
'aries-askar==0.4.3',
'indy-credx==1.1.1'
Copy link
Member

Choose a reason for hiding this comment

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

This makes the indy-plenum deployment package dependent on client side components that are only used for tests.

@WadeBarnes WadeBarnes added the Ubuntu 22.04 Ubuntu 20.04 Ubuntu 22.04 related activity. label Feb 26, 2025
Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

General comment on the latest commit ...

It feels like there's duplication in the request parsing/conversion that could be consolidated.

…uilding functions from async to sync to align with indy-vdr API

Signed-off-by: MoulayHicham <[email protected]>
Copy link
Member

@WadeBarnes WadeBarnes left a comment

Choose a reason for hiding this comment

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

@rhofirAtos, Your latest commit is missing DCO sign-off.

@WadeBarnes
Copy link
Member

@rhofirAtos, Your latest commit is missing DCO sign-off.

lol, I see you noticed. Thanks

@WadeBarnes WadeBarnes self-requested a review March 4, 2025 15:45
@safio
Copy link

safio commented Mar 7, 2025

@WadeBarnes I've addressed your comment regarding duplication in the request parsing/conversion by creating a helper function called convert_indy_vdr_request_to_plenum(). I'll include this in my next push.

…_audit_ledger_multiple_ledgers_in_one_batch.py into a helper function for better maintainability

Signed-off-by: MoulayHicham <[email protected]>
@WadeBarnes
Copy link
Member

Tests are still having issues with ioflo. It should be replaced as a test dependency so the tests can proceed and we get a better idea of where we're at with this PR.

setup.py Outdated
@@ -99,7 +99,7 @@ def run(self):
'base58',
# pinned because issue with fpm from v4.0.0
'importlib_metadata==3.10.1',
# 'ioflo==2.0.2',
'ioflo==2.0.3',
Copy link
Member

Choose a reason for hiding this comment

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

This will work, in that the expected version of ioflo will be installed, however ioflo is a dev/test dependency and not a runtime dependency. Therefore it should not be defined here. It should be defined in the tests_require section starting on line 30.

@WadeBarnes
Copy link
Member

DCO sign-off was not included in the most recent commit. @rhofirAtos, please amend your latest commit with DCO sign-off.

Signed-off-by: MoulayHicham <[email protected]>
rhofirAtos and others added 2 commits March 12, 2025 11:27
GuillaumeBourque-QC and others added 8 commits March 12, 2025 11:38
Signed-off-by: MoulayHicham <[email protected]>
- Update sdk_send_signed_requests to return coroutines instead of futures
- Add explicit coroutine to future conversion in sdk_sign_and_send_prepared_request
- Improve flexibility in async operation handling for test framework

Signed-off-by: MoulayHicham <[email protected]>
Signed-off-by: GuillaumeBourque-QC <[email protected]>
- Remove .as_dict call since request is already a dictionary
- Update error handling to support both RequestRejectedException and CommonSdkIOException
- Add support for VdrErrorCode 31 in error message

Signed-off-by: MoulayHicham <[email protected]>
# Need to move libursa.so to parent dir
&& mv /usr/lib/ursa/* /usr/lib && rm -rf /usr/lib/ursa

RUN pip3 install -U \
# Required by newer verion of python
ioflo==2.0.3 \
Copy link
Member

Choose a reason for hiding this comment

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

This should be unnecessary. ioflo should be installed as a dev dependency when plenum is installed in teh dev container by "postCreateCommand": "pip install .[tests]", in the devcontainer.json file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ubuntu 22.04 Ubuntu 20.04 Ubuntu 22.04 related activity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants