Red master: PG::UndefinedColumn: ERROR: column "runners_token_encrypted" of relation "projects" does not exist
https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/133504082 / https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/133504522
Many failures, most like:
680) Gitlab::GithubImport::Importer::IssueImporter#create_issue returns the ID of the created issue
Failure/Error: let(:project) { create(:project) }
ActiveRecord::StatementInvalid:
PG::UndefinedColumn: ERROR: column "runners_token_encrypted" of relation "projects" does not exist
LINE 1: ...l", "cached_markdown_version", "storage_version", "runners_t...
^
: INSERT INTO "projects" ("name", "path", "created_at", "updated_at", "creator_id", "namespace_id", "runners_token", "has_external_issue_tracker", "description_html", "cached_markdown_version", "storage_version", "runners_token_encrypted", "archived", "visibility_level", "resolve_outdated_diff_discussions", "container_registry_enabled", "repository_storage", "shared_runners_enabled", "only_allow_merge_if_all_discussions_are_resolved") VALUES ('project1510', 'project1510', '2018-12-12 13:38:34.265320', '2018-12-12 13:38:34.265320', 2932, 3256, 'dUuSucPesxh7hrV-XA1P', 'f', '', 12, 2, 'py8pJSNWxU7+yiYGny+EVqNlRjJismdUPwH4tnNyFVQawBFH', 'f', 0, 'f', 't', 'default', 't', 'f') RETURNING "id"
# ./config/initializers/active_record_locking.rb:11:in `_create_record'
# ./spec/lib/gitlab/github_import/importer/issue_importer_spec.rb:4:in `block (2 levels) in <top (required)>'
# ./spec/lib/gitlab/github_import/importer/issue_importer_spec.rb:74:in `block (3 levels) in <top (required)>'
# ./spec/lib/gitlab/github_import/importer/issue_importer_spec.rb:77:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:170:in `block (2 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# PG::UndefinedColumn:
# ERROR: column "runners_token_encrypted" of relation "projects" does not exist
# LINE 1: ...l", "cached_markdown_version", "storage_version", "runners_t...
# ^
# ./config/initializers/active_record_locking.rb:11:in `_create_record'
The first failure in one is:
Gitlab::BackgroundMigration::CreateGpgKeySubkeysFromGpgKeys
NOTICE: index "index_projects_on_lower_name" does not exist, skipping
NOTICE: index "index_on_users_name_lower" does not exist, skipping
NOTICE: index "index_redirect_routes_on_path_unique_text_pattern_ops" does not exist, skipping
NOTICE: index "index_on_namespaces_lower_name" does not exist, skipping
when GpgKey exists
generate the subkeys (FAILED - 1)
schedules the signature update worker (FAILED - 2)
when GpgKey does not exist
does not do anything (FAILED - 3)
An error occurred in an `after(:context)` hook.
Failure/Error: klass.reset_column_information
PG::ConnectionBad:
FATAL: remaining connection slots are reserved for non-replication superuser connections
# ./spec/support/helpers/migrations_helpers.rb:62:in `reset_column_information'
# ./spec/support/helpers/migrations_helpers.rb:47:in `each'
# ./spec/support/helpers/migrations_helpers.rb:47:in `reset_column_in_all_models'
# ./spec/support/helpers/migrations_helpers.rb:91:in `schema_migrate_up!'
# ./spec/spec_helper.rb:223:in `block (2 levels) in <top (required)>'