diff --git a/CHANGELOG.md b/CHANGELOG.md index 89558f981f..1bbf195b05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [9.1.0] - 2026-06-01 + +* * More robust Nix installer on Debian, Ubuntu, Fedora and CentOS systems: stale nixbld users from earlier installation attempts are cleaned up before the multi-user installer runs, and a long-standing crash on hosts where the nixbld group is absent has been resolved. +* Outbound mail health checks no longer fail silently on minimal container images: the heartbeat-email script copes with images that ship without the hostname binary, and the SSL trust file path is detected automatically across Red Hat, Debian, Ubuntu, Alpine and NixOS layouts. +* The Zammad helpdesk role completes its single-sign-on schema unification, with the variant matrix and Playwright test suite brought in line with the new shape. +* Internal infrastructure cleanups: re-synchronised .dockerignore and a shifted weekly CI schedule. + +Release maintained by [Kevin Veen-Birkenbach](https://veen.world). + ## [9.0.2] - 2026-05-29 * Restores the Debian dev-image build by introducing the INFINITO_VENV_DIR SPOT and calling infinito via its absolute venv path in scripts/docker/entry.sh, so the post-`make install` version check no longer trips on the PATH that bash -lc clobbers via /etc/profile; also scopes the auto-update PR dedup fingerprint to the files a run actually committed (instead of the whole commit tree) so unrelated drift on main no longer forces a fresh PR on every daily cron, nests web-app-bluesky's nocheck markers under the acl block they describe, and rolls up dependabot bumps (actions/cache 4→5, actions/setup-node 4→6) plus routine Docker image / git ref refreshes. diff --git a/package-lock.json b/package-lock.json index f93420dc8e..ab6eb569a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "devDependencies": { "@eslint/js": "^10.0.1", "@playwright/test": "^1.55.0", - "eslint": "^10.4.0", + "eslint": "^10.4.1", "eslint-plugin-playwright": "^2.10.4", "globals": "^15.14.0" } @@ -130,9 +130,9 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.1.tgz", - "integrity": "sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==", + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.2.tgz", + "integrity": "sha512-+CNAzxglkrpNf/kKywqQfk74QjtceuOE7Qm+AF8miRvPF/wmmK5+OJOgVh3AVTT3RP2mH3+FOaxlE5v72owk0A==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -363,9 +363,9 @@ } }, "node_modules/eslint": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.4.0.tgz", - "integrity": "sha512-loXy6bWOoP3EP6JA7jo6p5jMpBJmHmsNZM5SFRHLdh1MGOPurMnNBj4ZlAbaqUAaQWbCr7jHV4P7gzAyryZWkQ==", + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.4.1.tgz", + "integrity": "sha512-AyIKhnOBuOAdueD7RB3xB+YeAWScb9jHsJBgH2Hcde8InP5JYhqrRR6iTMHyTEwgENK54Cp44e4v8BwNhsuHuw==", "dev": true, "license": "MIT", "dependencies": { @@ -374,7 +374,7 @@ "@eslint/config-array": "^0.23.5", "@eslint/config-helpers": "^0.6.0", "@eslint/core": "^1.2.1", - "@eslint/plugin-kit": "^0.7.1", + "@eslint/plugin-kit": "^0.7.2", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", @@ -479,19 +479,6 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/@eslint/js": { - "version": "9.39.4", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.4.tgz", - "integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, "node_modules/espree": { "version": "11.2.0", "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", diff --git a/package.json b/package.json index c1342812fe..eaf2184043 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "devDependencies": { "@eslint/js": "^10.0.1", "@playwright/test": "^1.55.0", - "eslint": "^10.4.0", + "eslint": "^10.4.1", "eslint-plugin-playwright": "^2.10.4", "globals": "^15.14.0" } diff --git a/packaging/arch/PKGBUILD b/packaging/arch/PKGBUILD index d4ca3b8bdc..0a0d14ad65 100644 --- a/packaging/arch/PKGBUILD +++ b/packaging/arch/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Kevin Veen-Birkenbach pkgname=infinito-nexus -pkgver=9.0.2 +pkgver=9.1.0 pkgrel=1 pkgdesc="Meta package for Infinito.Nexus host dependencies (dev + CI)." arch=('any') diff --git a/packaging/debian/changelog b/packaging/debian/changelog index 79ac03e247..13713b9d84 100644 --- a/packaging/debian/changelog +++ b/packaging/debian/changelog @@ -1,3 +1,14 @@ +infinito-nexus (9.1.0-1) unstable; urgency=medium + + * * More robust Nix installer on Debian, Ubuntu, Fedora and CentOS systems: stale nixbld users from earlier installation attempts are cleaned up before the multi-user installer runs, and a long-standing crash on hosts where the nixbld group is absent has been resolved. +* Outbound mail health checks no longer fail silently on minimal container images: the heartbeat-email script copes with images that ship without the hostname binary, and the SSL trust file path is detected automatically across Red Hat, Debian, Ubuntu, Alpine and NixOS layouts. +* The Zammad helpdesk role completes its single-sign-on schema unification, with the variant matrix and Playwright test suite brought in line with the new shape. +* Internal infrastructure cleanups: re-synchronised .dockerignore and a shifted weekly CI schedule. + +Release maintained by [Kevin Veen-Birkenbach](https://veen.world). + + -- Kevin Veen-Birkenbach Mon, 01 Jun 2026 11:29:42 +0200 + infinito-nexus (9.0.2-1) unstable; urgency=medium * Restores the Debian dev-image build by introducing the INFINITO_VENV_DIR SPOT and calling infinito via its absolute venv path in scripts/docker/entry.sh, so the post-`make install` version check no longer trips on the PATH that bash -lc clobbers via /etc/profile; also scopes the auto-update PR dedup fingerprint to the files a run actually committed (instead of the whole commit tree) so unrelated drift on main no longer forces a fresh PR on every daily cron, nests web-app-bluesky's nocheck markers under the acl block they describe, and rolls up dependabot bumps (actions/cache 4→5, actions/setup-node 4→6) plus routine Docker image / git ref refreshes. diff --git a/packaging/fedora/infinito-nexus.spec b/packaging/fedora/infinito-nexus.spec index 94f6a67489..80147859d6 100644 --- a/packaging/fedora/infinito-nexus.spec +++ b/packaging/fedora/infinito-nexus.spec @@ -1,5 +1,5 @@ Name: infinito-nexus -Version: 9.0.2 +Version: 9.1.0 Release: 1%{?dist} Summary: Meta package for Infinito.Nexus host dependencies @@ -58,6 +58,14 @@ install -d %{buildroot}%{_docdir}/%{name} %doc %{_docdir}/%{name}/DEPENDENCIES %changelog +* Mon Jun 01 2026 Kevin Veen-Birkenbach - 9.1.0-1 +- * More robust Nix installer on Debian, Ubuntu, Fedora and CentOS systems: stale nixbld users from earlier installation attempts are cleaned up before the multi-user installer runs, and a long-standing crash on hosts where the nixbld group is absent has been resolved. +* Outbound mail health checks no longer fail silently on minimal container images: the heartbeat-email script copes with images that ship without the hostname binary, and the SSL trust file path is detected automatically across Red Hat, Debian, Ubuntu, Alpine and NixOS layouts. +* The Zammad helpdesk role completes its single-sign-on schema unification, with the variant matrix and Playwright test suite brought in line with the new shape. +* Internal infrastructure cleanups: re-synchronised .dockerignore and a shifted weekly CI schedule. + +Release maintained by [Kevin Veen-Birkenbach](https://veen.world). + * Fri May 29 2026 Kevin Veen-Birkenbach - 9.0.2-1 - Restores the Debian dev-image build by introducing the INFINITO_VENV_DIR SPOT and calling infinito via its absolute venv path in scripts/docker/entry.sh, so the post-`make install` version check no longer trips on the PATH that bash -lc clobbers via /etc/profile; also scopes the auto-update PR dedup fingerprint to the files a run actually committed (instead of the whole commit tree) so unrelated drift on main no longer forces a fresh PR on every daily cron, nests web-app-bluesky's nocheck markers under the acl block they describe, and rolls up dependabot bumps (actions/cache 4→5, actions/setup-node 4→6) plus routine Docker image / git ref refreshes. diff --git a/pyproject.toml b/pyproject.toml index 3d2bc160f2..9f2f71fb8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "infinito-nexus" -version = "9.0.2" +version = "9.1.0" description = "Infinito.Nexus" readme = "README.md" requires-python = ">=3.11" diff --git a/roles/dev-nix/tasks/02_non_arch_installer.yml b/roles/dev-nix/tasks/02_non_arch_installer.yml index ae81f7bfd7..476de024ef 100644 --- a/roles/dev-nix/tasks/02_non_arch_installer.yml +++ b/roles/dev-nix/tasks/02_non_arch_installer.yml @@ -52,8 +52,8 @@ ) | default("", true) }} -- name: Install Nix when no existing binary was detected - ansible.builtin.include_tasks: 02a_nix_install_only.yml +- name: Install Nix via official installer when no Nix binary is present + ansible.builtin.include_tasks: 03_install_official.yml when: dev_nix_binary_path_before | length == 0 - name: Probe common nix binary paths after installation diff --git a/roles/dev-nix/tasks/03_install_official.yml b/roles/dev-nix/tasks/03_install_official.yml new file mode 100644 index 0000000000..21bcec4601 --- /dev/null +++ b/roles/dev-nix/tasks/03_install_official.yml @@ -0,0 +1,67 @@ +--- +- name: Purge stale nixbld users blocking the multi-user installer + ansible.builtin.script: + cmd: "{{ role_path }}/files/purge_stale_nixbld.sh" + register: dev_nix_purge_stale_nixbld_result + changed_when: > + dev_nix_purge_stale_nixbld_result.stdout is search('\\[CHANGED\\]') + failed_when: > + dev_nix_purge_stale_nixbld_result.rc != 0 or + dev_nix_purge_stale_nixbld_result.stdout is search('\\[FAIL\\]') + become: true + +- name: Read existing nixbld group entry before installer run + ansible.builtin.getent: + database: group + key: nixbld + fail_key: false + become: true + +- name: Set build group override for Nix installer when nixbld exists + ansible.builtin.set_fact: + dev_nix_installer_build_group_id: "{{ ansible_facts.getent_group.nixbld[1] }}" + # `getent ... fail_key: false` inserts the key with a `None` value when the + # entry is missing, so the membership test is True but `.nixbld[1]` would + # crash on None — explicitly skip when the value is None. + when: + - ansible_facts.getent_group is defined + - ansible_facts.getent_group.nixbld is not none + +- name: Read existing nixbld1 user entry before installer run + ansible.builtin.getent: + database: passwd + key: nixbld1 + fail_key: false + become: true + +- name: Set first build uid override for Nix installer when nixbld1 exists + ansible.builtin.set_fact: + dev_nix_installer_first_build_uid: "{{ ansible_facts.getent_passwd.nixbld1[1] }}" + # Same None-vs-missing trap as for the group entry above. + when: + - ansible_facts.getent_passwd is defined + - ansible_facts.getent_passwd.nixbld1 is not none + +- name: Run Nix installer in daemon (multi-user) mode + ansible.builtin.shell: > + "{{ dev_nix_installer_dest }}" --daemon + environment: >- + {{ + ( + (dev_nix_installer_build_group_id is defined) + | ternary( + {'NIX_BUILD_GROUP_ID': (dev_nix_installer_build_group_id | string)}, + {} + ) + ) + | combine( + ( + (dev_nix_installer_first_build_uid is defined) + | ternary( + {'NIX_FIRST_BUILD_UID': (dev_nix_installer_first_build_uid | string)}, + {} + ) + ) + ) + }} + become: true diff --git a/roles/web-app-bookwyrm/templates/compose.yml.j2 b/roles/web-app-bookwyrm/templates/compose.yml.j2 index 2fe6e1b5e4..d09bc5278a 100644 --- a/roles/web-app-bookwyrm/templates/compose.yml.j2 +++ b/roles/web-app-bookwyrm/templates/compose.yml.j2 @@ -5,6 +5,7 @@ command: >- bash -c ' /venv/bin/python manage.py migrate --noinput && + /venv/bin/python manage.py compile_themes && /venv/bin/python manage.py collectstatic --noinput && (/venv/bin/python manage.py initdb || true) && /venv/bin/python -m gunicorn bookwyrm.wsgi:application --bind 0.0.0.0:{{ container_port }}