Spec failure: spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb

Job #51734630 failed for 1f465002:

Failures:

  1. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#namespaces_for_paths nested namespaces includes the namespace Failure/Error: parent = create(:group, path: 'parent')

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:23:in `block (4 levels) in <top (required)>'

  2. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#namespaces_for_paths for child namespaces only returns child namespaces with the correct path Failure/Error: _root_namespace = create(:group, path: 'THE-path')

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:35:in `block (4 levels) in <top (required)>'

  3. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#namespaces_for_paths for child namespaces has no namespaces that look the same Failure/Error: _root_namespace = create(:group, path: 'THE-path')

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:50:in `block (4 levels) in <top (required)>'

  4. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#namespaces_for_paths for top levelnamespaces only returns child namespaces with the correct path Failure/Error: root_namespace = create(:group, path: 'the-path')

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:67:in `block (4 levels) in <top (required)>'

  5. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#namespaces_for_paths for top levelnamespaces has no namespaces that just look the same Failure/Error: root_namespace = create(:group, path: 'the-path')

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:80:in `block (4 levels) in <top (required)>'

  6. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#move_repositories moves a project for a namespace Failure/Error: let(:namespace) { create(:group, name: 'hello-group') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:95:in `block (3 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:97:in `block (3 levels) in <top (required)>'

  7. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#move_repositories moves a namespace in a subdirectory correctly Failure/Error: let(:namespace) { create(:group, name: 'hello-group') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:95:in `block (3 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:106:in `block (3 levels) in <top (required)>'

  8. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#move_repositories moves a parent namespace with subdirectories Failure/Error: let(:namespace) { create(:group, name: 'hello-group') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:95:in `block (3 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:117:in `block (3 levels) in <top (required)>'

  9. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespace renames paths & routes for the namespace Failure/Error: expect(namespace.reload.path).to eq('the-path0')

    expected: "the-path0" got: "the-path1"

    (compared using ==)

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:149:in `block (3 levels) in <top (required)>'

  10. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespace tracks the rename Failure/Error: track_rename('namespace', old_full_path, new_full_path)

    #<Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces:0x00000000098b09d0 @paths=["the-path"], @migration=#<FakeRenameReservedPathMigrationV1:0x000000000991a6f0 @name="FakeRenameReservedPathMigrationV1", @version=nil, @connection=nil>> received :track_rename with unexpected arguments expected: ("namespace", "the-path", "the-path0") got: ("namespace", "the-path", "the-path1")

    ./lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces.rb:29:in `rename_namespace'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:156:in `block (3 levels) in <top (required)>'

  11. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespace renames things related to the namespace Failure/Error: rename_namespace_dependencies(namespace, old_full_path, new_full_path)

    #<Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces:0x0000000003fb4890 @paths=["the-path"], @migration=#<FakeRenameReservedPathMigrationV1:0x0000000003ff3d38 @name="FakeRenameReservedPathMigrationV1", @version=nil, @connection=nil>> received :rename_namespace_dependencies with unexpected arguments expected: (#<Group id:2767 @the-path>, "the-path", "the-path0") got: (#<Group id:2767 @the-path>, "the-path", "the-path1") Diff: @@ -1,2 +1,2 @@ -[#<Group id:2767 @the-path>, "the-path", "the-path0"] +[#<Group id:2767 @the-path>, "the-path", "the-path1"]

    ./lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces.rb:31:in `rename_namespace'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:163:in `block (3 levels) in <top (required)>'

  12. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespace_dependencies moves the the repository for a project in the namespace Failure/Error: let(:namespace) { create(:group, name: 'the-path') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:6:in `block (2 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:169:in `block (3 levels) in <top (required)>'

  13. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespace_dependencies moves the uploads for the namespace Failure/Error: let(:namespace) { create(:group, name: 'the-path') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:6:in `block (2 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:180:in `block (3 levels) in <top (required)>'

  14. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespace_dependencies moves the pages for the namespace Failure/Error: let(:namespace) { create(:group, name: 'the-path') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:6:in `block (2 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:186:in `block (3 levels) in <top (required)>'

  15. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespace_dependencies invalidates the markdown cache of related projects Failure/Error: let(:namespace) { create(:group, name: 'the-path') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:6:in `block (2 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:190:in `block (3 levels) in <top (required)>'

  16. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespace_dependencies doesn't rename users for other namespaces Failure/Error: let(:namespace) { create(:group, name: 'the-path') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:6:in `block (2 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:200:in `block (3 levels) in <top (required)>'

  17. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespace_dependencies renames the username of a namespace for a user Failure/Error: user = create(:user, username: 'the-path')

    ActiveRecord::RecordInvalid: Validation failed: Username has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:204:in `block (3 levels) in <top (required)>'

  18. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_user renames a username Failure/Error: user = create(:user, username: 'broken')

    ActiveRecord::RecordInvalid: Validation failed: Username has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:215:in `block (3 levels) in <top (required)>'

  19. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespaces renames top level namespaces the namespace Failure/Error: let!(:top_level_namespace) { create(:group, path: 'the-path') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:224:in `block (3 levels) in <top (required)>'

  20. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#rename_namespaces renames child namespaces Failure/Error: let!(:top_level_namespace) { create(:group, path: 'the-path') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:224:in `block (3 levels) in <top (required)>'

  21. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#revert_renames renames the routes back to the previous values Failure/Error: let(:namespace) { create(:group, name: 'the-path') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:6:in `block (2 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:246:in `block (3 levels) in <top (required)>'

  22. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#revert_renames moves the repositories back to their original place Failure/Error: let(:namespace) { create(:group, name: 'the-path') }

    ActiveRecord::RecordInvalid: Validation failed: Path has already been taken

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:6:in `block (2 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:264:in `block (3 levels) in <top (required)>'

  23. Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces#revert_renames doesn't break when the namespace was renamed Failure/Error: let(:namespace) { create(:group, name: 'the-path') }

    ActiveRecord::RecordInvalid: Validation failed: Path has been taken before

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:6:in `block (2 levels) in <top (required)>'

    ./spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb:283:in `block (3 levels) in <top (required)>'

Edited Feb 19, 2018 by Nick Thomas
Assignee Loading
Time tracking Loading