hyperledger / indy-node

The server portion of a distributed ledger purpose-built for decentralized identity.
https://wiki.hyperledger.org/display/indy
Apache License 2.0
682 stars 654 forks source link

git diff origin/stable..origin/ubuntu-20.04-upgrade #1791

Open KimEbert42 opened 1 year ago

KimEbert42 commented 1 year ago

I went through the output of:

git diff origin/stable..origin/ubuntu-20.04-upgrade

And determined things that may require further review.

See gist for complete review

https://gist.github.com/reflectivedevelopment/f7b1f8ab8fae6dab96dccb3627fde316

I believe the following need to be reviewed. It is likely that many of these changes are fine, but with git history I wasn't able to determine if anything was lost or not in the move to ubuntu 20.04.

This is a minor cody styling issue, but I think would be valuable to keep.

index 85491324..3e3a277c 100644
--- a/.flake8
+++ b/.flake8
@@ -1,5 +1,5 @@
 [flake8]
-ignore = N801, N802, N803, N806, N813, C901, E501, F401, E741
+ignore = N801, N802, N803, N806, N813, C901, E501, F401, W605
 exclude =
     # common places
     .git,__pycache__,docs/source/conf.py,old,build,dist,environment

The migrations appear to be out of sync.

git diff origin/stable..origin/ubuntu-20.04-upgrade --stat --no-renames data

 data/migrations/deb/1_0_28_to_1_0_29.py          |  29 ---
 data/migrations/deb/1_0_96_to_1_0_97.py          |  29 +++
 data/migrations/deb/1_1_37_to_1_1_38.py          |  29 ---
 data/migrations/deb/1_1_43_to_1_2_44.py          |  41 -----
 data/migrations/deb/1_1_150_to_1_1_151.py        |  41 +++++
 data/migrations/deb/1_2_44_to_1_2_45.py          | 198 --------------------
 data/migrations/deb/1_2_50_to_1_2_51.py          |  96 ----------
 data/migrations/deb/1_2_51_to_1_2_52.py          |  19 --
 data/migrations/deb/1_2_188_to_1_2_189.py        | 198 ++++++++++++++++++++
 data/migrations/deb/1_2_233_to_1_2_234.py        |  96 ++++++++++
 data/migrations/deb/1_2_273_to_1_2_274.py        |  19 ++
 data/migrations/deb/disabled_1_0_29_to_1_0_28.py | 216 ----------------------
 data/migrations/deb/disabled_1_0_97_to_1_0_96.py | 216 ++++++++++++++++++++++
 data/migrations/deb/helper_1_0_28_to_1_0_29.py   | 223 -----------------------
 data/migrations/deb/helper_1_0_96_to_1_0_97.py   | 223 +++++++++++++++++++++++
 data/migrations/deb/helper_1_1_37_to_1_1_38.py   | 191 -------------------

This file seems to be specific to Ubuntu 16.

This file seems to be specific to Ubuntu 16.

This file seems to be specific to Ubuntu 16.

This file is specific to Ubuntu 16.04. Do we need to upgrade the script?

swcurran commented 1 year ago

FYI @WadeBarnes @pSchlarb --- can we get from this a specific list of actions to be taken to the Ubuntu 20.04 branches in Indy Node and Plenum before retiring the old main and stable branches?

pSchlarb commented 1 year ago

Hm one thing that comes to my mind is the documentation changes in main(espiacially the new network doc) that aren't in the ubuntu20 branch. But main wasn't compared here.

Regarding the old dockerfiles(core.ubuntu.dockerfile, indy-baseimage.ubuntu.dockerfile) it is save to say, that they aren't needed anymore in ubuntu20. They have been superseeded with the devcontainers in my thesis work.

I feel not confident making a decision regarding the other code changes, since i have been mainly working on the pipelines and devcontainers.