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:
commit
9a477b3f40
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue