Ci Project migrate
- This doesn't migrate: allow_git_fetch, coverage_regex, timeout. Since this are project configuration settings I would propose to migrate them to
.gitlab-ci.yml
. - This requires offline migrations.
- It simplifies database models making all CI objects to be attached to: Project.
- It removes Ci::Project, but makes /ci/projects working by adding method: Project.find_by_ci_id for backward compatibility (badges, triggers).
- We should add default
timeout
to Application Settings. - It misses specs.
- It is based on ci-services-migrate for now.
- It removes CI events.
- It removes administrator CI projects overview.
- It removes CI application settings.
In 8.4 or 8.5 we can remove redundant tables and columns.
Merge request reports
Activity
mentioned in merge request !1985 (merged)
Reassigned to @ayufan
mentioned in issue #3474 (closed)
In the end I did migrate: allow_git_fetch, coverage_regex, timeout to Project. I did prefix them with build_. It's too much to migrate them to
.gitlab-ci.yml
now.The specs are fixed, everything appears to be working. Migrations are quite simple, they can be run in semi-offline mode (more info about it later).
This also deprecates CI API. It's used only by Runners, it's not suitable to be used by users.
What is left to finish that MR is to migrate Triggers API to GitLab API.
/cc @dzaporozhets @DouweM
20 20 class Commit < ActiveRecord::Base 21 21 extend Ci::Model 22 22 23 belongs_to :gl_project, class_name: '::Project', foreign_key: :gl_project_id 24 has_many :statuses, dependent: :destroy, class_name: 'CommitStatus' 23 belongs_to :project, class_name: '::Project', foreign_key: :gl_project_id 24 has_many :statuses, class_name: 'CommitStatus' 193 187 194 188 def config_processor 195 189 return nil unless ci_yaml_file 196 @config_processor ||= Ci::GitlabCiYamlProcessor.new(ci_yaml_file, gl_project.path_with_namespace) 190 @config_processor ||= Ci::GitlabCiYamlProcessor.new(ci_yaml_file, project.path_with_namespace) 37 37 %thead 38 38 %tr 39 39 %th Status 40 %th Build ID 40 %th Runner Leaving this up to @DouweM for review
Added 46 commits:
- 0395a395...dc4e2744 - 40 commits from branch
ci-services-migrate
- 89d94324 - Migrate CI::Project to Project
- 15f56300 - Add runners token
- d08b0741 - Remove ci_ prefix from all ci related things
- 34d31e9d - Reimplement Trigger API
- 587a522c - Rename columns and rename migrations
- 46b09ea9 - Fix triggers tests
Toggle commit list- 0395a395...dc4e2744 - 40 commits from branch
Added 12 commits:
- ff3293ca...71e6a93d - 2 commits from branch
ci-services-migrate
- a9120cf4 - Migrate CI::Project to Project
- 5ab8e229 - Add runners token
- 67c09c63 - Remove ci_ prefix from all ci related things
- e0132fb3 - Reimplement Trigger API
- 1169a926 - Rename columns and rename migrations
- 9adb6d93 - Fix triggers tests
- 7e65823d - Finishing touches
- faba4256 - Update badge
- ab723892 - Fix errors
- f9daf43f - Fix after column rename
Toggle commit list- ff3293ca...71e6a93d - 2 commits from branch
25 25 26 26 has_many :builds, class_name: 'Ci::Build' 27 27 has_many :runner_projects, dependent: :destroy, class_name: 'Ci::RunnerProject' 28 has_many :projects, through: :runner_projects, class_name: 'Ci::Project' 28 has_many :projects, through: :runner_projects, class_name: '::Project', foreign_key: :gl_project_id Added 14 commits:
-
8b4cdc50 - 1 commit from branch
ci-services-migrate
- e80e3f53 - Migrate CI::Project to Project
- 8cdd54cc - Add runners token
- 64bfd9d7 - Remove ci_ prefix from all ci related things
- 3d9ce37a - Reimplement Trigger API
- 91cdb08d - Rename columns and rename migrations
- 3578153d - Fix triggers tests
- 1e2a4895 - Finishing touches
- 2b7a75ce - Update badge
- 73b04beb - Fix errors
- 513d551c - Fix after column rename
- dd8102f2 - Fix specs
- 1c0683da - Fix last specs
- c9ac38a0 - Use Gitlab::Git instead of Ci::Git
Toggle commit list-
8b4cdc50 - 1 commit from branch
Added 1 commit:
- fc1e2f89 - Run builds from projects with enabled CI
@ayufan Awesome. Remove the WIP prefix and feel free to merge :)
Added 1 commit:
- baa38f0d - Fix runners admin view [ci skip]
mentioned in commit c8102343
mentioned in issue #19159 (closed)
mentioned in merge request !4925 (merged)
mentioned in commit 0bbf47da
Mentioned in commit 87991030
Mentioned in commit 62ba6805
Mentioned in issue #23068 (closed)
Mentioned in merge request !6757 (closed)