Merge pull request 'fix: upgrade: add missing check for migration warnings and errors' (#496) from earl-warren/end-to-end:wip-upgrade into main

Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/496
Reviewed-by: Gusted <gusted@noreply.code.forgejo.org>
This commit is contained in:
earl-warren 2025-02-19 10:54:40 +00:00
commit 9a477b3f40
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201

View file

@ -57,6 +57,10 @@ function migration_assert() {
grep --quiet 'ORM engine initialization successful' $logfile
if grep 'serveInstalled() \[[EW]\] Table' $logfile; then
echo "unexpected warnings in database initialization"
return 1
fi
if grep 'Migrate() \[[EW]\]' $logfile; then
echo "unexpected warnings in database migration"
return 1
fi
@ -64,6 +68,8 @@ function migration_assert() {
function test_gitea_upgrades() {
local config=$UPGRADE_DIR/default-app.ini
# The Forgejo target migration version must be 10.0 because it is the last supported.
# https://forgejo.org/2024-12-gitea-compatibility/
(
echo gitea 1.21 forgejo 10.0
echo gitea 1.22 forgejo 10.0