-
Notifications
You must be signed in to change notification settings - Fork 28
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
⬆️ Bulk upgrade common dependencies #450
⬆️ Bulk upgrade common dependencies #450
Conversation
4e4f25f
to
94065ac
Compare
Aah, I've encountered a bug with doing these bulk upgrades. Integration tests and everything passed on our fork: didx-xyz#191 But then testing with ACA-Py 0.12.1, any method that attempts to use ld_proofs will fail: 2024-05-09 14:48:58,232 aries_cloudagent.core.dispatcher ERROR Handler error: validation_middleware
Traceback (most recent call last):
File "/home/aries/.local/lib/python3.9/site-packages/pyld/context_resolver.py", line 143, in _fetch_context
remote_doc = jsonld.load_document(url,
File "/home/aries/.local/lib/python3.9/site-packages/pyld/jsonld.py", line 6583, in load_document
=================
remote_doc = options['documentLoader'](url, options)
File "/home/aries/.local/lib/python3.9/site-packages/aries_cloudagent/vc/ld_proofs/document_loader.py", line 111, in __call__
document = loop.run_until_complete(coroutine)
File "uvloop/loop.pyx", line 1511, in uvloop.loop.Loop.run_until_complete
File "uvloop/loop.pyx", line 1504, in uvloop.loop.Loop.run_until_complete
File "uvloop/loop.pyx", line 1377, in uvloop.loop.Loop.run_forever
File "uvloop/loop.pyx", line 518, in uvloop.loop.Loop._run
RuntimeError: this event loop is already running. Some digging revealed to me what's new is that upgrading
|
Issue for above-mentioned incompatibility between |
Managed to fix the above incompatibility by replacing |
Thanks for looking into this and doing upgrades. Just a note that now that release workflows are merged, we won't want the This is a bit complicated and will make doing upgrades a bit trickier, but hopefully less work to manage a lot of plugins and dependencies. Unfortunately, it caused a lot of merge conflicts. I'm not sure the work involved to rebase this. |
3d4cca4
to
83f3c90
Compare
Itt should help with that. It updates the lock files for all plugins that pass their tests whenever a new version of aries-cloudagent is published.. I think the downgrade could still happen if you install a plugin, and it's extras, when it is on an older version of aries-cloudagent. Currently all are on 0.12.1 now. |
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
83f3c90
to
9005dc0
Compare
Ready for review! I understand there's new workflows in place, for maintaining the acapy version and others with plugins_globals, but idk how that impacts the goal of this PR, of once-off getting everything up to latest. So please let me know any changes that are necessary! |
It shouldn't affect this PR. This was done correctly by upgrading the It would be wrong if it only upgraded dependencies in a plugin that is also shared by the Also upgrading I'll go over it a bit more carefully soon, but I think we can merge this. |
update_all_lock_files.sh
Outdated
@@ -0,0 +1,18 @@ | |||
#!/bin/bash |
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.
This is almost the same as what's found in the repo_manger.py
script selection 2 but without overriding with plugin_globals.
Maybe you could add another selection to the repo_manager instead of adding this bash script file?
Some parts of the file are complicated but it should be pretty easy to add this logic to the main method and ignore the rest of the 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.
Cool! Didn't notice that python script. That's great, I'll integrate the logic into there instead 👍
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.
@jamshale I made the change (we have ChatGPT to thank for the speed). And I included some typo fixes :-)
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
Signed-off-by: ff137 <ff137@proton.me>
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.
Great! Thanks for this.
So many spelling mistakes :(
@jamshale 👌 |
Follows up from #449
Uses find-replace-all to upgrade the following dependencies across pyptoject.toml files:
Also specific to redis-events plugin:
Please review commit logs to verify this.
Does not include upgrades to older sub-projects, which are pinned to older python versions:
Note: I added a bash script that helps with applying poetry lock to every relevant directory. May be helpful for future use.
Tada! 🎉 This should clear up a bunch of open dependabot PRs, and should hopefully make maintaing this multi-project repo a bit easier
Side-note: the following:
complains about: