I posted a draft PR to improve Webconf response to package installation errors. I’m not a front-end guy so I used Google AI for help, and the result works but doesn’t look great. It also doesn’t use any existing error popup used by Webconf (if there are any, which I don’t recall.)
Anyway, someone please take a look at
and LMK how I can improve the fix.
Hi @jlearman !
I just pushed a set of changes to implement versioning & updates for packages.
This seems to have broken your PR. Please, could you fix it? If not, don’t worry, i will do ASAP.
Regards,
1 Like
I’m out of town today so probably Saturday. Shouldn’t be a problem, the changes are simple enough. I saw the conflict, resolution is trivial but I don’t want to do it in a hurry.
Conflict resolved, please advise.
Having trouble testing after doing a webconf upgrade (from vangelis.)
Sorry, posted some wrong info … stay tuned.
Do I need to do anything special to update Vangelis?
Reloading webconf packages (clearing cache, using control-shift-R) isn’t calling my current edited version of a package update script (DrawbarOrgan.) No idea why, but if I change it to return “not installed” so it’ll fail when installing, it still appears installed, and any attempt to add some side effect to the script (echoing to stderr or to a file in /tmp) has no effect.
This is the case whether I use the webconf service, or stop it and run it from the shell.
So, it’s hard to test causing an install error, and it’ll be hard to test an updated install script. What am I missing?
I also hit a minor issue running my webconf fork (GitHub - jlearman/zynthian-webconf: Web Configuration Tool · GitHub vangelis branch.) When I do that, I get
ValueError: certfile “cert/cert.pem” does not exist
Maybe my fork is goofed up. I’ll try recreating it (trivial).
PS: recreated fork, same issue. I also get the same issue if I clone zynthian/zynthian-webconf, so there’s some magic needed to install zynthian-webconf. This is new. Anyway, I worked around it by copying the cert dir. Perhaps it gets created on first boot.
But I’m still stuck that my modified package install scripts aren’t being used, so I can’t test my change.
Thanks!
Note that my latest changes to the package system to allow versioning and updates, include changes in 3 repositories:
- zynthian-webconf
- zynthian-sys
- zynthian-packages
All the 3 MUST be updated at same time and the script that creates the “installed packages” directory in the config dir and copy inside the inicial info MUST be executed. This script should be run automatically when updating the system (Vangelis or tomita). Probably your modified branch has caused the update to fail and now it’s in an undefined state.
Regards
Aha! I see now, it’s the existence of zynthian/config/packages that’s new (or now used differently) and interfered with my test method, which is no longer valid. As a workaround, I created a new temporary trivial test package that would fail on install.
So, I’m back to my original request for help, seeing if we could improve the appearance, and whether the approach is a good one.
Yep, this is a new directory that allows saving info about the installed version and also allows to install packages from other repositories (not the official zynthian-packages). The latter is not implemented yet, but this change paves the way for this.
Having the installed version allows to implement the update functionality, that is already deployed and working fine.
Regarding the version, i have implemented 2 possibilities:
- package version from info.yml, set by hand by the package maintainers
- git version, managed automatically. For getting this to work, there are 2 simple functions that must be added to install script for the git installed packages. I’ve already done it.
I will update the zynthian-packages documentation to include all this.
Regards,
1 Like