diff --git a/docs/requirements/037-corporate-design-overhaul.md b/docs/requirements/037-corporate-design-overhaul.md index 5e0c41d04d..252c0db3a2 100644 --- a/docs/requirements/037-corporate-design-overhaul.md +++ b/docs/requirements/037-corporate-design-overhaul.md @@ -73,7 +73,7 @@ Two base commits changed many roles after their last run: `6c2de017f8` split ven - [x] web-app-gitea - [ ] web-app-gitlab: final state never ran (the design-only commit removed the administrator provisioning); `/admin` is checked for HTTP 200 only. - [x] web-app-hermes -- [ ] web-app-homeassistant: `vars/main.yml` changed after the last role sync that deployed the role. +- [x] web-app-homeassistant - [x] web-app-hugo - [x] web-app-jellyfin - [x] web-app-jenkins @@ -86,24 +86,24 @@ Two base commits changed many roles after their last run: `6c2de017f8` split ven - [ ] web-app-litellm: logo swapped by CSS `content` instead of LiteLLM's `logo_url` setting. - [x] web-app-littlejs - [ ] web-app-magento: literal `darkgrey` at `style.css.j2:5513` and `:5554`; `style.css.j2` changed by `6c2de017f8` after the last run. -- [ ] web-app-mastodon: switch to the platform administrator not deployed. +- [x] web-app-mastodon - [ ] web-app-matomo: Matomo's own `themeMode` preference is not exercised (the spec flips the DOM); the administration is not asserted. -- [ ] web-app-matrix: `vars/main.yml` rewritten after the last complete run. +- [x] web-app-matrix - [ ] web-app-mattermost: about 50 literal RGB fallbacks inside `var()` in `style.css.j2`; `style.css.j2` changed by `6c2de017f8` after the last run. - [x] web-app-mediawiki - [x] web-app-mini-qr - [x] web-app-mobilizon -- [ ] web-app-moodle: `test-design.js` rewritten after the last complete run; page-slot lockup changed by `63f3631567`. +- [x] web-app-moodle - [x] web-app-n8n - [x] web-app-nextcloud - [x] web-app-odoo - [x] web-app-openbao -- [ ] web-app-openclaw: `test-design.js` rewritten after the last complete run. -- [ ] web-app-opencloud: `tasks/main.yml` restructured after the last deploy with design on. +- [x] web-app-openclaw +- [x] web-app-opencloud - [x] web-app-openproject - [ ] web-app-opentalk: the conference room is not covered; the native theme setting is half exercised; the title check cannot fail; logo lockup changed by `63f3631567`. - [ ] web-app-openwebui: logo and title stay Open WebUI's own because clause 4 of its license allows replacing the branding only up to 50 users, with written permission or under an enterprise license (operator decision, see `roles/web-app-openwebui/TODO.md`). -- [ ] web-app-peertube: `tasks/design/apply.yml` rewritten after the last green run. +- [x] web-app-peertube - [x] web-app-penpot - [x] web-app-pgadmin - [x] web-app-phpmyadmin @@ -116,7 +116,7 @@ Two base commits changed many roles after their last run: `6c2de017f8` split ven - [x] web-app-seaweedfs - [x] web-app-semaphore - [ ] web-app-shopware: literal colors (`gold`, SVG fills) in `style.css.j2`; `style.css.j2` changed by `6c2de017f8` after the last run. -- [ ] web-app-snipe-it: the complete spec never ran green on the final `test-design.js`. +- [x] web-app-snipe-it - [x] web-app-socialhome - [x] web-app-sphinx - [ ] web-app-stalwart: under `sso` the web administration specs need the administrator group grant of `feature/store-i18n` (`199f2a6d41`); no green run on the merged state yet. @@ -125,7 +125,7 @@ Two base commits changed many roles after their last run: `6c2de017f8` split ven - [x] web-app-wordpress - [x] web-app-xwiki - [x] web-app-yourls -- [ ] web-app-zammad: switch to the platform administrator and the move of the watermark defaults not deployed. +- [x] web-app-zammad - [x] web-svc-html - [x] web-svc-libretranslate - [x] web-svc-logout diff --git a/roles/svc-ai-ollama/meta/services.yml b/roles/svc-ai-ollama/meta/services.yml index 14c4ee6a36..6068a8177d 100644 --- a/roles/svc-ai-ollama/meta/services.yml +++ b/roles/svc-ai-ollama/meta/services.yml @@ -13,7 +13,7 @@ ollama: backup: no_stop_required: true image: ollama/ollama - version: 0.40.4 + version: 0.40.5 name: ollama gpu: true min_storage: 3473MB diff --git a/roles/sys-ctl-hlth-csp/vars/main.yml b/roles/sys-ctl-hlth-csp/vars/main.yml index ea8d4a0ce0..9e20db80a0 100644 --- a/roles/sys-ctl-hlth-csp/vars/main.yml +++ b/roles/sys-ctl-hlth-csp/vars/main.yml @@ -8,5 +8,6 @@ HEALTH_CSP_SKIP_DOMAINS: >- {{ ( lookup('csp_skip_domains', group_names=lookup('deployment').deployed) + (CURRENT_PLAY_REDIRECT_DOMAINS | default([]) + | rejectattr('target', 'in', CURRENT_PLAY_DOMAINS_ALL) | map(attribute='source') | list) ) | unique }} diff --git a/roles/web-app-erpnext/meta/services.yml b/roles/web-app-erpnext/meta/services.yml index bf70fd07bb..4c0778f5f8 100644 --- a/roles/web-app-erpnext/meta/services.yml +++ b/roles/web-app-erpnext/meta/services.yml @@ -68,7 +68,7 @@ erpnext: enabled: true shared: true image: frappe/erpnext - version: "v16.51.0" + version: "v16.51.1" name: erpnext min_storage: 1017MB ports: diff --git a/roles/web-app-nextcloud/meta/addons/onlyoffice.yml b/roles/web-app-nextcloud/meta/addons/onlyoffice.yml index e1ee56880b..ba5d4aa6b6 100644 --- a/roles/web-app-nextcloud/meta/addons/onlyoffice.yml +++ b/roles/web-app-nextcloud/meta/addons/onlyoffice.yml @@ -16,9 +16,6 @@ config: - richdocuments - fileslibreofficeedit plugin_configuration: - - appid: "onlyoffice" - configkey: "DocumentServerUrl" - configvalue: "{{ NEXTCLOUD_ONLYOFFICE_URL }}" - appid: "onlyoffice" configkey: "DocumentServerInternalUrl" configvalue: "{{ NEXTCLOUD_ONLYOFFICE_URL }}" @@ -34,3 +31,6 @@ config: - appid: "onlyoffice" configkey: "verify_peer_off" configvalue: "false" + - appid: "onlyoffice" + configkey: "DocumentServerUrl" + configvalue: "{{ NEXTCLOUD_ONLYOFFICE_URL }}" diff --git a/roles/web-app-nextcloud/tasks/addons/onlyoffice.yml b/roles/web-app-nextcloud/tasks/addons/onlyoffice.yml index ed97d539c0..3b10115fd5 100644 --- a/roles/web-app-nextcloud/tasks/addons/onlyoffice.yml +++ b/roles/web-app-nextcloud/tasks/addons/onlyoffice.yml @@ -1 +1,15 @@ --- +- name: "⏱️ Set the deadline for the document server check" + set_fact: + nextcloud_onlyoffice_check_deadline: "{{ now(utc=true).timestamp() + (lookup('timeout', 300) | int) }}" + +- name: "🔎 Check the document server round trip and reset onlyoffice's settings_error" + shell: > + {{ NEXTCLOUD_DOCKER_EXEC_OCC }} onlyoffice:documentserver --check + register: nextcloud_onlyoffice_check + until: >- + nextcloud_onlyoffice_check.rc == 0 + or now(utc=true).timestamp() > nextcloud_onlyoffice_check_deadline | float + retries: 30 + delay: 10 + changed_when: false diff --git a/roles/web-app-openclaw/files/playwright/test-design.js b/roles/web-app-openclaw/files/playwright/test-design.js index 7c396405a9..518d60b795 100644 --- a/roles/web-app-openclaw/files/playwright/test-design.js +++ b/roles/web-app-openclaw/files/playwright/test-design.js @@ -130,7 +130,7 @@ function dashboardViews(base) { await ready("Sessions")(page); const showAll = page.getByRole("button", { name: "Show all", exact: true }); if (await showAll.isVisible()) await showAll.click(); - await expect(page.locator("main .session-key-cell").first()).toBeVisible(); + await expect(page.locator("main .session-key-cell, main .data-table-empty-cell").first()).toBeVisible(); }, }, { diff --git a/roles/web-app-xwiki/meta/addons/oidc-authenticator.yml b/roles/web-app-xwiki/meta/addons/oidc-authenticator.yml index 16f95f37ce..c0513c6e50 100644 --- a/roles/web-app-xwiki/meta/addons/oidc-authenticator.yml +++ b/roles/web-app-xwiki/meta/addons/oidc-authenticator.yml @@ -5,7 +5,7 @@ mechanism: extension source: upstream bridges: - sso -version: "2.28.1" +version: "2.29.0" update: type: http_regex url: https://maven.xwiki.org/releases/org/xwiki/contrib/oidc/oidc-authenticator/maven-metadata.xml diff --git a/tests/unit/python/roles/web-app-nextcloud/test_onlyoffice_check_deadline.py b/tests/unit/python/roles/web-app-nextcloud/test_onlyoffice_check_deadline.py new file mode 100644 index 0000000000..5ca872e41f --- /dev/null +++ b/tests/unit/python/roles/web-app-nextcloud/test_onlyoffice_check_deadline.py @@ -0,0 +1,28 @@ +from __future__ import annotations + +import unittest + +from utils.cache.files import PROJECT_ROOT, read_text +from utils.cache.yaml import load_yaml_str + +TASKS = PROJECT_ROOT / "roles/web-app-nextcloud/tasks/addons/onlyoffice.yml" + + +class TestOnlyofficeCheckDeadline(unittest.TestCase): + def setUp(self) -> None: + self.tasks = load_yaml_str(read_text(str(TASKS))) + + def test_the_deadline_is_set_before_the_check(self) -> None: + deadline, check = self.tasks + self.assertIn("nextcloud_onlyoffice_check_deadline", deadline["set_fact"]) + self.assertIn("lookup('timeout'", deadline["set_fact"]["nextcloud_onlyoffice_check_deadline"]) + self.assertEqual(check["register"], "nextcloud_onlyoffice_check") + + def test_the_retries_stop_at_the_deadline(self) -> None: + until = self.tasks[1]["until"] + self.assertIn("nextcloud_onlyoffice_check.rc == 0", until) + self.assertIn("now(utc=true).timestamp() > nextcloud_onlyoffice_check_deadline", until) + + +if __name__ == "__main__": + unittest.main() diff --git a/tests/unit/python/roles/web-app-nextcloud/test_onlyoffice_configuration_order.py b/tests/unit/python/roles/web-app-nextcloud/test_onlyoffice_configuration_order.py new file mode 100644 index 0000000000..46842ce58f --- /dev/null +++ b/tests/unit/python/roles/web-app-nextcloud/test_onlyoffice_configuration_order.py @@ -0,0 +1,24 @@ +from __future__ import annotations + +import unittest + +from utils.cache.files import PROJECT_ROOT, read_text +from utils.cache.yaml import load_yaml_str + +ADDON = PROJECT_ROOT / "roles/web-app-nextcloud/meta/addons/onlyoffice.yml" + + +class TestOnlyofficeConfigurationOrder(unittest.TestCase): + def test_the_document_server_url_is_written_last(self) -> None: + config = load_yaml_str(read_text(str(ADDON)))["config"]["plugin_configuration"] + self.assertEqual( + config[-1]["configkey"], + "DocumentServerUrl", + "a cron.php that caches app config before the last write must see no " + "DocumentServerUrl, or onlyoffice's EditorsCheck runs without jwt_secret " + "and latches settings_error", + ) + + +if __name__ == "__main__": + unittest.main()