Skip to content
代码片段 群组 项目
未验证 提交 7d6727ba 编辑于 作者: Thong Kuah's avatar Thong Kuah 提交者: GitLab
浏览文件

Merge branch 'skip-gitlab-duo-seeding-by-default' into 'master'

Skip GitLab Duo seeding by default

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/175963



Merged-by: default avatarThong Kuah <tkuah@gitlab.com>
Approved-by: default avatarSiddharth Dungarwal <sdungarwal@gitlab.com>
Approved-by: default avatarThong Kuah <tkuah@gitlab.com>
Co-authored-by: default avatarShinya Maeda <shinya@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -991,7 +991,7 @@ For evaluation in merge request pipelines, we use:
To seed project and group resources for testing and evaluation, run the following command:
```shell
FILTER=gitlab_duo bundle exec rake db:seed_fu
SEED_GITLAB_DUO=1 FILTER=gitlab_duo bundle exec rake db:seed_fu
```
This command executes the [development seed file](../development_seed_files.md) for GitLab Duo, which creates `gitlab-duo` group in your GDK.
......
......@@ -26,4 +26,4 @@ data for features.
| Issue Analytics<br><br>Insights | `NEW_PROJECT=1 bin/rake gitlab:seed:insights:issues` | [insights Rake task](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/lib/tasks/gitlab/seed/insights.rake) |
| DORA metrics | `SEED_DORA=1 FILTER=dora_metrics bundle exec rake db:seed_fu` | [92_dora_metrics](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/db/fixtures/development/92_dora_metrics.rb) |
| Code Suggestion data in ClickHouse | `FILTER=ai_usage_stats bundle exec rake db:seed_fu` | [94_ai_usage_stats](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/db/fixtures/development/94_ai_usage_stats.rb) |
| GitLab Duo | `FILTER=gitlab_duo bundle exec rake db:seed_fu` | [95_gitlab_duo](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/db/fixtures/development/95_gitlab_duo.rb) |
| GitLab Duo | `SEED_GITLAB_DUO=1 FILTER=gitlab_duo bundle exec rake db:seed_fu` | [95_gitlab_duo](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/db/fixtures/development/95_gitlab_duo.rb) |
......@@ -79,6 +79,13 @@ def fixture_file_upload(*args, **kwargs)
end
Gitlab::Seeder.quiet do
flag = ENV['SEED_GITLAB_DUO']
unless flag
puts "Skipped. Use the SEED_GITLAB_DUO=1 environment variable to enable."
next
end
Gitlab::Seeder::GitLabDuo.new.clean!
Gitlab::Seeder::GitLabDuo.new.seed!
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册