[Bug 285097] www/gitlab migration step fails for gitlab-ce-17.9.1

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 01 Mar 2025 19:49:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285097

            Bug ID: 285097
           Summary: www/gitlab migration step fails for gitlab-ce-17.9.1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: mfechner@FreeBSD.org
          Reporter: gwright@antiope.com
          Assignee: mfechner@FreeBSD.org
             Flags: maintainer-feedback?(mfechner@FreeBSD.org)

Upgrading to gitlab to 17.9.1 fails in the migration step:
```
root@gitlab:/usr/local/www/gitlab # su -l git -c "cd /usr/local/www/gitlab &&
rake --trace db:migrate RAILS_ENV=production"
** Invoke db:migrate (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:load_config
** Invoke gitlab:db:validate_config (first_time)
** Invoke environment
** Execute gitlab:db:validate_config
** Invoke schema_version_check (first_time)
** Invoke environment
** Execute schema_version_check
rake aborted!
NoMethodError: undefined method `>' for nil:NilClass (NoMethodError)

  if schema_version > 0 && schema_version < minimum_migration_version
                    ^
/usr/local/www/gitlab/lib/tasks/migrate/schema_check.rake:16:in `block in <top
(required)>'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:281:in `block in
execute'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:281:in `each'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:281:in `execute'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:219:in `block in
invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:199:in
`synchronize'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:199:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:243:in `block in
invoke_prerequisites'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:241:in `each'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:241:in
`invoke_prerequisites'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:218:in `block in
invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:199:in
`synchronize'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:199:in
`invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/task.rb:188:in `invoke'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/application.rb:188:in
`invoke_task'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/application.rb:138:in
`block (2 levels) in top_level'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/application.rb:138:in
`each'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/application.rb:138:in
`block in top_level'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/application.rb:147:in
`run_with_threads'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/application.rb:132:in
`top_level'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/application.rb:83:in
`block in run'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/application.rb:214:in
`standard_exception_handling'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/lib/rake/application.rb:80:in
`run'
/usr/local/lib/ruby/gems/3.2/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/rake:25:in `load'
/usr/local/bin/rake:25:in `<main>'
Tasks: TOP => db:migrate => schema_version_check
root@gitlab:/usr/local/www/gitlab #
```

Probably some API update in a dependency.  The gitlab-17.9.1 build was done
today (2025 Mar 01) using poudriere and all components built successfully.

-- 
You are receiving this mail because:
You are the assignee for the bug.