Skip to content

Ubuntu 22.04 #1716

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

Draft
wants to merge 27 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

setup.py Outdated
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.

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.

@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.

# 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.

@R3CK0 R3CK0 force-pushed the ubuntu-22.04 branch 2 times, most recently from a5abcec to 59d112f Compare March 20, 2025 14:24
@R3CK0 R3CK0 requested a review from WadeBarnes April 7, 2025 21:16
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.

@R3CK0 Please exclude the error logs from the commits.

Also the build is failing due to linting errors.

@WadeBarnes
Copy link
Member

@R3CK0, Whatever's happened between this point https://github.com/hyperledger/indy-plenum/actions/runs/14197083841 and now is a step backwards. The tests where running and one slice was passing. In the current state the tests aren't able to even run.

@WadeBarnes
Copy link
Member

That said, affected tests are running and passing locally.

@WadeBarnes
Copy link
Member

WadeBarnes commented Apr 8, 2025

I'm able to recrate the error locally by running the tests like the workflows do:

RUSTPYTHONASYNCIODEBUG=0 python3 runner.py --pytest "python3 -m pytest -l -vv" --dir "plenum" --output "test-result-plenum-1.txt" --test-only-slice "1/8"

Logs get output to test_list.txt

==================================== ERRORS ====================================
___ ERROR collecting plenum/test/plugin/demo_plugin/test_plugin_removing.py ____
ImportError while importing test module '/workspaces/indy-plenum/plenum/test/plugin/demo_plugin/test_plugin_removing.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
plenum/test/plugin/demo_plugin/test_plugin_removing.py:5: in <module>
    from plenum.test.freeze_ledgers.helper import sdk_send_freeze_ledgers
E   ImportError: cannot import name 'sdk_send_freeze_ledgers' from 'plenum.test.freeze_ledgers.helper' (/workspaces/indy-plenum/plenum/test/freeze_ledgers/helper.py)

@WadeBarnes
Copy link
Member

Plenum slice tests are running again.

@WadeBarnes
Copy link
Member

I'll have a look at the conflicts shortly.

@WadeBarnes WadeBarnes force-pushed the ubuntu-22.04 branch 2 times, most recently from dbeccf6 to 15eb0f5 Compare April 9, 2025 16:28
@R3CK0
Copy link
Author

R3CK0 commented Apr 9, 2025

Removed the commit containing the error logs and the error identification script.

@WadeBarnes
Copy link
Member

WadeBarnes commented Apr 9, 2025

Removed the commit containing the error logs and the error identification script.

In doing so it appears you've also removed several commits I had made to the PR.

image

burdettadam and others added 13 commits April 9, 2025 12:58
Signed-off-by: Adam Burdett <burdettadam@gmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Adam Burdett <burdettadam@gmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
packages starting debugging process with tests

Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Wade Barnes <wade@neoterictech.ca>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
take into account and integrate new types, inputs and outputs from
indy-vdr

Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
response

- Fixed futures loop error
- Added Plenum request vs vdr request format
- Changed Submit_request to submit_action

Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
- Ongoing issue with client test: The build request in indy-vdr does not
  allow invalid protocol version to be set with is preventing the
  ability to verify invalid request do to protocol version in plenum

- Increased the timeout in some functions do to machine limitations
  causing tests to timeout and fail prematurely this needs to be tweaked
  as some tests require the timeout to be shorter and some longer. Need
  to find that sweet spot

Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
R3CK0 added 9 commits April 9, 2025 13:00
reintroduced indy-sdk to test invalid signatures that are prevented in
vdr
modified symbols from vdr functions to from sdk to vdr

Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
vdr format.

Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
functions in pool_transaction and node_request to faciliate them

Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
cannot be changed

Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
- When switching back to SDK reintroduced errors that where fixed in VDR

Signed-off-by: Nicholas Massad <nicholasmassad@hotmail.com>
Signed-off-by: NicholasMassad <nicholasmassad@hotmail.com>
@WadeBarnes
Copy link
Member

All fixed.

- The Ursa package has been migrated to the Hyperledger repository.  The Sovrin repositories have been deprecated.
  - New location: https://hyperledger.jfrog.io/ui/native/indy/pool/bionic/master/u/ursa/
  - Previous location: https://repo.sovrin.org/deb/pool/bionic/master/u/ursa/

Signed-off-by: Wade Barnes <wade@neoterictech.ca>
- The indy-sdk packages have been migrated to the Hyperledger repository.  The Sovrin repositories have been deprecated.
  - New location: https://hyperledger.jfrog.io/ui/native/indy/pool/bionic/
  - Previous location: https://repo.sovrin.org/sdk/deb/pool/bionic/
    - Only the `master` and `stable` channels were migrated over.

Signed-off-by: Wade Barnes <wade@neoterictech.ca>
Signed-off-by: Wade Barnes <wade@neoterictech.ca>
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.

4 participants