Thursday, December 28, 2023
dev@conference.yunohost.org
December
Mon Tue Wed Thu Fri Sat Sun
        1
2
3
4
5
6
7
8
9
10
11 12 13
14
15
16
17
18
19
20
21
22
23
24
25 26
27
28
29
30 31
             

[01:46:57] <Yunohost Git/Infra notifications> [yunohost] @alexAubin pushed 2 commits to dev ([f12ed69b7b19...6c3290d8bf63](https://github.com/YunoHost/yunohost/compare/f12ed69b7b19...6c3290d8bf63))
[01:47:57] <Yunohost Git/Infra notifications> 🏗️ Starting build for yunohost/11.2.9.1 for bullseye/stable/all ...
[01:49:14] <Yunohost Git/Infra notifications> ✔️ Completed build for yunohost/11.2.9.1 for bullseye/stable/all.
[01:57:30] <Yunohost Git/Infra notifications> [yunohost] @alexAubin pushed 21 commits to bookworm ([7eb1413d092b...0a01423408bd](https://github.com/YunoHost/yunohost/compare/7eb1413d092b...0a01423408bd))
[01:57:35] <Yunohost Git/Infra notifications> [yunohost/bookworm] helpers/utils: replace the damn ynh_die with a warning when patch fails to apply ... - Alexandre Aubin
[02:00:55] <Yunohost Git/Infra notifications> 🏗️ Starting build for yunohost/11.2.9.1+202312280200 for bullseye/unstable/all ...
[02:02:17] <Yunohost Git/Infra notifications> ✔️ Completed build for yunohost/11.2.9.1+202312280200 for bullseye/unstable/all.
[02:02:27] <Yunohost Git/Infra notifications> 🏗️ Starting build for yunohost/12.0.0+202312280200 for bookworm/unstable/all ...
[02:04:12] <Yunohost Git/Infra notifications> ✔️ Completed build for yunohost/12.0.0+202312280200 for bookworm/unstable/all.
[02:15:30] <Yunohost Git/Infra notifications> [yunohost] @alexAubin closed [pull request #1679](https://github.com/YunoHost/yunohost/pull/1679): Simplify handling of ssh_password_authentication
[02:15:33] <Yunohost Git/Infra notifications> [yunohost] @alexAubin closed [pull request #1593](https://github.com/YunoHost/yunohost/pull/1593): enh-PostgreSQL helpers for multidatabases handling
[02:15:33] <Yunohost Git/Infra notifications> [yunohost] @alexAubin [commented](https://github.com/YunoHost/yunohost/pull/1593#issuecomment-1870757885) on [issue #1593](https://github.com/YunoHost/yunohost/pull/1593) enh-PostgreSQL helpers for multidatabases handling: Been almost a year, sorry, closing because this is way too specific and so far theres only one example of app requiring...
[02:15:33] <Yunohost Git/Infra notifications> [yunohost] @alexAubin [commented](https://github.com/YunoHost/yunohost/pull/1679#issuecomment-1870757865) on [issue #1679](https://github.com/YunoHost/yunohost/pull/1679) Simplify handling of ssh_password_authentication : Closing because honestly "meh" ... If we really want to improve SSH security, the first thing to work on would be to int...
[02:19:24] <Yunohost Git/Infra notifications> [yunohost] @alexAubin [commented](https://github.com/YunoHost/yunohost/pull/1487#issuecomment-1870760617) on [issue #1487](https://github.com/YunoHost/yunohost/pull/1487) [enh] Add level 0 bullseye apps to disclaimer: Closing because as explained, the intended message is really about apps flagged as (longterm) notworking, not about apps...
[02:19:26] <Yunohost Git/Infra notifications> [yunohost] @alexAubin closed [pull request #1487](https://github.com/YunoHost/yunohost/pull/1487): [enh] Add level 0 bullseye apps to disclaimer
[02:19:29] <Yunohost Git/Infra notifications> [yunohost] @alexAubin deleted branch fix-disclaimer-bullseye
[02:29:18] <Yunohost Git/Infra notifications> [issues] @alexAubin labeled :birthday: feature on [issue #2301](https://github.com/YunoHost/issues/issues/2301): Proper handling of Content-Security-Policy / modularity, not overriding the apps header ...
[02:29:58] <Yunohost Git/Infra notifications> [issues] @alexAubin opened [issue #2301](https://github.com/YunoHost/issues/issues/2301): Proper handling of Content-Security-Policy / modularity, not overriding the apps header ...
[02:34:25] <Yunohost Git/Infra notifications> [yunohost] @alexAubin closed [pull request #1432](https://github.com/YunoHost/yunohost/pull/1432): Removes nginx Content-Security-Policy overrides
[02:34:25] <Yunohost Git/Infra notifications> [yunohost] @alexAubin [commented](https://github.com/YunoHost/yunohost/pull/1432#issuecomment-1870764025) on [issue #1432](https://github.com/YunoHost/yunohost/pull/1432) Removes nginx Content-Security-Policy overrides: To be continued in https://github.com/YunoHost/issues/issues/2301
[02:47:34] <Yunohost Git/Infra notifications> [yunohost] 🔴 Pipeline [#1120597134](https://gitlab.com/yunohost/yunohost/-/pipelines/1120597134) failed on branch dev, bookworm
[16:47:59] <Yunohost Git/Infra notifications> [yunohost] @tituspijean pushed 1 commit to enh_app_shell: Automatically enable Python environment in app shells assuming it is in install_dir/venv ([1c083845](https://github.com/YunoHost/yunohost/commit/1c083845e7d5640ef895fe9c1c500e0a1f279855))
[16:47:59] <Yunohost Git/Infra notifications> [yunohost] @tituspijean created new branch enh_app_shell
[16:50:10] <Yunohost Git/Infra notifications> [yunohost] @tituspijean opened [pull request #1756](https://github.com/YunoHost/yunohost/pull/1756): Enhance app shells
[16:51:04] <tituspijean> Is it possible to only show the wall of code being executed by `yunohost app shell` if we use the `--debug` flag?
[16:51:40] <tituspijean> right now the UX is... not great 😅
[16:52:13] <tituspijean> > <@yunohostinfra:matrix.org> [yunohost] @tituspijean pushed 1 commit to enh_app_shell: Automatically enable Python environment in app shells assuming it is in install_dir/venv ([1c083845](https://github.com/YunoHost/yunohost/commit/1c083845e7d5640ef895fe9c1c500e0a1f279855))

inspired by https://forum.yunohost.org/t/the-best-way-to-add-python-modules-to-pelican-la-meileure-methode-pour-ajouter-modules-python-a-pelican/27786/2
[16:52:46] <Tag> Eeeeeh there wall of code is generated by bash because we use shopt +chépaquoi ?
[16:53:01] <Tag> inside helpers
[16:53:13] <tituspijean> hum maybe
[16:53:27] <tituspijean> it looks like this
```
➜ titus yunohost app shell pelican
+ echo '! Helper used in legacy mode !'
+ set +x
+ [[ ! /bin/bash =~ /?bash$ ]]
++ jq -r '.apps[].id'
++ yunohost app list --output-as json --quiet
+ installed_apps_list=('aeneria' 'borgwarehouse' 'conduit' 'cryptpad' 'dendrite' 'dex' 'dispatch' 'element' 'galene' 'gitea' 'grav' 'headscale' 'jellyfin-vue' 'jirafeau' 'lxd' 'minio' 'my_webapp' 'nextcloud' 'nodered' 'ntfy' 'paperless-ngx' 'pelican' 'phpldapadmin' 'phpmyadmin' 'piwigo' 'redirect' 'roundcube' 'shellinabox' 'signaturepdf' 'snappymail' 'unattended_upgrades' 'vaultwarden' 'wireguard' 'yunorunner' 'zerotier')
+ local installed_apps_list
+ [[ aeneria borgwarehouse conduit cryptpad dendrite dex dispatch element galene gitea grav headscale jellyfin-vue jirafeau lxd minio my_webapp nextcloud nodered ntfy paperless-ngx pelican phpldapadmin phpmyadmin piwigo redirect roundcube shellinabox signaturepdf snappymail unattended_upgrades vaultwarden wireguard yunorunner zerotier != *\ \p\e\l\i\c\a\n\ * ]]
+ id -u pelican
++ ynh_app_setting_get --app=pelican --key=install_dir
++ local _globalapp=pelican
++ local legacy_args=ak
++ args_array=(['a']='app=' ['k']='key=')
++ local -A args_array
++ local app
++ local key
++ ynh_handle_getopts_args --app=pelican --key=install_dir
++ set +o xtrace
...
```
[16:53:59] <Tag> that's because we source helpers somewhere in app_shell-)
[16:54:02] <Tag> that's because we source helpers somewhere in app\_shell()
[16:54:45] <Tag> (je re-re-redécouvre le code de l'app shell)
[16:56:17] <tituspijean> yup here: https://github.com/YunoHost/yunohost/blob/6c3290d8bf63143b3426006877b607013895aad5/src/app.py#L1693
[17:02:15] <Tag> ça n'a pas l'air trivial du tout comme demande /o\
[17:04:48] <tituspijean> *je sais* 😶‍🌫️
[17:05:34] <tituspijean> what I don't understand is that when one manually does `source /usr/share/yunohost/helpers`, it's silent
[17:09:36] <Tag> mmmh it's not ?
[17:09:44] <Tag> I mean IIRC
[17:11:40] <tituspijean> Ah I think the magic happens here: https://github.com/YunoHost/yunohost/blob/dev/share/helpers
[17:13:01] <tituspijean> I'll try running `set +x` before the call to the helper
[17:13:01] <tituspijean> nope
[17:18:31] <Aleks (he/him/il/lui)> adore les thread matrix qui de manière complètement random se remettent en status "non-lu" alors que le truc date de 6 mois
[17:19:14] <tituspijean> *just matrix things*
[17:20:04] <Aleks (he/him/il/lui)> so yeah it's related to set +x hmm
[17:20:53] <tituspijean> and obviously adding `ynh_exec_quiet` before `ynh_app_spawn_shell` makes the thing hang 😆
[17:20:58] <Aleks (he/him/il/lui)> when we stource the helpers, the debug mode is temporary disabled but then re-enabled
[17:21:08] <Aleks (he/him/il/lui)> https://github.com/YunoHost/yunohost/blob/dev/share/helpers#L8C1-L8C22
[17:21:34] <Aleks (he/him/il/lui)> did you try `source /usr/share/yunohost/helpers && set +x && ynh_spawn_app_shell` ?
[17:21:49] <Aleks (he/him/il/lui)> the thing is that getopts also do some set +x/-x trickery
[17:22:30] <Aleks (he/him/il/lui)> could try adding set +x after `ynh_handle_getopts_args` in ynh_spawn_app_shell
[17:23:31] <tituspijean> > <@Alekswag:matrix.org> did you try `source /usr/share/yunohost/helpers && set +x && ynh_spawn_app_shell` ?

does not work
[17:25:21] <tituspijean> > <@Alekswag:matrix.org> could try adding set +x after `ynh_handle_getopts_args` in ynh_spawn_app_shell

interesting, the output is not silent but different
[17:25:25] <tituspijean> ```
>>> subprocess.run(["/bin/bash","-c","source /usr/share/yunohost/helpers && ynh_spawn_app_shell pelican"])
+ echo '! Helper used in legacy mode !'
+ set +x
+ set +x
++ app=pelican
++ [[ install_dir =~ (unprotected|protected|skipped)_ ]]
++ ynh_app_setting get pelican install_dir
++ set +o xtrace
++ app=pelican
++ [[ service =~ (unprotected|protected|skipped)_ ]]
++ ynh_app_setting get pelican service
++ set +o xtrace
++ app=pelican
++ [[ phpversion =~ (unprotected|protected|skipped)_ ]]
++ ynh_app_setting get pelican phpversion
++ set +o xtrace
++ app=pelican
++ [[ phpflags =~ (unprotected|protected|skipped)_ ]]
++ ynh_app_setting get pelican phpflags
++ set +o xtrace
```
[17:25:50] <Aleks (he/him/il/lui)> zgrmbl
[17:27:03] <tituspijean> wait it's the code related to the sub-calls to other helpers
[17:27:12] <Aleks (he/him/il/lui)> yeah
[17:27:14] <tituspijean> the code from the helper itself is silent
[17:28:09] <Aleks (he/him/il/lui)> *urge to make a joke related to Django unchained intensifies*
[17:28:31] <tituspijean> I need the joke now, for I do not get the reference 😅
[17:29:07] <tituspijean> something about slaves being "the help"? 😕
[17:29:33] <Aleks (he/him/il/lui)> https://www.youtube.com/watch?v=ci4g8D5wSww
[17:49:17] <Yunohost Git/Infra notifications> [issues] @ashledombos opened [issue #2302](https://github.com/YunoHost/issues/issues/2302): Improper handling of bracket-enclosed strings in configuration panel string form.
[17:53:06] <Yunohost Git/Infra notifications> [issues] @alexAubin [commented](https://github.com/YunoHost/issues/issues/2302#issuecomment-1871379481) on [issue #2302](https://github.com/YunoHost/issues/issues/2302) Improper handling of bracket-enclosed strings in configuration panel string form.: > I am currently working on a mailing list package, which includes a configuration panel option to modify the subject pr...
[18:20:08] <Yunohost Git/Infra notifications> [issues] @ashledombos [commented](https://github.com/YunoHost/issues/issues/2302#issuecomment-1871396507) on [issue #2302](https://github.com/YunoHost/issues/issues/2302) Improper handling of bracket-enclosed strings in configuration panel string form.: Hi @alexAubin Here is the relevant conf part get_prefix https://github.com/YunoHost-Apps/mlmmj_ynh/blob/e66126f7146cb2...
[19:09:37] <Skew> Hello, I'm trying to automate Yunohost installation thanks to Ansible. Here the a sample of my playbook:
```
- name: Yunohost GitLab install
tags:
- apps
become: true
ansible.builtin.expect:
command: yunohost app install gitlab --args "label=Gitlab&domain={{ domain_name }}&path=/Gitlab&is_public=no&install.use_web_account=0"
responses:
"(?i)This app requires 3000M RAM": "Yes, I understand"
"(?i)Choose an administrator user for this app": "test"
"(?i)Who should have access to this app? (This can later be changed)": "visitors"
```
I have this error: "Pick a valid value for argument 'init_main_permission': 'visitorstest'" how could I execute this command without error ?
[19:11:35] <kayou> Maybe add `init_main_permission=visitors` as args
[19:15:28] <Skew> Thanks I got new errors but not this one, I think I'll find out how to solve this. Thanks again
[19:15:48] <kayou> Np!
[21:58:01] <lapineige> https://social.coop/@derek/111652796642836606
[21:58:01] <lapineige> https://toot.si/@hook/111652185602047676