db:check-migrations
Failed Started
by
@vij
Vijay Hawoldar
1Running with gitlab-runner 14.7.0~beta.58.gfa48f33b (fa48f33b)2 on blue-1.shared-gitlab-org.runners-manager.gitlab.com/default KzYhZxBv3 feature flags: FF_USE_FASTZIP:true6Using Docker executor with image registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.7.patched-golang-1.16-git-2.33-lfs-2.9-chrome-89-node-14.15-yarn-1.22-postgresql-12-graphicsmagick-1.3.36 ...7Starting service postgres:12 ...8Pulling docker image postgres:12 ...9Using docker image sha256:58bff76313464ab65dcb0b9a2b910c815e8975d827c456ca7f46d69482956d5e for postgres:12 with digest postgres@sha256:1d098cd3c1a7b132edc5bfdd7d775ff0949104b150e31d52c0aff7bdcd25c53e ...10Starting service redis:5.0-alpine ...11Pulling docker image redis:5.0-alpine ...12Using docker image sha256:1746b159f8934fe63cae3984643ee8c5651bcfc80ae107032a60f2871a0e7cdb for redis:5.0-alpine with digest redis@sha256:a04b57e05b784a406bc818f6b450233328c4115a1e1f104d84ce916eb1583925 ...13Waiting for services to be up and running...14Authenticating with credentials from job payload (GitLab Registry)15Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.7.patched-golang-1.16-git-2.33-lfs-2.9-chrome-89-node-14.15-yarn-1.22-postgresql-12-graphicsmagick-1.3.36 ...16Using docker image sha256:5b9920187fd97abe77ba8b8a3c8029b970dbace758fd2dc8756c2976a4bff96d for registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.7.patched-golang-1.16-git-2.33-lfs-2.9-chrome-89-node-14.15-yarn-1.22-postgresql-12-graphicsmagick-1.3.36 with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:4ab23b0728c6791b71363fe9413ab1d284f8d163988ebd8823dfb84f31aafe00 ...18Running on runner-kzyhzxbv-project-278964-concurrent-0 via runner-kzyhzxbv-shared-gitlab-org-1642587071-e60d9c14...20$ eval "$CI_PRE_CLONE_SCRIPT"21Fetching changes with git depth set to 20...22Initialized empty Git repository in /builds/gitlab-org/gitlab/.git/23Created fresh repository.24remote: Enumerating objects: 118964, done. 25remote: Counting objects: 100% (118964/118964), done. 26remote: Compressing objects: 100% (80328/80328), done. 27remote: Total 118964 (delta 52017), reused 81848 (delta 34028), pack-reused 0 28Receiving objects: 100% (118964/118964), 113.13 MiB | 29.02 MiB/s, done.29Resolving deltas: 100% (52017/52017), done.31 * [new ref] 9771783ff4e9d300a49511646792e174d20da510 -> refs/pipelines/45155190432Checking out 9771783f as refs/merge-requests/78560/merge...33Skipping Git submodules setup35Checking cache for ruby-gems-v1-9...36Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/278964/ruby-gems-v1-9 37Successfully extracted cache38Checking cache for gitaly-ruby-gems-v1-9...39Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/278964/gitaly-ruby-gems-v1-9 40Successfully extracted cache42Downloading artifacts for setup-test-env (1992050596)...43Downloading artifacts from coordinator... ok id=1992050596 responseStatus=200 OK token=emneg44745Using docker image sha256:5b9920187fd97abe77ba8b8a3c8029b970dbace758fd2dc8756c2976a4bff96d for registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.7.patched-golang-1.16-git-2.33-lfs-2.9-chrome-89-node-14.15-yarn-1.22-postgresql-12-graphicsmagick-1.3.36 with digest registry.gitlab.com/gitlab-org/gitlab-build-images@sha256:4ab23b0728c6791b71363fe9413ab1d284f8d163988ebd8823dfb84f31aafe00 ...46$ echo $FOSS_ONLY47$ [ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb48$ export GOPATH=$CI_PROJECT_DIR/.go49$ mkdir -p $GOPATH50$ source scripts/utils.sh51$ source scripts/prepare_build.sh52Bundler version 2.1.453production:development54Settings are listed in order of priority. The top value will be used.55path56Set for the current user (/root/.bundle/config): "/builds/gitlab-org/gitlab/vendor"57clean58Set for the current user (/root/.bundle/config): "true"59without60Set via BUNDLE_WITHOUT: [:production, :development]61install_flags62Set via BUNDLE_INSTALL_FLAGS: "--jobs=$(nproc) --retry=3 --quiet"63$ bundle install --jobs=$(nproc) --retry=3 --quiet && bundle check64The Gemfile's dependencies are satisfied65==> 'bundle install --jobs=$(nproc) --retry=3 --quiet && bundle check' succeeded in 2 seconds.66$ bundle pristine pg67Installing pg 1.2.3 with native extensions68==> 'bundle pristine pg' succeeded in 10 seconds.69$ setup_db_user_only70CREATE ROLE71GRANT72==> 'setup_db_user_only' succeeded in 1 seconds.73$ bundle exec rake db:drop db:create db:structure:load db:migrate gitlab:db:setup_ee74Dropped database 'gitlabhq_test'75Dropped database 'gitlabhq_geo_test'76Created database 'gitlabhq_test'77Created database 'gitlabhq_geo_test'78DEPRECATION WARNING: Using `bin/rails db:structure:load` is deprecated and will be removed in Rails 6.2. Configure the format using `config.active_record.schema_format = :sql` to use `structure.sql` and run `bin/rails db:schema:load` instead. (called from load at /builds/gitlab-org/gitlab/vendor/ruby/2.7.0/bin/rake:23)79Dropped database 'gitlabhq_geo_test'80Created database 'gitlabhq_geo_test'81==> 'bundle exec rake db:drop db:create db:structure:load db:migrate gitlab:db:setup_ee' succeeded in 30 seconds.82$ git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME:$CI_MERGE_REQUEST_TARGET_BRANCH_NAME --depth 2084 * [new branch] master -> master85 * [new branch] master -> origin/master86$ scripts/validate_migration_schema87$ git diff --name-only --diff-filter=A master -- db/migrate db/post_migrate88db/migrate/20220119141407_add_dependency_proxy_size_to_namespace_statistics.rb89$ scripts/db_tasks db:migrate:down VERSION=2022011914140790== 20220119141407 AddDependencyProxySizeToNamespaceStatistics: reverting ======91-- remove_column(:namespace_statistics, :dependency_proxy_size, :bigint, {:default=>0, :null=>false})92 -> 0.0018s93== 20220119141407 AddDependencyProxySizeToNamespaceStatistics: reverted (0.0045s) 94$ scripts/db_tasks db:schema:dump95$ git diff master -- db/structure.sql96diff --git a/db/structure.sql b/db/structure.sql97index 456332a6e..04a978db1 10064498--- a/db/structure.sql99+++ b/db/structure.sql100@@ -31338,6 +31338,9 @@ ALTER TABLE ONLY issues_prometheus_alert_events101 ALTER TABLE ONLY board_user_preferences102 ADD CONSTRAINT fk_rails_dbebdaa8fe FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE;104+ALTER TABLE ONLY ci_running_builds105+ ADD CONSTRAINT fk_rails_dc1d0801e8 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;106+107 ALTER TABLE ONLY vulnerability_occurrence_pipelines108 ADD CONSTRAINT fk_rails_dc3ae04693 FOREIGN KEY (occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE;110Error: rollback of added migrations does not revert db/structure.sql to previous state:111diff --git a/db/structure.sql b/db/structure.sql112index 456332a6e..04a978db1 100644113--- a/db/structure.sql114+++ b/db/structure.sql115@@ -31338,6 +31338,9 @@ ALTER TABLE ONLY issues_prometheus_alert_events116 ALTER TABLE ONLY board_user_preferences117 ADD CONSTRAINT fk_rails_dbebdaa8fe FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE;119+ALTER TABLE ONLY ci_running_builds120+ ADD CONSTRAINT fk_rails_dc1d0801e8 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;121+122 ALTER TABLE ONLY vulnerability_occurrence_pipelines123 ADD CONSTRAINT fk_rails_dc3ae04693 FOREIGN KEY (occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE;126ERROR: Job failed: exit code 1