YunoHost-Apps / n8n_ynh

n8n package for YunoHost
https://n8n.io/
GNU General Public License v3.0
14 stars 19 forks source link

Testing #56

Closed CodeShakingSheep closed 5 months ago

CodeShakingSheep commented 5 months ago

Problem

Solution

PR Status

Automatic tests

Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

CodeShakingSheep commented 5 months ago

!testme

yunohost-bot commented 5 months ago

Alrighty! Test Badge

yunohost-bot commented 5 months ago

:book: Test Badge

CodeShakingSheep commented 5 months ago

!testme

yunohost-bot commented 5 months ago

May the CI gods be with you! Test Badge

yunohost-bot commented 5 months ago

:worm: Test Badge

CodeShakingSheep commented 5 months ago

I just tested upgrading from the testing branch on my server and there is an issue with ynh_app_upstream_version. Here is the relevant log part:

153729 DEBUG Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
153737 DEBUG + source _common.sh
153738 DEBUG ++ nodejs_version=20
153738 DEBUG +++ ynh_app_upstream_version
153741 WARNING _common.sh: line 9: ynh_app_upstream_version: command not found
153741 DEBUG ++ n8n_version=
153742 DEBUG +++ cat /etc/timezone
153742 DEBUG ++ timezone=Etc/UTC
153742 DEBUG +++ cat /etc/yunohost/current_host
153742 DEBUG ++ main_domain=business-suite.unseen-horizons.com

Nevertheless, the app is being upgraded, but not to version 1.29.0 but to the latest available version 1.34.2. :smile: Any ideas about the warning @tituspijean @alexAubin ?

tituspijean commented 5 months ago

If you look at the install and upgrade scripts:

source _common.sh
source /usr/share/yunohost/helpers

While calling _common.sh before the helpers (and that's the right way to do it), the ynh_app_upstream_version helper is not available. Next commit will fix that.

tituspijean commented 5 months ago

!testme

yunohost-bot commented 5 months ago

:books: :bug: Test Badge

yunohost-bot commented 5 months ago

Meow :cat2: Test Badge

tituspijean commented 5 months ago

! The license id 'Apache-2.0' is not registered in https://spdx.org/licenses/.

Suuuuuuure...

CodeShakingSheep commented 5 months ago

Awesome! Just tested it again on my server and it works fine. :raised_hands: