-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Upgrade to latest yarn
version + upgrade all GH actions
#843
Upgrade to latest yarn
version + upgrade all GH actions
#843
Conversation
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.
Nice.
Not sure how to test it actually.
The first test is to use a local virtual machine to provision from scratch and see if the app works there. The next test is to use this branch to provision a staging server and make sure that nothing breaks.
@openfoodfoundation/core-devs anybody up for testing this? :) |
Sorry I've been wanting to look into this and the questions about docker. Hopefully I can pick it up next week. |
I spent time getting the vagrant VM working on my my environment, and when I ran
But I also seem to get an error when provisioning from the master branch, so might need to work on my environment some more. To be continued... |
Maybe @heroinedor can take a look? I wonder if he's any closer to having such an environment ready. |
157a37f
to
58a1b55
Compare
From CI:
|
Don't know if this is the issue, but there seems to be some discrepancies in how Python is setup. The version CI uses is configured here ofn-install/.github/workflows/build.yml Lines 31 to 35 in b5709e5
The version used elsewhere I guess is from the readme https://github.com/openfoodfoundation/ofn-install#python We have issues #663 and #765 regarding upgrading Python version, and I don't think we can close #663 just yet. |
Build is green now with only the patch change on When changing node version to version 16 or 18, it failed. Will try with 15. |
Not working for |
Upgrading to python 3.8.2 failed 😣
Upgrading all GH actions is OK ✅ |
I wonder if the Python fail is related to #842 and jinja2 dependency. |
Good pickup Sigmund. Yes I agree I think that latest error is specifically due to Jinja2 3.1. As mentioned on that issue, you could workaround by using an older version:
|
Welcome to the nightmare of dependencies when a project is not up to date ;) |
When specifying version of jinja2 in |
AND IT'S GREEN ;) Will clean the git history, and then think it's ready to be in code review ;) |
9011c7f
to
67951d8
Compare
Ok, build is broken. Probably a "false positive" (???), or a bad eyes for me. |
I don't think you ever got it green with nodejs > 14, did you? |
Ok, with node_version at 15.x, we have this error:
Seems like upgrading node implies to upgrading also ansible? |
With node 14.x, I thought I had a green build, but let's try. |
Yes, but not above 14 🙂 |
Yes, that's exactly what I have in mind. |
62cb8e7
to
042a8ca
Compare
042a8ca
to
b1f074e
Compare
nodejs
and yarn
versionyarn
version + upgrade all GH actions
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.
Ok, so in summary:
- Yarn latest version
- Node -- no change
- GH Actions latest version each
- Python latest version
- And lock to older version of Jinja2 (From memory, due to both Ansible 2.7 and our code)
I just double-checked, and the Ansible 2.7 docs confirm compatibility with Python 3.5+ ( https://docs.ansible.com/ansible/2.7/installation_guide/intro_installation.html#:~:text=Currently%20Ansible%20can%20be%20run,the%20BSDs%2C%20and%20so%20on. )
Question: Are there any dependencies that should also be updated in openfoodnetwork?
I don't think so (and maybe you already checked).
- Yarn seems to be implicitly latest version
- Node is already on a later version (hence this issue)
- GH Actions already latest version
- Python -- n/a
- Jinja2 -- n/a
Any documentation to update? Setting Python version is a manual setup task for ofn-install, but it already says 3.8.2. So this PR brings us in line with that (yay!).
So I think we're all good to go, except sadly we didn't get to do Node this time :(
Because we are changing yarn version, I think we should still do a dev test provision & deployment to vagrant (I will try to do this today), and also a staging provision & deployment for testing.
Tried testing dev deployment with vagrant today, but my VM has hung, so I will try again tomorrow after a system restart.. |
Absolutely, thanks for sum-up, will update the description.
I've wanted to update here because I've updated the ofn app: openfoodfoundation/openfoodnetwork#9820 (realized that we could update to nodejs 18.x too...)
Yep. It's a half fail (but a half win too :p)
Thanks for that! |
Dev Test
I did a basic smoke screen test on staging: login and bulk edit a product. No errors in console, so I assume all the JS dependencies are installed fine. @jibees do you think it necessary for further user testing? If not, good to go! |
I think it's good then! |
Actually, do not close #838
Not sure how to test it actually. I guess this is a question for @mkllnk and @heroinedor ;)