Broken master due to `ERROR: relation "packages_package_files" does not exist`

As seen in:

  • https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/153452111: ERROR: relation "packages_package_files" does not exist
  • https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/153453680: ERROR: relation "packages_package_files" does not exist
  • https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/153450154: ERROR: relation "packages_package_files" does not exist
  • https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/153453111: ERROR: relation "application_setting_terms" does not exist
  539) Packages::PackageFileUploader remote file with object storage enabled can store file remotely
       Failure/Error: let(:package_file) { create(:package_file, :object_storage, :xml) }

       ActiveRecord::StatementInvalid:
         PG::UndefinedTable: ERROR:  relation "packages_package_files" does not exist
         LINE 8:                WHERE a.attrelid = '"packages_package_files"'...
                                                   ^
         :               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                              pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
                      (SELECT c.collname FROM pg_collation c, pg_type t
                        WHERE c.oid = a.attcollation AND t.oid = a.atttypid AND a.attcollation <> t.typcollation),
                              col_description(a.attrelid, a.attnum) AS comment
                         FROM pg_attribute a LEFT JOIN pg_attrdef d
                           ON a.attrelid = d.adrelid AND a.attnum = d.adnum
                        WHERE a.attrelid = '"packages_package_files"'::regclass
                          AND a.attnum > 0 AND NOT a.attisdropped
                        ORDER BY a.attnum
       # ./ee/spec/uploaders/packages/package_file_uploader_spec.rb:28:in `block (3 levels) in <top (required)>'
       # ./ee/spec/uploaders/packages/package_file_uploader_spec.rb:38:in `block (4 levels) in <top (required)>'
       # ------------------
       # --- Caused by: ---
       # PG::UndefinedTable:
       #   ERROR:  relation "packages_package_files" does not exist
       #   LINE 8:                WHERE a.attrelid = '"packages_package_files"'...
       #                                             ^
       #   ./ee/spec/uploaders/packages/package_file_uploader_spec.rb:28:in `block (3 levels) in <top (required)>'
Assignee Loading
Time tracking Loading