Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
容器镜像库
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
33e3b22c
未验证
提交
33e3b22c
编辑于
8 months ago
作者:
Rémy Coutable
浏览文件
操作
下载
补丁
差异文件
ci: Don't use repo from artifacts for critical jobs
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
上级
34c0263b
No related branches found
分支 包含提交
No related tags found
标签 包含提交
无相关合并请求
变更
1
隐藏空白变更内容
行内
左右并排
显示
1 个更改的文件
.gitlab/ci/frontend.gitlab-ci.yml
+19
-9
19 个添加, 9 个删除
.gitlab/ci/frontend.gitlab-ci.yml
有
19 个添加
和
9 个删除
.gitlab/ci/frontend.gitlab-ci.yml
+
19
−
9
浏览文件 @
33e3b22c
...
...
@@ -11,7 +11,6 @@
-
.default-retry
-
.default-before_script
-
.assets-compile-cache
-
.repo-from-artifacts
image
:
${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images/${BUILD_OS}-${OS_VERSION}-ruby-${RUBY_VERSION}-node-${NODE_VERSION}:rubygems-${RUBYGEMS_VERSION}-git-2.33-lfs-2.9-yarn-1.22-graphicsmagick-1.3.36
variables
:
SETUP_DB
:
"
false"
...
...
@@ -21,6 +20,7 @@
BROWSERSLIST_IGNORE_OLD_DATA
:
"
true"
WEBPACK_COMPILE_LOG_PATH
:
"
tmp/webpack-output.log"
stage
:
prepare
needs
:
[]
script
:
-
yarn_install_script
-
export GITLAB_ASSETS_HASH=$(bin/rake gitlab:assets:hash_sum)
...
...
@@ -71,7 +71,6 @@ follow-up:compile-production-assets:
-
compile-production-assets
-
.qa:rules:follow-up-e2e
needs
:
-
!reference
[
compile-production-assets
,
needs
]
-
manual:e2e-test-pipeline-generate
compile-test-assets
:
...
...
@@ -118,9 +117,9 @@ retrieve-frontend-fixtures:
SETUP_DB
:
"
false"
extends
:
-
.default-retry
-
.repo-from-artifacts
-
.frontend:rules:default-frontend-jobs
stage
:
prepare
needs
:
[]
script
:
-
source scripts/utils.sh
-
source scripts/gitlab_component_helpers.sh
...
...
@@ -149,6 +148,7 @@ retrieve-frontend-fixtures:
-
"
setup-test-env"
-
"
retrieve-tests-metadata"
-
"
retrieve-frontend-fixtures"
# it's ok to wait for the repo artifact as we're waiting for setup-test-env (which takes longer than clone-gitlab-repo) anyway
-
!reference
[
.repo-from-artifacts
,
needs
]
variables
:
# Don't add `CRYSTALBALL: "false"` here as we're enabling Crystalball for scheduled pipelines (in `.gitlab-ci.yml`), so that we get coverage data
...
...
@@ -196,6 +196,7 @@ upload-frontend-fixtures:
-
.frontend:rules:upload-frontend-fixtures
stage
:
fixtures
needs
:
# it's ok to wait for the repo artifact as we're waiting for the fixtures (which wait for the repo artifact) anyway
-
!reference
[
.repo-from-artifacts
,
needs
]
-
!reference
[
.with-fixtures-needs
,
needs
]
script
:
...
...
@@ -212,9 +213,9 @@ graphql-schema-dump:
-
.default-retry
-
.ruby-cache
-
.default-before_script
-
.repo-from-artifacts
-
.frontend:rules:default-frontend-jobs
stage
:
fixtures
needs
:
[]
script
:
-
bundle exec rake gitlab:graphql:schema:dump
artifacts
:
...
...
@@ -228,7 +229,6 @@ graphql-schema-dump:
extends
:
-
.default-retry
-
.yarn-cache
-
.repo-from-artifacts
variables
:
# Disable warnings in browserslist which can break on backports
# https://github.com/browserslist/browserslist/blob/a287ec6/node.js#L367-L384
...
...
@@ -244,6 +244,7 @@ jest-build-cache:
extends
:
-
.frontend-test-base
-
.frontend:rules:jest
needs
:
[]
artifacts
:
name
:
jest-cache
expire_in
:
12h
...
...
@@ -283,7 +284,6 @@ jest:
-
.frontend-test-base
-
.frontend:rules:jest
needs
:
-
!reference
[
.frontend-test-base
,
needs
]
-
job
:
jest-build-cache
optional
:
true
artifacts
:
...
...
@@ -303,9 +303,12 @@ jest:
jest-with-fixtures
:
extends
:
-
jest
-
.repo-from-artifacts
-
.frontend:rules:jest
needs
:
-
!reference
[
jest
,
needs
]
# it's ok to wait for the repo artifact as we're waiting for the fixtures (which wait for the repo artifact) anyway
-
!reference
[
.repo-from-artifacts
,
needs
]
-
!reference
[
.with-fixtures-needs
,
needs
]
parallel
:
2
script
:
...
...
@@ -317,7 +320,6 @@ jest vue3:
-
.frontend:rules:jest-vue3
-
.vue3
needs
:
-
!reference
[
.repo-from-artifacts
,
needs
]
-
!reference
[
.with-jest-build-cache-vue3-needs
,
needs
]
jest-with-fixtures vue3
:
...
...
@@ -327,6 +329,8 @@ jest-with-fixtures vue3:
-
.vue3
needs
:
-
!reference
[
"
jest
vue3"
,
needs
]
# it's ok to wait for the repo artifact as we're waiting for the fixtures (which wait for the repo artifact) anyway
-
!reference
[
.repo-from-artifacts
,
needs
]
-
!reference
[
.with-fixtures-needs
,
needs
]
jest predictive
:
...
...
@@ -352,20 +356,24 @@ jest-with-fixtures predictive:
jest-integration
:
extends
:
-
.frontend-test-base
-
.repo-from-artifacts
-
.frontend:rules:jest-integration
script
:
-
run_timed_command "yarn jest:integration --ci"
needs
:
-
!reference
[
.frontend-test-base
,
needs
]
# it's ok to wait for the repo artifact as we're waiting for the fixtures (which wait for the repo artifact) anyway
-
!reference
[
.repo-from-artifacts
,
needs
]
-
!reference
[
.with-fixtures-needs
,
needs
]
-
!reference
[
.with-graphql-schema-dump-needs
,
needs
]
jest-snapshot-vue3
:
extends
:
-
.frontend-test-base
-
.repo-from-artifacts
-
.frontend:rules:jest-snapshot-vue3
needs
:
-
!reference
[
.frontend-test-base
,
needs
]
# it's ok to wait for the repo artifact as we're waiting for the fixtures (which wait for the repo artifact) anyway
-
!reference
[
.repo-from-artifacts
,
needs
]
-
!reference
[
.with-fixtures-needs
,
needs
]
variables
:
VUE_VERSION
:
3
...
...
@@ -456,9 +464,11 @@ compile-storybook:
extends
:
-
.frontend-test-base
-
.storybook-yarn-cache
-
.repo-from-artifacts
-
.frontend:rules:compile-storybook
stage
:
pages
needs
:
# it's ok to wait for the repo artifact as we're waiting for the fixtures (which wait for the repo artifact) anyway
-
!reference
[
.repo-from-artifacts
,
needs
]
-
!reference
[
.with-fixtures-needs
,
needs
]
-
!reference
[
.with-graphql-schema-dump-needs
,
needs
]
...
...
此差异已折叠。
点击以展开。
Jennifer Li
@jennli
mentioned in commit
2a42c7e3
·
8 months ago
mentioned in commit
2a42c7e3
mentioned in commit 2a42c7e3aae999fe4a790fa3c6709929442dce7e
展开或隐藏提交列表
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录