mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
wekan/FerretDB now releases ferretdb-sqlite-<arch> beside ferretdb-<arch>: the same FerretDB with only the SQLite handler, about 5 MB smaller, and SQLite is all a WeKan bundle, image, snap or .spk runs. releases/ferretdb-asset.sh is the one place that chooses: the newest release that has ferretdb-sqlite-<arch>, and, until one does, the full ferretdb-<arch> of the newest release, which has the SQLite handler too. It says in the log which one it took and why, downloads it, verifies it against its .sha256sum, and returns FERRET_ASSET, FERRET_TAG, FERRET_URL and FERRET_SHA for the provenance table (also through $GITHUB_ENV, cached per job so the check and embed steps agree). Every FerretDB download goes through it: the amd64, arm64, win64, win-arm64, win32, mac-arm64, mac-x64 and extra-architecture jobs of release-all.yml (the Docker images, snap, AppImage, Flatpak, single-file and macOS/Windows packages are made from those bundles), repack-bundle-for-arch.sh for release-all-missing.yml, bsd.yml, check-arch-binaries.sh, build-release-bundle.sh and test-download-urls.sh. require-binaries.sh checks the resume-login floor against the release the helper chose. The provenance rows record that release and URL instead of /latest/. No release workflow builds FerretDB: sandstorm-src/build-deps.sh takes the prebuilt ferretdb-sqlite-amd64 by default (FERRETDB_SOURCE=download), and sandstorm.yml and release-all.yml's build-sandstorm no longer set FERRETDB_SOURCE=build; building from source stays a local option. The default docker-compose.yml downloads ferretdb-sqlite-<arch> (FERRETDB_BINARY, falling back to ferretdb-<arch> for a release without it); the PostgreSQL, MySQL, MariaDB and SAP HANA compose files keep the full binary. tests/ferretdbSqliteAsset.test.cjs drives the helper against a fake GitHub (newest, older and no release with the SQLite-only binary, .exe names, a pinned tag, FERRETDB_VARIANT=full, checksum match and mismatch, a missing platform, bad names) and checks that every download site uses it, that no workflow builds FerretDB and that only the SQLite compose file takes the SQLite-only binary. The tests that pinned the old URLs follow the helper. Thanks to xet7 !