aries-cloudagent-python icon indicating copy to clipboard operation
aries-cloudagent-python copied to clipboard

python-3.10 update

Open burdettadam opened this issue 2 years ago • 9 comments

UNDER RAPID DEVELOPMENT!

This draft PR updates ACA-PY to use python-3.7 along with dependency updates. For questions during development please reach out to @burdettadam or @dbluhm.

burdettadam avatar Jul 05 '22 18:07 burdettadam

Anyone feel like making a von-image on python 3.7 for us? :slightly_smiling_face:

dbluhm avatar Jul 06 '22 21:07 dbluhm

@WadeBarnes -- we can talk about this. I think the easiest way to do it would be to have a 0.9.0-rc1 tag (or perhaps 0.9.0-exp1 for "experimental") after we merge the PR. We would then use a 3.7 base in building the image and then testing it.

@dbluhm -- do you want/need this before the merge of the PR? I'm sure that would be possible -- just not the easy way outlined above. A bit more thinking and work.

swcurran avatar Jul 06 '22 21:07 swcurran

We also have to think about how this will impact the daily AATH testing. Presumably the "dockerfile-main" file will have to change when we merge this PR. We can do something locally or on a PR branch for testing this, but for the daily runs, we have to wait until this PR is merged.

swcurran avatar Jul 06 '22 22:07 swcurran

Yeah, good points; my reason for asking isn't quite so forward thinking -- just trying to get an image base to point circleci and the integration tests to :sweat_smile:

That being said, rather than merging to main, it does seem like perhaps a good idea to have a python 3.7 feature branch that lives in parallel as we sort out updates and fixing deprecation warnings and/or producing experimental builds.

dbluhm avatar Jul 06 '22 22:07 dbluhm

I'm not an expert on that approach, but do think it sounds like a reasonable idea. I would not want it to live long, but perhaps it should be around for a bit. We do need to get the world used to using 3.7.

swcurran avatar Jul 06 '22 22:07 swcurran

For now, I've pointed circleci and integration tests to ghcr.io/indicio-tech/von-image:py37-1.16-0 but happy to replace this with a more official image when we're ready.

dbluhm avatar Jul 06 '22 23:07 dbluhm

Codecov Report

Merging #1854 (1b3617f) into main (f0b2719) will increase coverage by 0.00%. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1854   +/-   ##
=======================================
  Coverage   93.72%   93.72%           
=======================================
  Files         536      536           
  Lines       34015    34013    -2     
=======================================
- Hits        31881    31880    -1     
+ Misses       2134     2133    -1     

codecov-commenter avatar Jul 07 '22 19:07 codecov-commenter

Using a very rough tool I cobbled together, my most recent commits on this PR update usage of marshmallow fields to correct deprecations made in newer versions. The tool can be found here: https://github.com/dbluhm/acapy-marshmallow-upgrade. This significantly increases the number of lines touched by this PR. I can replay the changes on a different PR if that is preferred.

dbluhm avatar Jul 19 '22 17:07 dbluhm

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 23 Security Hotspots
Code Smell A 18 Code Smells

No Coverage information No Coverage information
10.6% 10.6% Duplication

sonarcloud[bot] avatar Aug 16 '22 21:08 sonarcloud[bot]

What is the status of this @burdettadam / @dbluhm ?

We have a new-to-ACA-Py dev @Jsyro looking at the failing Python 3.7 and 3.10 tests to see if he can get them to run. Should he take over this? Any suggestions on next steps?

Thanks!

swcurran avatar Mar 28 '23 17:03 swcurran

This PR sought to update dependencies and to resolve deprecation warnings. We solved a number of issues but this PR has since grown stale (partially out of a shift in focus to get container images with newer python versions first, partially out of just getting busy with other tasks). I think this probably just needs to be closed but if we're interested in solving the many deprecation warnings from marshmallow, the pattern I used and described in my comments above I think are still relevant.

dbluhm avatar Mar 30 '23 20:03 dbluhm

@Jsyro — definitely take a look at the changes and discussion on this.

swcurran avatar Mar 30 '23 21:03 swcurran