Commit Graph
8 Commits
Author SHA1 Message Date
Lauri Ojansivu fa1bb293f9 UCS migration and Nextcloud packing work on macOS: no flock, no GNU tar.
The UCS App Center preinst hook locked with flock(1), which is util-linux
and missing on macOS and the BSDs, so tests/ucsMigration.test.cjs could not
run the hook there ("flock: command not found"). Without flock it now takes
the same lock with perl's flock() on the inherited fd 9: a flock(2) lock
belongs to the open file, so it is held until the hook closes fd 9, exactly
as flock -n 9 holds it. Verified: a second locker is refused and the lock
frees when the first one closes. perl is on UCS (Debian) and macOS.

The Nextcloud ExApp archive was packed with GNU tar's --transform, which
bsdtar (macOS, the BSDs) does not have. releases/nextcloud-pack.sh copies
the source under a staging <app-id>/ and packs that directory, with the
same exclusions, using only options both tars share; COPYFILE_DISABLE=1
keeps macOS tar from adding ._* AppleDouble files. The workflow and
tests/nextcloudRelease.test.py both use it, and
tests/ucsNextcloudWorkflows.test.cjs fails if --transform comes back.

Thanks to xet7 !
2026-10-27 22:57:57 +02:00
Lauri Ojansivu be2a4053be Remove docker-cli from the Docker image.
Debian's docker-cli carries Go 1.24.4, whose standard library advisories
were most of the Quay and Artifact Hub scans of the image, and only the UCS
migration used it, for docker exec. The migration's mongo and mongoexport
wrappers now run releases/ucs-migration/docker-exec.mjs, which speaks the
Docker Engine API over the mounted socket with the same stdout, stderr and
exit status, and the image installs no Docker CLI.

Thanks to xet7 !
2026-10-13 00:26:22 +03:00
Lauri Ojansivu 91bfd08097 Test real Nextcloud deployments and preserve signed SockJS identities
Keep verified gateway identities bound to their actual upgrade sockets before SockJS filters custom headers. Add repository-local Nextcloud 32-35 acceptance runs for authentication, isolation, uploads, lifecycle, source-built upgrades, restored volumes and mutual-TLS FRP. Harden release archive checks and exercise signing and workflow failures.

Thanks to xet7.
2026-10-11 22:46:45 +03:00
Lauri Ojansivu 7f4a8fa6c1 Bundle UCS migration tools in the WeKan image and use available registry mirrors
Run the temporary migration worker from the ordinary versioned application image. Prefer the target App Center compose images, then try the same upstream version on GHCR, Docker Hub and Quay before downtime. Reject inaccessible or incomplete images before portal upload. Cover UCS-only access, fallback, failure reporting, cleanup and migration integrity with regression tests.

Thanks to xet7 !
2026-10-11 21:01:12 +03:00
Lauri Ojansivu a325cfe991 Support Nextcloud ExApp identities and publish WeKan with embedded SQLite 2026-10-11 17:41:28 +03:00
Lauri Ojansivu 2e927f59f3 Resolve latest published WeKan and FerretDB versions for manual UCS releases 2026-10-11 16:46:49 +03:00
Lauri Ojansivu 6b121be9da Run UCS and Nextcloud publishing only as standalone manual workflows 2026-10-11 16:37:58 +03:00
Lauri Ojansivu 8bb445604e Share UCS and Nextcloud publishing workflows across release and recovery 2026-10-11 15:35:33 +03:00